1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2010 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/>.
24 \*---------------------------------------------------------------------------*/
27 #include "addToRunTimeSelectionTable.H"
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
33 namespace compressible
38 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
40 defineTypeNameAndDebug(laminar, 0);
41 addToRunTimeSelectionTable(RASModel, laminar, dictionary);
43 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
47 const volScalarField& rho,
48 const volVectorField& U,
49 const surfaceScalarField& phi,
50 const basicThermo& thermophysicalModel,
51 const word& turbulenceModelName,
55 RASModel(modelName, rho, U, phi, thermophysicalModel, turbulenceModelName)
59 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
61 tmp<volScalarField> laminar::mut() const
63 return tmp<volScalarField>
76 dimensionedScalar("mut", mu().dimensions(), 0.0)
82 tmp<volScalarField> laminar::alphat() const
84 return tmp<volScalarField>
97 dimensionedScalar("alphat", alpha().dimensions(), 0.0)
103 tmp<volScalarField> laminar::k() const
105 return tmp<volScalarField>
118 dimensionedScalar("k", sqr(U_.dimensions()), 0.0)
124 tmp<volScalarField> laminar::epsilon() const
126 return tmp<volScalarField>
141 "epsilon", sqr(U_.dimensions())/dimTime, 0.0
148 tmp<volSymmTensorField> laminar::R() const
150 return tmp<volSymmTensorField>
152 new volSymmTensorField
163 dimensionedSymmTensor
165 "R", sqr(U_.dimensions()), symmTensor::zero
172 tmp<volSymmTensorField> laminar::devRhoReff() const
174 return tmp<volSymmTensorField>
176 new volSymmTensorField
186 -mu()*dev(twoSymm(fvc::grad(U_)))
192 tmp<fvVectorMatrix> laminar::divDevRhoReff(volVectorField& U) const
196 - fvm::laplacian(muEff(), U)
197 - fvc::div(muEff()*dev2(T(fvc::grad(U))))
204 return RASModel::read();
208 void laminar::correct()
212 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
214 } // End namespace RASModels
215 } // End namespace compressible
216 } // End namespace Foam
218 // ************************************************************************* //