1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-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
26 Foam::incompressible::laminar
29 Turbulence model for laminar incompressible flow.
34 \*---------------------------------------------------------------------------*/
39 #include "turbulenceModel.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace incompressible
48 /*---------------------------------------------------------------------------*\
49 Class laminar Declaration
50 \*---------------------------------------------------------------------------*/
54 public turbulenceModel
59 //- Runtime type information
64 //- Construct from components
67 const volVectorField& U,
68 const surfaceScalarField& phi,
69 transportModel& transport
75 //- Return a reference to the selected turbulence model
76 static autoPtr<laminar> New
78 const volVectorField& U,
79 const surfaceScalarField& phi,
80 transportModel& lamTransportModel
91 //- Return the turbulence viscosity, i.e. 0 for laminar flow
92 virtual tmp<volScalarField> nut() const;
94 //- Return the effective viscosity, i.e. the laminar viscosity
95 virtual tmp<volScalarField> nuEff() const;
97 //- Return the turbulence kinetic energy, i.e. 0 for laminar flow
98 virtual tmp<volScalarField> k() const;
100 //- Return the turbulence kinetic energy dissipation rate,
101 // i.e. 0 for laminar flow
102 virtual tmp<volScalarField> epsilon() const;
104 //- Return the Reynolds stress tensor, i.e. 0 for laminar flow
105 virtual tmp<volSymmTensorField> R() const;
107 //- Return the effective stress tensor, i.e. the laminar stress
108 virtual tmp<volSymmTensorField> devReff() const;
110 //- Return the source term for the momentum equation
111 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
113 //- Correct the laminar viscosity
114 virtual void correct();
116 //- Read turbulenceProperties dictionary
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 } // End namespace incompressible
124 } // End namespace Foam
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 // ************************************************************************* //