Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 #include "NoInjection.H"
00027 #include <OpenFOAM/addToRunTimeSelectionTable.H>
00028 
00029 
00030 
00031 template<class CloudType>
00032 Foam::label Foam::NoInjection<CloudType>::parcelsToInject
00033 (
00034     const scalar,
00035     const scalar
00036 ) const
00037 {
00038     return 0;
00039 }
00040 
00041 
00042 template<class CloudType>
00043 Foam::scalar Foam::NoInjection<CloudType>::volumeToInject
00044 (
00045     const scalar,
00046     const scalar
00047 ) const
00048 {
00049     return 0.0;
00050 }
00051 
00052 
00053 
00054 
00055 template<class CloudType>
00056 Foam::NoInjection<CloudType>::NoInjection
00057 (
00058     const dictionary&,
00059     CloudType& owner
00060 )
00061 :
00062     InjectionModel<CloudType>(owner)
00063 {}
00064 
00065 
00066 
00067 
00068 template<class CloudType>
00069 Foam::NoInjection<CloudType>::~NoInjection()
00070 {}
00071 
00072 
00073 
00074 
00075 template<class CloudType>
00076 bool Foam::NoInjection<CloudType>::active() const
00077 {
00078     return false;
00079 }
00080 
00081 
00082 template<class CloudType>
00083 Foam::scalar Foam::NoInjection<CloudType>::timeEnd() const
00084 {
00085     return 0.0;
00086 }
00087 
00088 
00089 template<class CloudType>
00090 void Foam::NoInjection<CloudType>::setPositionAndCell
00091 (
00092     const label,
00093     const label,
00094     const scalar,
00095     vector&,
00096     label&
00097 )
00098 {}
00099 
00100 
00101 template<class CloudType>
00102 void Foam::NoInjection<CloudType>::setProperties
00103 (
00104     const label,
00105     const label,
00106     const scalar,
00107     typename CloudType::parcelType& parcel
00108 )
00109 {
00110     
00111     parcel.U() = vector::zero;
00112 
00113     
00114     parcel.d() = 0.0;
00115 }
00116 
00117 
00118 template<class CloudType>
00119 bool Foam::NoInjection<CloudType>::fullyDescribed() const
00120 {
00121     return false;
00122 }
00123 
00124 
00125 template<class CloudType>
00126 bool Foam::NoInjection<CloudType>::validInjection(const label)
00127 {
00128     return false;
00129 }
00130 
00131 
00132