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/>.
25 Foam::compressible::RASModels::laminar
28 Dummy turbulence model for laminar compressible flow.
33 \*---------------------------------------------------------------------------*/
35 #ifndef compressibleRasLaminar_H
36 #define compressibleRasLaminar_H
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 namespace compressible
49 /*---------------------------------------------------------------------------*\
50 Class laminar Declaration
51 \*---------------------------------------------------------------------------*/
60 //- Runtime type information
65 //- Construct from components
68 const volScalarField& rho,
69 const volVectorField& U,
70 const surfaceScalarField& phi,
71 const basicThermo& thermophysicalModel,
72 const word& turbulenceModelName = turbulenceModel::typeName,
73 const word& modelName = typeName
84 //- Return the turbulence viscosity, i.e. 0 for laminar flow
85 virtual tmp<volScalarField> mut() const;
87 //- Return the effective viscosity, i.e. the laminar viscosity
88 virtual tmp<volScalarField> muEff() const
90 return tmp<volScalarField>(new volScalarField("muEff", mu()));
93 //- Return the turbulence thermal diffusivity, i.e. 0 for laminar flow
94 virtual tmp<volScalarField> alphat() const;
96 //- Return the effective turbulent thermal diffusivity,
97 // i.e. the laminar thermal diffusivity
98 virtual tmp<volScalarField> alphaEff() const
100 return tmp<volScalarField>(new volScalarField("alphaEff", alpha()));
103 //- Return the turbulence kinetic energy, i.e. 0 for laminar flow
104 virtual tmp<volScalarField> k() const;
106 //- Return the turbulence kinetic energy dissipation rate,
107 // i.e. 0 for laminar flow
108 virtual tmp<volScalarField> epsilon() const;
110 //- Return the Reynolds stress tensor, i.e. 0 for laminar flow
111 virtual tmp<volSymmTensorField> R() const;
113 //- Return the effective stress tensor, i.e. the laminar stress
114 virtual tmp<volSymmTensorField> devRhoReff() const;
116 //- Return the source term for the momentum equation
117 virtual tmp<fvVectorMatrix> divDevRhoReff(volVectorField& U) const;
119 //- Correct the laminar viscosity
120 virtual void correct();
122 //- Read RASProperties dictionary
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 } // End namespace RASModels
130 } // End namespace compressible
131 } // End namespace Foam
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 // ************************************************************************* //