nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField.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 #ifndef nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField_H
00038 #define nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField_H
00039
00040 #include "nutWallFunctionFvPatchScalarField.H"
00041
00042
00043
00044 namespace Foam
00045 {
00046 namespace incompressible
00047 {
00048 namespace RASModels
00049 {
00050
00051
00052
00053
00054
00055 class nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField
00056 :
00057 public nutWallFunctionFvPatchScalarField
00058 {
00059
00060
00061
00062
00063
00064 scalar roughnessHeight_;
00065
00066
00067 scalar roughnessConstant_;
00068
00069
00070 scalar roughnessFudgeFactor_;
00071
00072
00073
00074
00075
00076 virtual tmp<scalarField> calcYPlus(const scalarField& magUp) const;
00077
00078
00079 virtual tmp<scalarField> calcNut() const;
00080
00081
00082 public:
00083
00084
00085 TypeName("nutSpalartAllmarasStandardRoughWallFunction");
00086
00087
00088
00089
00090
00091 nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField
00092 (
00093 const fvPatch&,
00094 const DimensionedField<scalar, volMesh>&
00095 );
00096
00097
00098 nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField
00099 (
00100 const fvPatch&,
00101 const DimensionedField<scalar, volMesh>&,
00102 const dictionary&
00103 );
00104
00105
00106
00107
00108 nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField
00109 (
00110 const nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField&,
00111 const fvPatch&,
00112 const DimensionedField<scalar, volMesh>&,
00113 const fvPatchFieldMapper&
00114 );
00115
00116
00117 nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField
00118 (
00119 const nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField&
00120 );
00121
00122
00123 virtual tmp<fvPatchScalarField> clone() const
00124 {
00125 return tmp<fvPatchScalarField>
00126 (
00127 new nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField
00128 (
00129 *this
00130 )
00131 );
00132 }
00133
00134
00135 nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField
00136 (
00137 const nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField&,
00138 const DimensionedField<scalar, volMesh>&
00139 );
00140
00141
00142 virtual tmp<fvPatchScalarField> clone
00143 (
00144 const DimensionedField<scalar, volMesh>& iF
00145 ) const
00146 {
00147 return tmp<fvPatchScalarField>
00148 (
00149 new nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField
00150 (
00151 *this,
00152 iF
00153 )
00154 );
00155 }
00156
00157
00158
00159
00160
00161
00162
00163 const scalar& roughnessHeight() const
00164 {
00165 return roughnessHeight_;
00166 }
00167
00168
00169 scalar& roughnessHeight()
00170 {
00171 return roughnessHeight_;
00172 }
00173
00174
00175
00176 const scalar& roughnessConstant() const
00177 {
00178 return roughnessConstant_;
00179 }
00180
00181
00182 scalar& roughnessConstant()
00183 {
00184 return roughnessConstant_;
00185 }
00186
00187
00188 const scalar& roughnessFudgeFactor() const
00189 {
00190 return roughnessFudgeFactor_;
00191 }
00192
00193
00194
00195 scalar& roughnessFudgeFactor()
00196 {
00197 return roughnessFudgeFactor_;
00198 }
00199
00200
00201
00202
00203
00204
00205
00206 virtual tmp<scalarField> yPlus() const;
00207
00208
00209
00210
00211
00212 virtual void write(Ostream& os) const;
00213 };
00214
00215
00216
00217
00218 }
00219 }
00220 }
00221
00222
00223
00224 #endif
00225
00226
Copyright © 2000-2009 OpenCFD Ltd