OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

turbulentMixingLengthDissipationRateInletFvPatchScalarField.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 2006-2009 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     Foam::compressible::
00027         turbulentMixingLengthDissipationRateInletFvPatchScalarField
00028 
00029 Description
00030     Calculate epsilon via the mixing length [m]
00031 
00032     Example of the boundary condition specification:
00033     @verbatim
00034         inlet
00035         {
00036             type            compressible::turbulentMixingLengthDissipationRateInlet;
00037             mixingLength    0.005;         // 5 mm
00038             value           uniform 200;   // placeholder
00039         }
00040     @endverbatim
00041 
00042 SourceFiles
00043     turbulentMixingLengthDissipationRateInletFvPatchScalarField.C
00044 
00045 \*---------------------------------------------------------------------------*/
00046 
00047 #ifndef compressibleturbulentMixingLengthDissipationRateInletFvPatchField_H
00048 #define compressibleturbulentMixingLengthDissipationRateInletFvPatchField_H
00049 
00050 #include "fixedValueFvPatchFields.H"
00051 
00052 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00053 
00054 namespace Foam
00055 {
00056 namespace compressible
00057 {
00058 
00059 /*---------------------------------------------------------------------------*\
00060        Class turbulentMixingLengthDissipationRateInletFvPatch Declaration
00061 \*---------------------------------------------------------------------------*/
00062 
00063 class turbulentMixingLengthDissipationRateInletFvPatchScalarField
00064 :
00065     public fixedValueFvPatchScalarField
00066 {
00067     // Private data
00068 
00069         //- turbulent length scale
00070         scalar mixingLength_;
00071 
00072 public:
00073 
00074     //- Runtime type information
00075     TypeName("compressible::turbulentMixingLengthDissipationRateInlet");
00076 
00077 
00078     // Constructors
00079 
00080         //- Construct from patch and internal field
00081         turbulentMixingLengthDissipationRateInletFvPatchScalarField
00082         (
00083             const fvPatch&,
00084             const DimensionedField<scalar, volMesh>&
00085         );
00086 
00087         //- Construct from patch, internal field and dictionary
00088         turbulentMixingLengthDissipationRateInletFvPatchScalarField
00089         (
00090             const fvPatch&,
00091             const DimensionedField<scalar, volMesh>&,
00092             const dictionary&
00093         );
00094 
00095         //- Construct by mapping given
00096         //  turbulentMixingLengthDissipationRateInletFvPatchScalarField
00097         //  onto a new patch
00098         turbulentMixingLengthDissipationRateInletFvPatchScalarField
00099         (
00100             const turbulentMixingLengthDissipationRateInletFvPatchScalarField&,
00101             const fvPatch&,
00102             const DimensionedField<scalar, volMesh>&,
00103             const fvPatchFieldMapper&
00104         );
00105 
00106         //- Construct as copy
00107         turbulentMixingLengthDissipationRateInletFvPatchScalarField
00108         (
00109             const turbulentMixingLengthDissipationRateInletFvPatchScalarField&
00110         );
00111 
00112         //- Construct and return a clone
00113         virtual tmp<fvPatchScalarField> clone() const
00114         {
00115             return tmp<fvPatchScalarField>
00116             (
00117                 new turbulentMixingLengthDissipationRateInletFvPatchScalarField
00118                 (
00119                     *this
00120                 )
00121             );
00122         }
00123 
00124         //- Construct as copy setting internal field reference
00125         turbulentMixingLengthDissipationRateInletFvPatchScalarField
00126         (
00127             const turbulentMixingLengthDissipationRateInletFvPatchScalarField&,
00128             const DimensionedField<scalar, volMesh>&
00129         );
00130 
00131         //- Construct and return a clone setting internal field reference
00132         virtual tmp<fvPatchScalarField> clone
00133         (
00134             const DimensionedField<scalar, volMesh>& iF
00135         ) const
00136         {
00137             return tmp<fvPatchScalarField>
00138             (
00139                 new turbulentMixingLengthDissipationRateInletFvPatchScalarField
00140                 (
00141                     *this,
00142                     iF
00143                 )
00144             );
00145         }
00146 
00147 
00148     // Member functions
00149 
00150         //- Update the coefficients associated with the patch field
00151         virtual void updateCoeffs();
00152 
00153         //- Write
00154         virtual void write(Ostream&) const;
00155 };
00156 
00157 
00158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00159 
00160 } // End namespace compressible
00161 } // End namespace Foam
00162 
00163 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00164 
00165 #endif
00166 
00167 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd