compressibleMomentumTransportModel.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2013-2021 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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.
20 
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/>.
23 
24 Class
25  Foam::compressibleMomentumTransportModel
26 
27 Description
28  Abstract base class for turbulence models (RAS, LES and laminar).
29 
30 SourceFiles
31  compressibleMomentumTransportModel.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef compressibleMomentumTransportModel_H
36 #define compressibleMomentumTransportModel_H
37 
38 #include "momentumTransportModel.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 // Forward declarations
46 class fvMesh;
47 
48 /*---------------------------------------------------------------------------*\
49  Class compressibleMomentumTransportModel Declaration
50 \*---------------------------------------------------------------------------*/
51 
53 :
55 {
56 
57 protected:
58 
59  // Protected data
60 
61  const volScalarField& rho_;
62 
63 
64 public:
65 
66  //- Runtime type information
67  TypeName(momentumTransportModel::typeName_());
68 
69 
70  // Constructors
71 
72  //- Construct from components
74  (
75  const volScalarField& rho,
76  const volVectorField& U,
78  const surfaceScalarField& phi
79  );
80 
81  //- Disallow default bitwise copy construction
83  (
85  ) = delete;
86 
87 
88  //- Destructor
90  {}
91 
92 
93  // Member Functions
94 
95  //- Return the density field
96  const volScalarField& rho() const
97  {
98  return rho_;
99  }
100 
101  //- Return the volumetric flux field
102  virtual tmp<surfaceScalarField> phi() const;
103 
104  //- Return the effective stress tensor including the laminar stress
105  virtual tmp<volSymmTensorField> devTau() const = 0;
106 
107  //- Return the source term for the momentum equation
108  virtual tmp<fvVectorMatrix> divDevTau(volVectorField& U) const = 0;
109 
110 
111  // Member Operators
112 
113  //- Disallow default bitwise assignment
114  void operator=(const compressibleMomentumTransportModel&) = delete;
115 };
116 
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 } // End namespace Foam
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #endif
125 
126 // ************************************************************************* //
void operator=(const compressibleMomentumTransportModel &)=delete
Disallow default bitwise assignment.
TypeName(momentumTransportModel::typeName_())
Runtime type information.
const volScalarField & rho() const
Return the density field.
virtual tmp< fvVectorMatrix > divDevTau(volVectorField &U) const =0
Return the source term for the momentum equation.
compressibleMomentumTransportModel(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi)
Construct from components.
virtual tmp< surfaceScalarField > phi() const
Return the volumetric flux field.
Abstract base class for turbulence models (RAS, LES and laminar).
const volVectorField & U() const
Access function to velocity field.
const surfaceScalarField & alphaRhoPhi() const
Access function to phase flux field.
virtual tmp< volSymmTensorField > devTau() const =0
Return the effective stress tensor including the laminar stress.
A class for managing temporary objects.
Definition: PtrList.H:53
Abstract base class for turbulence models (RAS, LES and laminar).
Namespace for OpenFOAM.