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 -------------------------------------------------------------------------------
10 License
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 
26 Class
27  Foam::incompressibleRhoTurbulenceModel
28 
29 Description
30  Abstract base class for turbulence models (RAS, LES and laminar).
31 
32 SourceFiles
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 
45 namespace Foam
46 {
47 
48 // Forward declarations
49 class fvMesh;
50 
51 /*---------------------------------------------------------------------------*\
52  Class incompressibleRhoTurbulenceModel Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 :
57  public turbulenceModel
58 {
59 
60 protected:
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 
76 private:
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 
90 public:
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
150  virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const = 0;
151 };
152 
153 
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 
156 } // End namespace Foam
157 
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 
160 #endif
161 
162 // ************************************************************************* //
Foam::incompressibleRhoTurbulenceModel::~incompressibleRhoTurbulenceModel
virtual ~incompressibleRhoTurbulenceModel()=default
Destructor.
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::incompressibleRhoTurbulenceModel::mu
virtual tmp< volScalarField > mu() const
Return rho.
Definition: incompressibleRhoTurbulenceModel.C:62
Foam::turbulenceModel::phi
virtual tmp< surfaceScalarField > phi() const
Return the volumetric flux field.
Definition: turbulenceModel.C:77
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::incompressibleRhoTurbulenceModel::TypeName
TypeName("incompressibleRhoTurbulenceModel")
Runtime type information.
Foam::incompressibleRhoTurbulenceModel::correctNut
virtual void correctNut()
***HGW Temporary function to be removed when the run-time selectable
Definition: incompressibleRhoTurbulenceModel.H:71
Foam::turbulenceModel::propertiesName
static const word propertiesName
Default name of the turbulence properties dictionary.
Definition: turbulenceModel.H:100
Foam::incompressibleRhoTurbulenceModel::muEff
virtual tmp< volScalarField > muEff() const
Return the effective dynamic viscosity.
Definition: incompressibleRhoTurbulenceModel.C:90
rho
rho
Definition: readInitialConditions.H:88
Foam::turbulenceModel::alphaRhoPhi
const surfaceScalarField & alphaRhoPhi() const
Access function to phase flux field.
Definition: turbulenceModel.H:150
Foam::incompressibleRhoTurbulenceModel::rho_
const volScalarField & rho_
Pointer to actual rho.
Definition: incompressibleRhoTurbulenceModel.H:64
Foam::incompressibleRhoTurbulenceModel::devReff
virtual tmp< volSymmTensorField > devReff() const =0
Return the effective stress tensor including the laminar stress.
Foam::incompressibleRhoTurbulenceModel::mut
virtual tmp< volScalarField > mut() const
Return the turbulence dynamic viscosity.
Definition: incompressibleRhoTurbulenceModel.C:76
Foam::turbulenceModel
Abstract base class for turbulence models (RAS, LES and laminar).
Definition: turbulenceModel.H:63
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
geometricOneField.H
Foam::incompressibleRhoTurbulenceModel::divDevReff
virtual tmp< fvVectorMatrix > divDevReff(volVectorField &U) const =0
Return the source term for the momentum equation.
Foam::incompressibleRhoTurbulenceModel
Abstract base class for turbulence models (RAS, LES and laminar).
Definition: incompressibleRhoTurbulenceModel.H:54
Foam::GeometricField< scalar, fvPatchField, volMesh >
turbulenceModel.H
Foam::turbulenceModel::U
const volVectorField & U() const
Access function to velocity field.
Definition: turbulenceModel.H:144