1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2006-2011 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
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/>.
25 Foam::compressible::turbulentMixingLengthFrequencyInletFvPatchScalarField
28 Calculate omega via the mixing length
30 Example of the boundary condition specification:
34 type compressible::turbulentMixingLengthFrequencyInlet;
35 mixingLength 0.005; // 5 mm
36 k k; // turbulent k field
37 value uniform 5; // initial value
42 turbulentMixingLengthFrequencyInletFvPatchScalarField.C
44 \*---------------------------------------------------------------------------*/
46 #ifndef compressibleturbulentMixingLengthFrequencyInletFvPatchScalarField_H
47 #define compressibleturbulentMixingLengthFrequencyInletFvPatchScalarField_H
49 #include "inletOutletFvPatchFields.H"
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
55 namespace compressible
58 /*---------------------------------------------------------------------------*\
59 Class turbulentMixingLengthFrequencyInletFvPatchScalarField Declaration
60 \*---------------------------------------------------------------------------*/
62 class turbulentMixingLengthFrequencyInletFvPatchScalarField
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::turbulentMixingLengthFrequencyInlet");
86 //- Construct from patch and internal field
87 turbulentMixingLengthFrequencyInletFvPatchScalarField
90 const DimensionedField<scalar, volMesh>&
93 //- Construct from patch, internal field and dictionary
94 turbulentMixingLengthFrequencyInletFvPatchScalarField
97 const DimensionedField<scalar, volMesh>&,
101 //- Construct by mapping given
102 // turbulentMixingLengthFrequencyInletFvPatchScalarField
104 turbulentMixingLengthFrequencyInletFvPatchScalarField
106 const turbulentMixingLengthFrequencyInletFvPatchScalarField&,
108 const DimensionedField<scalar, volMesh>&,
109 const fvPatchFieldMapper&
112 //- Construct as copy
113 turbulentMixingLengthFrequencyInletFvPatchScalarField
115 const turbulentMixingLengthFrequencyInletFvPatchScalarField&
118 //- Construct and return a clone
119 virtual tmp<fvPatchScalarField> clone() const
121 return tmp<fvPatchScalarField>
123 new turbulentMixingLengthFrequencyInletFvPatchScalarField
130 //- Construct as copy setting internal field reference
131 turbulentMixingLengthFrequencyInletFvPatchScalarField
133 const turbulentMixingLengthFrequencyInletFvPatchScalarField&,
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 turbulentMixingLengthFrequencyInletFvPatchScalarField
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 // ************************************************************************* //