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-------------------------------------------------------------------------------
11License
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
35namespace Foam
36{
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// ************************************************************************* //
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Definition: Time.C:717
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:91
virtual bool read()
Read object.
Basic thermodynamic properties based on density.
Definition: rhoThermo.H:58
Fundamental solid thermodynamic properties.
Definition: solidThermo.H:55
virtual ~solidThermo()
Destructor.
Definition: solidThermo.C:115
virtual tmp< volScalarField > rho() const
Density [kg/m^3].
Definition: solidThermo.C:121
virtual bool read()
Read thermophysicalProperties dictionary.
Definition: solidThermo.C:139
A class for managing temporary objects.
Definition: tmp.H:65
A class for handling words, derived from Foam::string.
Definition: word.H:68
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Definition: className.H:121
dynamicFvMesh & mesh
const word dictName("faMeshDefinition")
Namespace for OpenFOAM.
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.
dictionary dict