incompressibleRhoTurbulenceModel.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2020 OpenCFD Ltd.
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26Class
27 Foam::incompressibleRhoTurbulenceModel
28
29Description
30 Abstract base class for turbulence models (RAS, LES and laminar).
31
32SourceFiles
33 incompressibleRhoTurbulenceModel.C
34
35\*---------------------------------------------------------------------------*/
36
37#ifndef incompressibleRhoTurbulenceModel_H
38#define incompressibleRhoTurbulenceModel_H
39
40#include "turbulenceModel.H"
41#include "geometricOneField.H"
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47
48// Forward declarations
49class fvMesh;
50
51/*---------------------------------------------------------------------------*\
52 Class incompressibleRhoTurbulenceModel Declaration
53\*---------------------------------------------------------------------------*/
56:
57 public turbulenceModel
58{
59
60protected:
61
62 // Protected data
63
64 //- Pointer to actual rho
65 const volScalarField& rho_;
66
67
68 // Protected member functions
69
70 //- ***HGW Temporary function to be removed when the run-time selectable
71 // thermal transport layer is complete
72 virtual void correctNut()
73 {}
74
75
76private:
77
78 // Private Member Functions
79
80 //- No copy construct
82 (
84 ) = delete;
85
86 //- No copy assignment
87 void operator=(const incompressibleRhoTurbulenceModel&) = delete;
88
89
90public:
91
92 //- Runtime type information
93 TypeName("incompressibleRhoTurbulenceModel");
94
95
96 // Constructors
97
98
99 //- Construct from components
101 (
102 const volScalarField& rho,
103 const volVectorField& U,
105 const surfaceScalarField& phi,
106 const word& propertiesName
107 );
108
109
110 //- Destructor
111 virtual ~incompressibleRhoTurbulenceModel() = default;
112
113
114 // Member Functions
115
116 // Access functipons
117
118 //- Return rho
119
120
121 //- Return the laminar dynamic viscosity
122 virtual tmp<volScalarField> mu() const;
123
124 //- Return the laminar dynamic viscosity on patch
125 virtual tmp<scalarField> mu(const label patchi) const;
126
127 //- Return the turbulence dynamic viscosity
128 virtual tmp<volScalarField> mut() const;
129
130 //- Return the turbulence dynamic viscosity on patch
131 virtual tmp<scalarField> mut(const label patchi) const;
132
133 //- Return the effective dynamic viscosity
134 virtual tmp<volScalarField> muEff() const;
135
136 //- Return the effective dynamic viscosity on patch
137 virtual tmp<scalarField> muEff(const label patchi) const;
138
139 //- Return the effective stress tensor including the laminar stress
140 virtual tmp<volSymmTensorField> devReff() const = 0;
141
142 //- Return the effective stress tensor including
143 //- the laminar stress based on a given velocity field
145 (
146 const volVectorField& U
147 ) const = 0;
148
149 //- Return the source term for the momentum equation
151};
152
153
154// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155
156} // End namespace Foam
157
158// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159
160#endif
161
162// ************************************************************************* //
Abstract base class for turbulence models (RAS, LES and laminar).
virtual void correctNut()
***HGW Temporary function to be removed when the run-time selectable
virtual tmp< volScalarField > muEff() const
Return the effective dynamic viscosity.
virtual tmp< volSymmTensorField > devReff() const =0
Return the effective stress tensor including the laminar stress.
virtual tmp< volSymmTensorField > devReff(const volVectorField &U) const =0
virtual tmp< fvVectorMatrix > divDevReff(volVectorField &U) const =0
Return the source term for the momentum equation.
virtual tmp< volScalarField > mu() const
Return rho.
virtual tmp< volScalarField > mut() const
Return the turbulence dynamic viscosity.
virtual ~incompressibleRhoTurbulenceModel()=default
Destructor.
TypeName("incompressibleRhoTurbulenceModel")
Runtime type information.
const volScalarField & rho_
Pointer to actual rho.
A class for managing temporary objects.
Definition: tmp.H:65
Abstract base class for turbulence models (RAS, LES and laminar).
const volVectorField & U() const
Access function to velocity field.
static const word propertiesName
Default name of the turbulence properties dictionary.
const surfaceScalarField & alphaRhoPhi() const
Access function to phase flux field.
virtual tmp< surfaceScalarField > phi() const
Return the volumetric flux field.
A class for handling words, derived from Foam::string.
Definition: word.H:68
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73