singlePhaseTransportModel.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) 2011-2016 OpenFOAM Foundation
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::singlePhaseTransportModel
28
29Description
30 A simple single-phase transport model based on viscosityModel.
31
32 Used by the incompressible single-phase solvers like simpleFoam,
33 pimpleFoam etc.
34
35SourceFiles
36 singlePhaseTransportModel.C
37
38\*---------------------------------------------------------------------------*/
39
40#ifndef singlePhaseTransportModel_H
41#define singlePhaseTransportModel_H
42
44#include "IOdictionary.H"
45#include "autoPtr.H"
46
47// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48
49namespace Foam
50{
51
52class viscosityModel;
53
54/*---------------------------------------------------------------------------*\
55 Class singlePhaseTransportModel Declaration
56\*---------------------------------------------------------------------------*/
59:
60 public IOdictionary,
61 public transportModel
62{
63 // Private Data
64
65 autoPtr<viscosityModel> viscosityModelPtr_;
66
67
68 // Private Member Functions
69
70 //- No copy construct
72
73 //- No copy assignment
74 void operator=(const singlePhaseTransportModel&) = delete;
75
76
77public:
78
79 //- Runtime type information
80 TypeName("singlePhaseTransportModel");
81
82
83 // Constructors
84
85 //- Construct from components
87 (
88 const volVectorField& U,
90 );
91
92
93 //- Destructor
95
96
97 // Member Functions
98
99 //- Return the laminar viscosity
100 virtual tmp<volScalarField> nu() const;
101
102 //- Return the laminar viscosity for patch
103 virtual tmp<scalarField> nu(const label patchi) const;
104
105 //- Correct the laminar viscosity
106 virtual void correct();
107
108 //- Read transportProperties dictionary
109 virtual bool read();
110};
111
112
113// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114
115} // End namespace Foam
116
117// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118
119#endif
120
121// ************************************************************************* //
surfaceScalarField & phi
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:57
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
A simple single-phase transport model based on viscosityModel.
TypeName("singlePhaseTransportModel")
Runtime type information.
virtual void correct()
Correct the laminar viscosity.
virtual tmp< volScalarField > nu() const
Return the laminar viscosity.
virtual bool read()
Read transportProperties dictionary.
A class for managing temporary objects.
Definition: tmp.H:65
Base-class for all transport models used by the incompressible turbulence models.
U
Definition: pEqn.H:72
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73