|
|
|
omegaWallFunctionFvPatchScalarField.HGo to the documentation of this file.00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 2008-2009 OpenCFD Ltd. 00006 \\/ M anipulation | 00007 ------------------------------------------------------------------------------- 00008 License 00009 This file is part of OpenFOAM. 00010 00011 OpenFOAM is free software; you can redistribute it and/or modify it 00012 under the terms of the GNU General Public License as published by the 00013 Free Software Foundation; either version 2 of the License, or (at your 00014 option) any later version. 00015 00016 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00018 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00019 for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with OpenFOAM; if not, write to the Free Software Foundation, 00023 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00024 00025 Class 00026 Foam::compressible::RASModels::omegaWallFunctionFvPatchScalarField 00027 00028 Description 00029 Replaces functionality in wallFunctionsI.H 00030 00031 SourceFiles 00032 omegaWallFunctionFvPatchScalarField.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef compressibleOmegaWallFunctionFvPatchScalarField_H 00037 #define compressibleOmegaWallFunctionFvPatchScalarField_H 00038 00039 #include "fixedInternalValueFvPatchField.H" 00040 00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00042 00043 namespace Foam 00044 { 00045 namespace compressible 00046 { 00047 namespace RASModels 00048 { 00049 00050 /*---------------------------------------------------------------------------*\ 00051 Class omegaWallFunctionFvPatchScalarField Declaration 00052 \*---------------------------------------------------------------------------*/ 00053 00054 class omegaWallFunctionFvPatchScalarField 00055 : 00056 public fixedInternalValueFvPatchField<scalar> 00057 { 00058 // Private data 00059 00060 //- Name of velocity field 00061 word UName_; 00062 00063 //- Name of density field 00064 word rhoName_; 00065 00066 //- Name of turbulence kinetic energy field 00067 word kName_; 00068 00069 //- Name of turbulence generation field 00070 word GName_; 00071 00072 //- Name of laminar viscosity field 00073 word muName_; 00074 00075 //- Name of turbulent viscosity field 00076 word mutName_; 00077 00078 //- Cmu coefficient 00079 scalar Cmu_; 00080 00081 //- Von Karman constant 00082 scalar kappa_; 00083 00084 //- E coefficient 00085 scalar E_; 00086 00087 00088 // Private member functions 00089 00090 //- Check the type of the patch 00091 void checkType(); 00092 00093 00094 public: 00095 00096 //- Runtime type information 00097 TypeName("compressible::omegaWallFunction"); 00098 00099 00100 // Constructors 00101 00102 //- Construct from patch and internal field 00103 omegaWallFunctionFvPatchScalarField 00104 ( 00105 const fvPatch&, 00106 const DimensionedField<scalar, volMesh>& 00107 ); 00108 00109 //- Construct from patch, internal field and dictionary 00110 omegaWallFunctionFvPatchScalarField 00111 ( 00112 const fvPatch&, 00113 const DimensionedField<scalar, volMesh>&, 00114 const dictionary& 00115 ); 00116 00117 //- Construct by mapping given 00118 // omegaWallFunctionFvPatchScalarField 00119 // onto a new patch 00120 omegaWallFunctionFvPatchScalarField 00121 ( 00122 const omegaWallFunctionFvPatchScalarField&, 00123 const fvPatch&, 00124 const DimensionedField<scalar, volMesh>&, 00125 const fvPatchFieldMapper& 00126 ); 00127 00128 //- Construct as copy 00129 omegaWallFunctionFvPatchScalarField 00130 ( 00131 const omegaWallFunctionFvPatchScalarField& 00132 ); 00133 00134 //- Construct and return a clone 00135 virtual tmp<fvPatchScalarField> clone() const 00136 { 00137 return tmp<fvPatchScalarField> 00138 ( 00139 new omegaWallFunctionFvPatchScalarField(*this) 00140 ); 00141 } 00142 00143 //- Construct as copy setting internal field reference 00144 omegaWallFunctionFvPatchScalarField 00145 ( 00146 const omegaWallFunctionFvPatchScalarField&, 00147 const DimensionedField<scalar, volMesh>& 00148 ); 00149 00150 //- Construct and return a clone setting internal field reference 00151 virtual tmp<fvPatchScalarField> clone 00152 ( 00153 const DimensionedField<scalar, volMesh>& iF 00154 ) const 00155 { 00156 return tmp<fvPatchScalarField> 00157 ( 00158 new omegaWallFunctionFvPatchScalarField(*this, iF) 00159 ); 00160 } 00161 00162 00163 // Member functions 00164 00165 // Evaluation functions 00166 00167 //- Update the coefficients associated with the patch field 00168 virtual void updateCoeffs(); 00169 00170 00171 // I-O 00172 00173 //- Write 00174 void write(Ostream&) const; 00175 }; 00176 00177 00178 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00179 00180 } // End namespace RASModels 00181 } // End namespace compressible 00182 } // End namespace Foam 00183 00184 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00185 00186 #endif 00187 00188 // ************************************************************************* // |