|
|
|
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::incompressible::RASModels::omegaWallFunctionFvPatchScalarField 00027 00028 Description 00029 Replaces functionality in wallFunctionsI.H 00030 00031 SourceFiles 00032 omegaWallFunctionFvPatchScalarField.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef omegaWallFunctionFvPatchScalarField_H 00037 #define omegaWallFunctionFvPatchScalarField_H 00038 00039 #include "fixedInternalValueFvPatchField.H" 00040 00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00042 00043 namespace Foam 00044 { 00045 namespace incompressible 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 turbulence kinetic energy field 00064 word kName_; 00065 00066 //- Name of turbulence generation field 00067 word GName_; 00068 00069 //- Name of laminar viscosity field 00070 word nuName_; 00071 00072 //- Name of turbulent viscosity field 00073 word nutName_; 00074 00075 //- Cmu coefficient 00076 scalar Cmu_; 00077 00078 //- Von Karman constant 00079 scalar kappa_; 00080 00081 //- E coefficient 00082 scalar E_; 00083 00084 00085 // Private member functions 00086 00087 //- Check the type of the patch 00088 void checkType(); 00089 00090 00091 public: 00092 00093 //- Runtime type information 00094 TypeName("omegaWallFunction"); 00095 00096 00097 // Constructors 00098 00099 //- Construct from patch and internal field 00100 omegaWallFunctionFvPatchScalarField 00101 ( 00102 const fvPatch&, 00103 const DimensionedField<scalar, volMesh>& 00104 ); 00105 00106 //- Construct from patch, internal field and dictionary 00107 omegaWallFunctionFvPatchScalarField 00108 ( 00109 const fvPatch&, 00110 const DimensionedField<scalar, volMesh>&, 00111 const dictionary& 00112 ); 00113 00114 //- Construct by mapping given 00115 // omegaWallFunctionFvPatchScalarField 00116 // onto a new patch 00117 omegaWallFunctionFvPatchScalarField 00118 ( 00119 const omegaWallFunctionFvPatchScalarField&, 00120 const fvPatch&, 00121 const DimensionedField<scalar, volMesh>&, 00122 const fvPatchFieldMapper& 00123 ); 00124 00125 //- Construct as copy 00126 omegaWallFunctionFvPatchScalarField 00127 ( 00128 const omegaWallFunctionFvPatchScalarField& 00129 ); 00130 00131 //- Construct and return a clone 00132 virtual tmp<fvPatchScalarField> clone() const 00133 { 00134 return tmp<fvPatchScalarField> 00135 ( 00136 new omegaWallFunctionFvPatchScalarField(*this) 00137 ); 00138 } 00139 00140 //- Construct as copy setting internal field reference 00141 omegaWallFunctionFvPatchScalarField 00142 ( 00143 const omegaWallFunctionFvPatchScalarField&, 00144 const DimensionedField<scalar, volMesh>& 00145 ); 00146 00147 //- Construct and return a clone setting internal field reference 00148 virtual tmp<fvPatchScalarField> clone 00149 ( 00150 const DimensionedField<scalar, volMesh>& iF 00151 ) const 00152 { 00153 return tmp<fvPatchScalarField> 00154 ( 00155 new omegaWallFunctionFvPatchScalarField(*this, iF) 00156 ); 00157 } 00158 00159 00160 // Member functions 00161 00162 // Evaluation functions 00163 00164 //- Update the coefficients associated with the patch field 00165 virtual void updateCoeffs(); 00166 00167 00168 // I-O 00169 00170 //- Write 00171 void write(Ostream&) const; 00172 }; 00173 00174 00175 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00176 00177 } // End namespace RASModels 00178 } // End namespace incompressible 00179 } // End namespace Foam 00180 00181 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00182 00183 #endif 00184 00185 // ************************************************************************* // |