mutWallFunctionFvPatchScalarField.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 #ifndef compressibleMutWallFunctionFvPatchScalarField_H
00039 #define compressibleMutWallFunctionFvPatchScalarField_H
00040
00041 #include "fixedValueFvPatchFields.H"
00042
00043
00044
00045 namespace Foam
00046 {
00047 namespace compressible
00048 {
00049 namespace RASModels
00050 {
00051
00052
00053
00054
00055
00056 class mutWallFunctionFvPatchScalarField
00057 :
00058 public fixedValueFvPatchScalarField
00059 {
00060 protected:
00061
00062
00063
00064
00065 scalar Cmu_;
00066
00067
00068 scalar kappa_;
00069
00070
00071 scalar E_;
00072
00073
00074 scalar yPlusLam_;
00075
00076
00077
00078
00079
00080 virtual void checkType();
00081
00082
00083 virtual scalar calcYPlusLam(const scalar kappa, const scalar E) const;
00084
00085
00086 virtual tmp<scalarField> calcMut() const;
00087
00088
00089 virtual void writeLocalEntries(Ostream&) const;
00090
00091
00092 public:
00093
00094
00095 TypeName("mutWallFunction");
00096
00097
00098
00099
00100
00101 mutWallFunctionFvPatchScalarField
00102 (
00103 const fvPatch&,
00104 const DimensionedField<scalar, volMesh>&
00105 );
00106
00107
00108 mutWallFunctionFvPatchScalarField
00109 (
00110 const fvPatch&,
00111 const DimensionedField<scalar, volMesh>&,
00112 const dictionary&
00113 );
00114
00115
00116
00117
00118 mutWallFunctionFvPatchScalarField
00119 (
00120 const mutWallFunctionFvPatchScalarField&,
00121 const fvPatch&,
00122 const DimensionedField<scalar, volMesh>&,
00123 const fvPatchFieldMapper&
00124 );
00125
00126
00127 mutWallFunctionFvPatchScalarField
00128 (
00129 const mutWallFunctionFvPatchScalarField&
00130 );
00131
00132
00133 virtual tmp<fvPatchScalarField> clone() const
00134 {
00135 return tmp<fvPatchScalarField>
00136 (
00137 new mutWallFunctionFvPatchScalarField(*this)
00138 );
00139 }
00140
00141
00142 mutWallFunctionFvPatchScalarField
00143 (
00144 const mutWallFunctionFvPatchScalarField&,
00145 const DimensionedField<scalar, volMesh>&
00146 );
00147
00148
00149 virtual tmp<fvPatchScalarField> clone
00150 (
00151 const DimensionedField<scalar, volMesh>& iF
00152 ) const
00153 {
00154 return tmp<fvPatchScalarField>
00155 (
00156 new mutWallFunctionFvPatchScalarField(*this, iF)
00157 );
00158 }
00159
00160
00161
00162
00163
00164
00165
00166 virtual tmp<scalarField> yPlus() const;
00167
00168
00169 virtual void updateCoeffs();
00170
00171
00172
00173
00174
00175 virtual void write(Ostream&) const;
00176 };
00177
00178
00179
00180
00181 }
00182 }
00183 }
00184
00185
00186
00187 #endif
00188
00189
Copyright © 2000-2009 OpenCFD Ltd