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-2022 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 
28 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
29 
30 namespace Foam
31 {
33 }
34 
35 
36 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
37 
39 (
40  const fvMesh& mesh,
41  const word& group
42 )
43 :
45  (
46  IOobject
47  (
48  IOobject::groupName(typeName, group),
49  mesh.time().constant(),
50  mesh,
51  IOobject::READ_IF_PRESENT,
52  IOobject::NO_WRITE
53  )
54  )
55 {
56  // Add run-time re-reading of thermophysicalTransport dictionary
57  // after construction to avoid problems if the dictionary is not present
59  addWatch();
60 }
61 
62 
63 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
64 
66 {
67  return regIOobject::read();
68 }
69 
70 
72 {}
73 
74 
76 {}
77 
78 
79 // ************************************************************************* //
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:57
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:99
@ MUST_READ_IF_MODIFIED
Definition: IOobject.H:119
readOption readOpt() const
Definition: IOobject.H:360
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:99
void addWatch()
Add file watch on object (if registered and READ_IF_MODIFIED)
Definition: regIOobject.C:259
virtual bool read()
Read object.
Abstract base class for all fluid and solid thermophysical transport models.
thermophysicalTransportModel(const fvMesh &mesh, const word &group)
Construct from mesh and group.
virtual void correct()
Solve the thermophysical transport model equations.
virtual bool read()=0
Read model coefficients if they have changed.
virtual void predict()=0
Predict the thermophysical transport coefficients if possible.
A class for handling words, derived from string.
Definition: word.H:62
const char *const group
Group name for atomic constants.
Namespace for OpenFOAM.
defineTypeNameAndDebug(combustionModel, 0)