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