thermophysicalTransportModel.C
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) 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 \*---------------------------------------------------------------------------*/
25 
27 #include "surfaceFields.H"
28 
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
33  defineTypeNameAndDebug(thermophysicalTransportModel, 0);
34 }
35 
36 
37 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
38 
40 (
41  const compressibleMomentumTransportModel& momentumTransport
42 )
43 :
45  (
46  IOobject
47  (
49  (
50  typeName, momentumTransport.alphaRhoPhi().group()
51  ),
52  momentumTransport.time().constant(),
53  momentumTransport.mesh(),
56  )
57  ),
58 
59  momentumTransportModel_(momentumTransport)
60 {
61  // Add run-time re-reading of thermophysicalTransport dictionary
62  // after construction to avoid problems if the dictionary is not present
64  addWatch();
65 }
66 
67 
68 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
69 
71 {
72  return regIOobject::read();
73 }
74 
75 
77 {}
78 
79 
80 // ************************************************************************* //
Foam::surfaceFields.
static word group(const word &name)
Return group (extension part of name)
Definition: IOobject.C:134
virtual bool read()
Read object.
thermophysicalTransportModel(const compressibleMomentumTransportModel &momentumTransport)
Construct from compressibleMomentumTransportModel.
virtual bool read()=0
Read model coefficients if they have changed.
virtual void correct()=0
Solve the thermophysical transport model equations.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:53
static word groupName(Name name, const word &group)
const word & constant() const
Return constant name.
Definition: TimePaths.H:123
defineTypeNameAndDebug(combustionModel, 0)
const surfaceScalarField & alphaRhoPhi() const
Access function to phase flux field.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:92
Abstract base class for turbulence models (RAS, LES and laminar).
Namespace for OpenFOAM.