All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
singlePhaseTransportModel.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) 2011-2020 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::singlePhaseTransportModel
26 
27 Description
28  A simple single-phase transport model based on viscosityModel.
29 
30  Used by the incompressible single-phase solvers like simpleFoam,
31  turbFoam etc.
32 
33 SourceFiles
34  singlePhaseTransportModel.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef singlePhaseTransportModel_H
39 #define singlePhaseTransportModel_H
40 
41 #include "transportModel.H"
42 #include "IOdictionary.H"
43 #include "autoPtr.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 
50 class viscosityModel;
51 
52 /*---------------------------------------------------------------------------*\
53  Class singlePhaseTransportModel Declaration
54 \*---------------------------------------------------------------------------*/
55 
57 :
58  public IOdictionary,
59  public transportModel
60 {
61  // Private Data
62 
63  autoPtr<viscosityModel> viscosityModelPtr_;
64 
65 
66 public:
67 
68  //- Runtime type information
69  TypeName("singlePhaseTransportModel");
70 
71 
72  // Constructors
73 
74  //- Construct from components
76  (
77  const volVectorField& U,
78  const surfaceScalarField& phi
79  );
80 
81  //- Disallow default bitwise copy construction
83 
84 
85  //- Destructor
87 
88 
89  // Member Functions
90 
91  //- Return the laminar viscosity
92  virtual tmp<volScalarField> nu() const;
93 
94  //- Return the laminar viscosity for patch
95  virtual tmp<scalarField> nu(const label patchi) const;
96 
97  //- Correct the laminar viscosity
98  virtual void correct();
99 
100  //- Read transportProperties dictionary
101  virtual bool read();
102 
103 
104  // Member Operators
105 
106  //- Disallow default bitwise assignment
107  void operator=(const singlePhaseTransportModel&) = delete;
108 };
109 
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 } // End namespace Foam
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #endif
118 
119 // ************************************************************************* //
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
virtual bool read()
Read transportProperties dictionary.
phi
Definition: pEqn.H:104
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:52
void operator=(const singlePhaseTransportModel &)=delete
Disallow default bitwise assignment.
virtual void correct()
Correct the laminar viscosity.
singlePhaseTransportModel(const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
label patchi
U
Definition: pEqn.H:72
Base-class for all transport models used by the incompressible turbulence models. ...
virtual ~singlePhaseTransportModel()
Destructor.
TypeName("singlePhaseTransportModel")
Runtime type information.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
A class for managing temporary objects.
Definition: PtrList.H:53
A simple single-phase transport model based on viscosityModel.
Namespace for OpenFOAM.
virtual tmp< volScalarField > nu() const
Return the laminar viscosity.