NoInjection.C
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
00027 #include "NoInjection.H"
00028 #include "addToRunTimeSelectionTable.H"
00029
00030
00031
00032 template<class CloudType>
00033 Foam::label Foam::NoInjection<CloudType>::parcelsToInject
00034 (
00035 const scalar,
00036 const scalar
00037 ) const
00038 {
00039 return 0;
00040 }
00041
00042
00043 template<class CloudType>
00044 Foam::scalar Foam::NoInjection<CloudType>::volumeToInject
00045 (
00046 const scalar,
00047 const scalar
00048 ) const
00049 {
00050 return 0.0;
00051 }
00052
00053
00054
00055
00056 template<class CloudType>
00057 Foam::NoInjection<CloudType>::NoInjection
00058 (
00059 const dictionary&,
00060 CloudType& owner
00061 )
00062 :
00063 InjectionModel<CloudType>(owner)
00064 {}
00065
00066
00067
00068
00069 template<class CloudType>
00070 Foam::NoInjection<CloudType>::~NoInjection()
00071 {}
00072
00073
00074
00075
00076 template<class CloudType>
00077 bool Foam::NoInjection<CloudType>::active() const
00078 {
00079 return false;
00080 }
00081
00082
00083 template<class CloudType>
00084 Foam::scalar Foam::NoInjection<CloudType>::timeEnd() const
00085 {
00086 return 0.0;
00087 }
00088
00089
00090 template<class CloudType>
00091 void Foam::NoInjection<CloudType>::setPositionAndCell
00092 (
00093 const label,
00094 const label,
00095 const scalar,
00096 vector&,
00097 label&
00098 )
00099 {}
00100
00101
00102 template<class CloudType>
00103 void Foam::NoInjection<CloudType>::setProperties
00104 (
00105 const label,
00106 const label,
00107 const scalar,
00108 typename CloudType::parcelType& parcel
00109 )
00110 {
00111
00112 parcel.U() = vector::zero;
00113
00114
00115 parcel.d() = 0.0;
00116 }
00117
00118
00119 template<class CloudType>
00120 bool Foam::NoInjection<CloudType>::fullyDescribed() const
00121 {
00122 return false;
00123 }
00124
00125
00126 template<class CloudType>
00127 bool Foam::NoInjection<CloudType>::validInjection(const label)
00128 {
00129 return false;
00130 }
00131
00132
00133
Copyright © 2000-2009 OpenCFD Ltd