1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2006-2009 OpenCFD Ltd.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27 turbulentMixingLengthDissipationRateInletFvPatchScalarField
30 Calculate epsilon via the mixing length [m]
32 Example of the boundary condition specification:
36 type compressible::turbulentMixingLengthDissipationRateInlet;
37 mixingLength 0.005; // 5 mm
38 value uniform 200; // placeholder
43 turbulentMixingLengthDissipationRateInletFvPatchScalarField.C
45 \*---------------------------------------------------------------------------*/
47 #ifndef compressibleturbulentMixingLengthDissipationRateInletFvPatchField_H
48 #define compressibleturbulentMixingLengthDissipationRateInletFvPatchField_H
50 #include "fixedValueFvPatchFields.H"
52 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
56 namespace compressible
59 /*---------------------------------------------------------------------------*\
60 Class turbulentMixingLengthDissipationRateInletFvPatch Declaration
61 \*---------------------------------------------------------------------------*/
63 class turbulentMixingLengthDissipationRateInletFvPatchScalarField
65 public fixedValueFvPatchScalarField
69 //- turbulent length scale
74 //- Runtime type information
75 TypeName("compressible::turbulentMixingLengthDissipationRateInlet");
80 //- Construct from patch and internal field
81 turbulentMixingLengthDissipationRateInletFvPatchScalarField
84 const DimensionedField<scalar, volMesh>&
87 //- Construct from patch, internal field and dictionary
88 turbulentMixingLengthDissipationRateInletFvPatchScalarField
91 const DimensionedField<scalar, volMesh>&,
95 //- Construct by mapping given
96 // turbulentMixingLengthDissipationRateInletFvPatchScalarField
98 turbulentMixingLengthDissipationRateInletFvPatchScalarField
100 const turbulentMixingLengthDissipationRateInletFvPatchScalarField&,
102 const DimensionedField<scalar, volMesh>&,
103 const fvPatchFieldMapper&
106 //- Construct as copy
107 turbulentMixingLengthDissipationRateInletFvPatchScalarField
109 const turbulentMixingLengthDissipationRateInletFvPatchScalarField&
112 //- Construct and return a clone
113 virtual tmp<fvPatchScalarField> clone() const
115 return tmp<fvPatchScalarField>
117 new turbulentMixingLengthDissipationRateInletFvPatchScalarField
124 //- Construct as copy setting internal field reference
125 turbulentMixingLengthDissipationRateInletFvPatchScalarField
127 const turbulentMixingLengthDissipationRateInletFvPatchScalarField&,
128 const DimensionedField<scalar, volMesh>&
131 //- Construct and return a clone setting internal field reference
132 virtual tmp<fvPatchScalarField> clone
134 const DimensionedField<scalar, volMesh>& iF
137 return tmp<fvPatchScalarField>
139 new turbulentMixingLengthDissipationRateInletFvPatchScalarField
150 //- Update the coefficients associated with the patch field
151 virtual void updateCoeffs();
154 virtual void write(Ostream&) const;
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
160 } // End namespace compressible
161 } // End namespace Foam
163 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
167 // ************************************************************************* //