immersedBoundaryOmegaWallFunctionFvPatchScalarField.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | foam-extend: Open Source CFD
4  \\ / O peration | Version: 3.2
5  \\ / A nd | Web: http://www.foam-extend.org
6  \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
8 License
9  This file is part of foam-extend.
10 
11  foam-extend is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by the
13  Free Software Foundation, either version 3 of the License, or (at your
14  option) any later version.
15 
16  foam-extend is distributed in the hope that it will be useful, but
17  WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  General Public License for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::incompressible::RASModels::
26  immersedBoundaryOmegaWallFunctionFvPatchScalarField
27 
28 Description
29  Provides a wall function boundary condition/constraint on omega
30 
31  Computed value is:
32 
33  omega = sqrt(omega_vis^2 + omega_log^2)
34 
35  where
36  omega_vis = omega in viscous region
37  omega_log = omega in logarithmic region
38 
39  Model described by Eq.(15) of:
40  @verbatim
41  Menter, F., Esch, T.
42  "Elements of Industrial Heat Transfer Prediction"
43  16th Brazilian Congress of Mechanical Engineering (COBEM),
44  Nov. 2001
45  @endverbatim
46 
47 SourceFiles
48  immersedBoundaryOmegaWallFunctionFvPatchScalarField.C
49 
50 \*---------------------------------------------------------------------------*/
51 
52 #ifndef immersedBoundaryOmegaWallFunctionFvPatchScalarField_H
53 #define immersedBoundaryOmegaWallFunctionFvPatchScalarField_H
54 
56 
57 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58 
59 namespace Foam
60 {
61 namespace incompressible
62 {
63 namespace RASModels
64 {
65 
66 /*---------------------------------------------------------------------------*\
67  Class immersedBoundaryOmegaWallFunctionFvPatchScalarField Declaration
68 \*---------------------------------------------------------------------------*/
69 
71 :
72  public immersedBoundaryWallFunctionFvPatchScalarField
73 {
74  // Private data
75 
76  //- Name of velocity field
77  word UName_;
78 
79  //- Name of turbulence kinetic energy field
80  word kName_;
81 
82  //- Name of turbulence generation field
83  word GName_;
84 
85  //- Name of laminar viscosity field
86  word nuName_;
87 
88  //- Name of turbulent viscosity field
89  word nutName_;
90 
91  //- Cmu coefficient
92  scalar Cmu_;
93 
94  //- Von Karman constant
95  scalar kappa_;
96 
97  //- E coefficient
98  scalar E_;
99 
100  //- beta1 coefficient
101  scalar beta1_;
102 
103 
104 public:
105 
106  //- Runtime type information
107  TypeName("immersedBoundaryOmegaWallFunction");
108 
109 
110  // Constructors
111 
112  //- Construct from patch and internal field
114  (
115  const fvPatch&,
117  );
118 
119  //- Construct from patch, internal field and dictionary
121  (
122  const fvPatch&,
124  const dictionary&
125  );
126 
127  //- Construct by mapping given
128  // immersedBoundaryOmegaWallFunctionFvPatchScalarField
129  // onto a new patch
131  (
133  const fvPatch&,
135  const fvPatchFieldMapper&
136  );
137 
138  //- Construct as copy
140  (
142  );
143 
144  //- Construct and return a clone
145  virtual tmp<fvPatchScalarField> clone() const
146  {
148  (
150  (
151  *this
152  )
153  );
154  }
155 
156  //- Construct as copy setting internal field reference
158  (
161  );
162 
163  //- Construct and return a clone setting internal field reference
165  (
167  ) const
168  {
170  (
172  (
173  *this,
174  iF
175  )
176  );
177  }
178 
179 
180  //- Destructor
182  {}
183 
184 
185  // Member functions
186 
187  // Evaluation functions
188 
189  //- Update the coefficients associated with the patch field
190  virtual void updateCoeffs();
191 
192  //- Evaluate the patchField
193  virtual void evaluate
194  (
196  );
197 
198 
199  // I-O
200 
201  //- Write
202  void write(Ostream&) const;
203 };
204 
205 
206 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
207 
208 } // End namespace RASModels
209 } // End namespace incompressible
210 } // End namespace Foam
211 
212 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
213 
214 #endif
215 
216 // ************************************************************************* //
Foam::incompressible::RASModels::immersedBoundaryOmegaWallFunctionFvPatchScalarField::evaluate
virtual void evaluate(const Pstream::commsTypes=Pstream::blocking)
Evaluate the patchField.
Definition: immersedBoundaryOmegaWallFunctionFvPatchScalarField.C:360
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
Foam::incompressible::RASModels::immersedBoundaryOmegaWallFunctionFvPatchScalarField
Provides a wall function boundary condition/constraint on omega.
Definition: immersedBoundaryOmegaWallFunctionFvPatchScalarField.H:68
Foam::incompressible::RASModels::immersedBoundaryOmegaWallFunctionFvPatchScalarField::nuName_
word nuName_
Name of laminar viscosity field.
Definition: immersedBoundaryOmegaWallFunctionFvPatchScalarField.H:84
Foam::incompressible::RASModels::immersedBoundaryOmegaWallFunctionFvPatchScalarField::GName_
word GName_
Name of turbulence generation field.
Definition: immersedBoundaryOmegaWallFunctionFvPatchScalarField.H:81
Foam::incompressible::RASModels::immersedBoundaryOmegaWallFunctionFvPatchScalarField::Cmu_
scalar Cmu_
Cmu coefficient.
Definition: immersedBoundaryOmegaWallFunctionFvPatchScalarField.H:90
Foam::UPstream::blocking
@ blocking
Definition: UPstream.H:66
Foam::incompressible::RASModels::immersedBoundaryOmegaWallFunctionFvPatchScalarField::UName_
word UName_
Name of velocity field.
Definition: immersedBoundaryOmegaWallFunctionFvPatchScalarField.H:75
Foam::incompressible::RASModels::immersedBoundaryOmegaWallFunctionFvPatchScalarField::nutName_
word nutName_
Name of turbulent viscosity field.
Definition: immersedBoundaryOmegaWallFunctionFvPatchScalarField.H:87
Foam::fvPatch
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:61
Foam::incompressible::RASModels::immersedBoundaryOmegaWallFunctionFvPatchScalarField::E_
scalar E_
E coefficient.
Definition: immersedBoundaryOmegaWallFunctionFvPatchScalarField.H:96
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam::incompressible::RASModels::immersedBoundaryOmegaWallFunctionFvPatchScalarField::kName_
word kName_
Name of turbulence kinetic energy field.
Definition: immersedBoundaryOmegaWallFunctionFvPatchScalarField.H:78
Foam::incompressible::RASModels::immersedBoundaryOmegaWallFunctionFvPatchScalarField::~immersedBoundaryOmegaWallFunctionFvPatchScalarField
virtual ~immersedBoundaryOmegaWallFunctionFvPatchScalarField()
Destructor.
Definition: immersedBoundaryOmegaWallFunctionFvPatchScalarField.H:179
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
immersedBoundaryWallFunctionFvPatchFields.H
Foam::UPstream::commsTypes
commsTypes
Types of communications.
Definition: UPstream.H:64
Foam::incompressible::RASModels::immersedBoundaryOmegaWallFunctionFvPatchScalarField::updateCoeffs
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Definition: immersedBoundaryOmegaWallFunctionFvPatchScalarField.C:148
Foam::incompressible::RASModels::immersedBoundaryOmegaWallFunctionFvPatchScalarField::immersedBoundaryOmegaWallFunctionFvPatchScalarField
immersedBoundaryOmegaWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Definition: immersedBoundaryOmegaWallFunctionFvPatchScalarField.C:46
Foam::incompressible::RASModels::immersedBoundaryOmegaWallFunctionFvPatchScalarField::clone
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
Definition: immersedBoundaryOmegaWallFunctionFvPatchScalarField.H:143
Foam::incompressible::RASModels::immersedBoundaryOmegaWallFunctionFvPatchScalarField::kappa_
scalar kappa_
Von Karman constant.
Definition: immersedBoundaryOmegaWallFunctionFvPatchScalarField.H:93
Foam::incompressible::RASModels::immersedBoundaryOmegaWallFunctionFvPatchScalarField::TypeName
TypeName("immersedBoundaryOmegaWallFunction")
Runtime type information.
Foam::fvPatchFieldMapper
Foam::fvPatchFieldMapper.
Definition: fvPatchFieldMapper.H:45
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:53
Foam::incompressible::RASModels::immersedBoundaryOmegaWallFunctionFvPatchScalarField::write
void write(Ostream &) const
Write.
Definition: immersedBoundaryOmegaWallFunctionFvPatchScalarField.C:372
Foam::incompressible::RASModels::immersedBoundaryOmegaWallFunctionFvPatchScalarField::beta1_
scalar beta1_
beta1 coefficient
Definition: immersedBoundaryOmegaWallFunctionFvPatchScalarField.H:99
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:51