1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 turbulentMixingLengthDissipationRateInletFvPatchScalarField
29 Calculate epsilon via the mixing length [m]
31 Example of the boundary condition specification:
35 type compressible::turbulentMixingLengthDissipationRateInlet;
36 mixingLength 0.005; // 5 mm
37 value uniform 200; // placeholder
42 turbulentMixingLengthDissipationRateInletFvPatchScalarField.C
44 \*---------------------------------------------------------------------------*/
46 #ifndef compressibleturbulentMixingLengthDissipationRateInletFvPatchField_H
47 #define compressibleturbulentMixingLengthDissipationRateInletFvPatchField_H
49 #include "inletOutletFvPatchFields.H"
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
55 namespace compressible
58 /*---------------------------------------------------------------------------*\
59 Class turbulentMixingLengthDissipationRateInletFvPatch Declaration
60 \*---------------------------------------------------------------------------*/
62 class turbulentMixingLengthDissipationRateInletFvPatchScalarField
64 public inletOutletFvPatchScalarField
68 //- turbulent length scale
71 //- Name of the flux field
74 //- Name of the turbulent kinetic energy field
80 //- Runtime type information
81 TypeName("compressible::turbulentMixingLengthDissipationRateInlet");
86 //- Construct from patch and internal field
87 turbulentMixingLengthDissipationRateInletFvPatchScalarField
90 const DimensionedField<scalar, volMesh>&
93 //- Construct from patch, internal field and dictionary
94 turbulentMixingLengthDissipationRateInletFvPatchScalarField
97 const DimensionedField<scalar, volMesh>&,
101 //- Construct by mapping given
102 // turbulentMixingLengthDissipationRateInletFvPatchScalarField
104 turbulentMixingLengthDissipationRateInletFvPatchScalarField
106 const turbulentMixingLengthDissipationRateInletFvPatchScalarField&,
108 const DimensionedField<scalar, volMesh>&,
109 const fvPatchFieldMapper&
112 //- Construct as copy
113 turbulentMixingLengthDissipationRateInletFvPatchScalarField
115 const turbulentMixingLengthDissipationRateInletFvPatchScalarField&
118 //- Construct and return a clone
119 virtual tmp<fvPatchScalarField> clone() const
121 return tmp<fvPatchScalarField>
123 new turbulentMixingLengthDissipationRateInletFvPatchScalarField
130 //- Construct as copy setting internal field reference
131 turbulentMixingLengthDissipationRateInletFvPatchScalarField
133 const turbulentMixingLengthDissipationRateInletFvPatchScalarField&,
134 const DimensionedField<scalar, volMesh>&
137 //- Construct and return a clone setting internal field reference
138 virtual tmp<fvPatchScalarField> clone
140 const DimensionedField<scalar, volMesh>& iF
143 return tmp<fvPatchScalarField>
145 new turbulentMixingLengthDissipationRateInletFvPatchScalarField
156 //- Update the coefficients associated with the patch field
157 virtual void updateCoeffs();
160 virtual void write(Ostream&) const;
164 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
166 } // End namespace compressible
167 } // End namespace Foam
169 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
173 // ************************************************************************* //