alphatWallFunctionIncompFvPatchScalarField.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v3
5 
6  This file is modified from OpenFOAM's source code
7  src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/
8  wallFunctions/alphatWallFunctionIncompressibles/alphatWallFunctionIncompressible
9 
10  The turbulent thermal diffusivity calculated using:
11 
12  \f[
13  \alpha_t = \frac{\nu_t}{Pr_t}
14  \f]
15 
16  OpenFOAM: The Open Source CFD Toolbox
17 
18  Copyright (C): 2011-2016 OpenFOAM Foundation
19 
20  OpenFOAM License:
21 
22  OpenFOAM is free software: you can redistribute it and/or modify it
23  under the terms of the GNU General Public License as published by
24  the Free Software Foundation, either version 3 of the License, or
25  (at your option) any later version.
26 
27  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
28  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
29  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
30  for more details.
31 
32  You should have received a copy of the GNU General Public License
33  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
34 
35  Description:
36  Fixed traction boundary condition for the standard linear elastic,
37  fixed coefficient displacement equation.
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef alphatWallFunctionIncompressibleFvPatchScalarField_H
42 #define alphatWallFunctionIncompressibleFvPatchScalarField_H
43 
44 #include "fixedValueFvPatchFields.H"
45 #include "turbulenceModel.H"
46 
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 
49 namespace Foam
50 {
51 namespace incompressible
52 {
53 
54 /*---------------------------------------------------------------------------*\
55  Class alphatWallFunctionIncompressibleFvPatchScalarField Declaration
56 \*---------------------------------------------------------------------------*/
57 
59  : public fixedValueFvPatchScalarField
60 {
61 protected:
62  // Protected data
63 
64  //- Turbulent Prandtl number
65  scalar Prt_;
66 
67 public:
68  //- Runtime type information
69  TypeName("incompressible::alphatWallFunction");
70 
71  // Constructors
72 
73  //- Construct from patch and internal field
75  const fvPatch&,
76  const DimensionedField<scalar, volMesh>&);
77 
78  //- Construct from patch, internal field and dictionary
80  const fvPatch&,
81  const DimensionedField<scalar, volMesh>&,
82  const dictionary&);
83 
84  //- Construct by mapping given
85  // alphatWallFunctionIncompressibleFvPatchScalarField
86  // onto a new patch
89  const fvPatch&,
90  const DimensionedField<scalar, volMesh>&,
91  const fvPatchFieldMapper&);
92 
93  //- Construct as copy
96 
97  //- Construct as copy setting internal field reference
100  const DimensionedField<scalar, volMesh>&);
101 
102  // Member functions
103 
104  // Evaluation functions
105 
106  //- Update the coefficients associated with the patch field
107  virtual void updateCoeffs();
108 
109  // I-O
110 
111  //- Write
112  virtual void write(Ostream&) const;
113 };
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 } // End namespace incompressible
118 } // End namespace Foam
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 #endif
123 
124 // ************************************************************************* //
Foam::incompressible::alphatWallFunctionIncompressibleFvPatchScalarField::Prt_
scalar Prt_
Definition: alphatWallFunctionIncompFvPatchScalarField.H:65
Foam::incompressible::alphatWallFunctionIncompressibleFvPatchScalarField::updateCoeffs
virtual void updateCoeffs()
Definition: alphatWallFunctionIncompFvPatchScalarField.C:85
Foam
Definition: checkGeometry.C:32
Foam::incompressible::alphatWallFunctionIncompressibleFvPatchScalarField::write
virtual void write(Ostream &) const
Definition: alphatWallFunctionIncompFvPatchScalarField.C:108
Foam::incompressible::alphatWallFunctionIncompressibleFvPatchScalarField::alphatWallFunctionIncompressibleFvPatchScalarField
alphatWallFunctionIncompressibleFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Definition: alphatWallFunctionIncompFvPatchScalarField.C:40
Foam::incompressible::alphatWallFunctionIncompressibleFvPatchScalarField::TypeName
TypeName("incompressible::alphatWallFunction")
Foam::incompressible::alphatWallFunctionIncompressibleFvPatchScalarField
Definition: alphatWallFunctionIncompFvPatchScalarField.H:58