BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / src / turbulenceModels / incompressible / turbulenceModel / laminar / laminar.H
blob72994e90fb84908cb4f6a29e93a702a8cfc0afb6
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2011 OpenFOAM Foundation
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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 Class
25     Foam::incompressible::laminar
27 Description
28     Turbulence model for laminar incompressible flow.
30 SourceFiles
31     laminar.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef laminar_H
36 #define laminar_H
38 #include "turbulenceModel.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 namespace Foam
44 namespace incompressible
47 /*---------------------------------------------------------------------------*\
48                            Class laminar Declaration
49 \*---------------------------------------------------------------------------*/
51 class laminar
53     public turbulenceModel
56 public:
58     //- Runtime type information
59     TypeName("laminar");
61     // Constructors
63         //- Construct from components
64         laminar
65         (
66             const volVectorField& U,
67             const surfaceScalarField& phi,
68             transportModel& transport,
69             const word& turbulenceModelName = turbulenceModel::typeName
70         );
73     // Selectors
75         //- Return a reference to the selected turbulence model
76         static autoPtr<laminar> New
77         (
78             const volVectorField& U,
79             const surfaceScalarField& phi,
80             transportModel& transport,
81             const word& turbulenceModelName = turbulenceModel::typeName
82         );
85     //- Destructor
86     virtual ~laminar()
87     {}
90     // Member Functions
92         //- Return the turbulence viscosity, i.e. 0 for laminar flow
93         virtual tmp<volScalarField> nut() const;
95         //- Return the effective viscosity, i.e. the laminar viscosity
96         virtual tmp<volScalarField> nuEff() const;
98         //- Return the turbulence kinetic energy, i.e. 0 for laminar flow
99         virtual tmp<volScalarField> k() const;
101         //- Return the turbulence kinetic energy dissipation rate,
102         //  i.e. 0 for laminar flow
103         virtual tmp<volScalarField> epsilon() const;
105         //- Return the Reynolds stress tensor, i.e. 0 for laminar flow
106         virtual tmp<volSymmTensorField> R() const;
108         //- Return the effective stress tensor, i.e. the laminar stress
109         virtual tmp<volSymmTensorField> devReff() const;
111         //- Return the source term for the momentum equation
112         virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
114         //- Correct the laminar viscosity
115         virtual void correct();
117         //- Read turbulenceProperties dictionary
118         virtual bool read();
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 } // End namespace incompressible
125 } // End namespace Foam
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 #endif
131 // ************************************************************************* //