solidThermo.C
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-2012 OpenFOAM Foundation
9  Copyright (C) 2017 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 \*---------------------------------------------------------------------------*/
28 
29 #include "solidThermo.H"
30 #include "fvMesh.H"
31 
32 
33 /* * * * * * * * * * * * * * * private static data * * * * * * * * * * * * * */
34 
35 namespace Foam
36 {
37  defineTypeNameAndDebug(solidThermo, 0);
38  defineRunTimeSelectionTable(solidThermo, fvMesh);
39  defineRunTimeSelectionTable(solidThermo, dictionary);
40  defineRunTimeSelectionTable(solidThermo, fvMeshDictPhase);
41 }
42 
43 
44 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
45 
47 (
48  const fvMesh& mesh,
49  const word& phaseName
50 )
51 :
52  rhoThermo(mesh, phaseName)
53 {}
54 
55 
57 (
58  const fvMesh& mesh,
59  const dictionary& dict,
60  const word& phaseName
61 )
62 :
63  rhoThermo(mesh, dict, phaseName)
64 {}
65 
66 
68 (
69  const fvMesh& mesh,
70  const word& phaseName,
71  const word& dictionaryName
72 )
73 :
74  rhoThermo(mesh, phaseName, dictionaryName)
75 {}
76 
77 
78 
79 // * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
80 
82 (
83  const fvMesh& mesh,
84  const word& phaseName
85 )
86 {
87  return basicThermo::New<solidThermo>(mesh, phaseName);
88 }
89 
90 
92 (
93  const fvMesh& mesh,
94  const dictionary& dict,
95  const word& phaseName
96 )
97 {
98  return basicThermo::New<solidThermo>(mesh, dict, phaseName);
99 }
100 
101 
103 (
104  const fvMesh& mesh,
105  const word& phaseName,
106  const word& dictName
107 )
108 {
109  return basicThermo::New<solidThermo>(mesh, phaseName, dictName);
110 }
111 
112 
113 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
114 
116 {}
117 
118 
119 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
120 
122 {
123  return rho_;
124 }
125 
126 
128 {
129  return rho_.boundaryField()[patchi];
130 }
131 
132 
134 {
135  return rho_;
136 }
137 
138 
140 {
141  return regIOobject::read();
142 }
143 
144 
145 // ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::solidThermo::New
static autoPtr< solidThermo > New(const fvMesh &, const word &phaseName=word::null)
Return a pointer to a new solidThermo created from.
Definition: solidThermo.C:82
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::solidThermo::read
virtual bool read()
Read thermophysicalProperties dictionary.
Definition: solidThermo.C:139
Foam::defineRunTimeSelectionTable
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
dictName
const word dictName("faMeshDefinition")
Foam::regIOobject::read
virtual bool read()
Read object.
Definition: regIOobjectRead.C:191
Foam::solidThermo::rho
virtual tmp< volScalarField > rho() const
Density [kg/m^3].
Definition: solidThermo.C:121
solidThermo.H
Foam::rhoThermo
Basic thermodynamic properties based on density.
Definition: rhoThermo.H:55
Foam::solidThermo::~solidThermo
virtual ~solidThermo()
Destructor.
Definition: solidThermo.C:115
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
fvMesh.H
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::autoPtr< Foam::solidThermo >
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::defineTypeNameAndDebug
defineTypeNameAndDebug(combustionModel, 0)
Foam::solidThermo::solidThermo
solidThermo(const fvMesh &, const word &phaseName)
Construct from mesh and phase name.
Definition: solidThermo.C:47