noThermo.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-2015 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
26\*---------------------------------------------------------------------------*/
27
28#include "noThermo.H"
30#include "volFields.H"
31
32// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
33
34namespace Foam
35{
36namespace regionModels
37{
38namespace thermalBaffleModels
39{
40
41// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
42
44
47
48// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
49
51{
52 return regionModel1D::read();
53}
54
55
56// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
57
58noThermo::noThermo(const word& modelType, const fvMesh& mesh)
59:
61{}
62
63
65(
66 const word& modelType,
67 const fvMesh& mesh,
68 const dictionary& dict
69)
70:
71 thermalBaffleModel(modelType, mesh, dict)
72{}
73
74
75// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
76
78{}
79
80// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
81
83{}
84
85
87{}
88
89
91{
93 << "Cp field not available for " << type()
94 << abort(FatalError);
95
97 (
99 (
101 (
102 "noThermo::Cp",
103 time().timeName(),
104 primaryMesh(),
107 false
108 ),
109 primaryMesh(),
111 )
112 );
113}
114
116{
118 << "kappa field not available for " << type()
119 << abort(FatalError);
120 return volScalarField::null();
121}
122
123
125{
127 << "rho field not available for " << type()
128 << abort(FatalError);
129 return volScalarField::null();
130}
131
132
134{
136 << "K field not available for " << type()
137 << abort(FatalError);
138 return volScalarField::null();
139}
140
141
143{
145 << "T field not available for " << type()
146 << abort(FatalError);
147 return volScalarField::null();
148}
149
150
152{
154 << "T field not available for " << type()
155 << abort(FatalError);
156 return NullObjectRef<solidThermo>();
157}
158
159
160// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
161
162} // End namespace thermalBaffleModels
163} // End namespace regionModels
164} // End namespace Foam
165
166// ************************************************************************* //
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
static const GeometricField< scalar, fvPatchField, volMesh > & null()
Return a null geometric field.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:170
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 control parameters from dictionary.
const Time & time() const
Return the reference to the time database.
Definition: regionModelI.H:40
const fvMesh & primaryMesh() const
Return the reference to the primary mesh database.
Definition: regionModelI.H:34
Dummy surface pyrolysis model for 'none'.
Definition: noThermo.H:58
virtual const solidThermo & thermo() const
Return const reference to the solidThermo.
Definition: noThermo.C:151
virtual const volScalarField & rho() const
Return density [Kg/m3].
Definition: noThermo.C:124
virtual const volScalarField & kappa() const
Return thermal conductivity [W/m/K].
Definition: noThermo.C:133
virtual const volScalarField & T() const
Return the film mean temperature [K].
Definition: noThermo.C:142
virtual const tmp< volScalarField > Cp() const
Return the film specific heat capacity [J/kg/K].
Definition: noThermo.C:90
virtual void preEvolveRegion()
Pre-evolve film.
Definition: noThermo.C:82
virtual const volScalarField & kappaRad() const
Return solid absorptivity [1/m].
Definition: noThermo.C:115
virtual bool read()
Read control parameters from dictionary.
Definition: noThermo.C:50
virtual void evolveRegion()
Evolve the film equations.
Definition: noThermo.C:86
Fundamental solid thermodynamic properties.
Definition: solidThermo.H:55
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
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition: error.H:453
word timeName
Definition: getTimeIndex.H:3
Namespace for OpenFOAM.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimEnergy
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:53
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Definition: MSwindows.C:598
errorManip< error > abort(error &err)
Definition: errorManip.H:144
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:131
error FatalError
const dimensionSet dimVolume(pow3(dimLength))
Definition: dimensionSets.H:60
dictionary dict