turbulentInletFvPatchField.H
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
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046 #ifndef turbulentInletFvPatchField_H
00047 #define turbulentInletFvPatchField_H
00048
00049 #include "Random.H"
00050 #include "fixedValueFvPatchFields.H"
00051
00052
00053
00054 namespace Foam
00055 {
00056
00057
00058
00059
00060
00061 template<class Type>
00062 class turbulentInletFvPatchField
00063 :
00064 public fixedValueFvPatchField<Type>
00065 {
00066
00067
00068 Random ranGen_;
00069 Type fluctuationScale_;
00070 Field<Type> referenceField_;
00071 scalar alpha_;
00072 label curTimeIndex_;
00073
00074
00075 public:
00076
00077
00078 TypeName("turbulentInlet");
00079
00080
00081
00082
00083
00084 turbulentInletFvPatchField
00085 (
00086 const fvPatch&,
00087 const DimensionedField<Type, volMesh>&
00088 );
00089
00090
00091 turbulentInletFvPatchField
00092 (
00093 const fvPatch&,
00094 const DimensionedField<Type, volMesh>&,
00095 const dictionary&
00096 );
00097
00098
00099
00100 turbulentInletFvPatchField
00101 (
00102 const turbulentInletFvPatchField<Type>&,
00103 const fvPatch&,
00104 const DimensionedField<Type, volMesh>&,
00105 const fvPatchFieldMapper&
00106 );
00107
00108
00109 turbulentInletFvPatchField
00110 (
00111 const turbulentInletFvPatchField<Type>&
00112 );
00113
00114
00115 virtual tmp<fvPatchField<Type> > clone() const
00116 {
00117 return tmp<fvPatchField<Type> >
00118 (
00119 new turbulentInletFvPatchField<Type>(*this)
00120 );
00121 }
00122
00123
00124 turbulentInletFvPatchField
00125 (
00126 const turbulentInletFvPatchField<Type>&,
00127 const DimensionedField<Type, volMesh>&
00128 );
00129
00130
00131 virtual tmp<fvPatchField<Type> > clone
00132 (
00133 const DimensionedField<Type, volMesh>& iF
00134 ) const
00135 {
00136 return tmp<fvPatchField<Type> >
00137 (
00138 new turbulentInletFvPatchField<Type>(*this, iF)
00139 );
00140 }
00141
00142
00143
00144
00145
00146
00147
00148 const Type& fluctuationScale() const
00149 {
00150 return fluctuationScale_;
00151 }
00152
00153
00154 Type& fluctuationScale()
00155 {
00156 return fluctuationScale_;
00157 }
00158
00159
00160 const Field<Type>& referenceField() const
00161 {
00162 return referenceField_;
00163 }
00164
00165
00166 Field<Type>& referenceField()
00167 {
00168 return referenceField_;
00169 }
00170
00171
00172
00173
00174
00175 virtual void autoMap
00176 (
00177 const fvPatchFieldMapper&
00178 );
00179
00180
00181 virtual void rmap
00182 (
00183 const fvPatchField<Type>&,
00184 const labelList&
00185 );
00186
00187
00188
00189
00190
00191 virtual void updateCoeffs();
00192
00193
00194
00195 virtual void write(Ostream&) const;
00196 };
00197
00198
00199
00200
00201 }
00202
00203
00204
00205 #ifdef NoRepository
00206 # include "turbulentInletFvPatchField.C"
00207 #endif
00208
00209
00210
00211 #endif
00212
00213
Copyright © 2000-2009 OpenCFD Ltd