Loading...
Searching...
No Matches
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"
32// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
33
34namespace Foam
35{
36namespace regionModels
37{
40
41// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
42
44
45addToRunTimeSelectionTable(thermalBaffleModel, noThermo, mesh);
46addToRunTimeSelectionTable(thermalBaffleModel, noThermo, dictionary);
47
48// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
49
50bool noThermo::read()
52 return regionModel1D::read();
53}
54
55
56// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
58noThermo::noThermo(const word& modelType, const fvMesh& mesh)
59:
60 thermalBaffleModel(mesh)
61{}
62
63
64noThermo::noThermo
65(
66 const word& modelType,
67 const fvMesh& mesh,
68 const dictionary& dict
69)
71 thermalBaffleModel(modelType, mesh, dict)
72{}
73
74
75// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
76
78{}
80// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
81
83{}
84
85
87{}
88
89
93 << "Cp field not available for " << type()
94 << abort(FatalError);
95 return nullptr;
96}
97
99{
101 << "kappa field not available for " << type()
102 << abort(FatalError);
103 return volScalarField::null();
104}
105
106
107const volScalarField& noThermo::rho() const
108{
110 << "rho field not available for " << type()
111 << abort(FatalError);
112 return volScalarField::null();
113}
114
115
116const volScalarField& noThermo::kappa() const
117{
119 << "K field not available for " << type()
120 << abort(FatalError);
121 return volScalarField::null();
122}
123
124
125const volScalarField& noThermo::T() const
126{
128 << "T field not available for " << type()
129 << abort(FatalError);
130 return volScalarField::null();
131}
132
133
134const solidThermo& noThermo::thermo() const
135{
137 << "T field not available for " << type()
138 << abort(FatalError);
140}
141
142
143// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144
145} // End namespace thermalBaffleModels
146} // End namespace regionModels
147} // End namespace Foam
148
149// ************************************************************************* //
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
Mesh data needed to do the Finite Volume discretisation.
Definition fvMesh.H:85
virtual bool read()
Read control parameters from dictionary.
Dummy surface pyrolysis model for 'none'.
Definition noThermo.H:54
virtual const solidThermo & thermo() const
Return const reference to the solidThermo.
Definition noThermo.C:127
virtual const volScalarField & rho() const
Return density [Kg/m3].
Definition noThermo.C:100
virtual const volScalarField & kappa() const
Return thermal conductivity [W/m/K].
Definition noThermo.C:109
virtual const volScalarField & T() const
Return the film mean temperature [K].
Definition noThermo.C:118
virtual const tmp< volScalarField > Cp() const
Return the film specific heat capacity [J/kg/K].
Definition noThermo.C:83
virtual void preEvolveRegion()
Pre-evolve film.
Definition noThermo.C:75
virtual const volScalarField & kappaRad() const
Return solid absorptivity [1/m].
Definition noThermo.C:91
virtual bool read()
Read control parameters from dictionary.
Definition noThermo.C:43
virtual void evolveRegion()
Evolve the film equations.
Definition noThermo.C:79
Fundamental solid thermodynamic properties.
Definition solidThermo.H:51
A class for managing temporary objects.
Definition tmp.H:75
A class for handling words, derived from Foam::string.
Definition word.H:66
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Definition className.H:142
dynamicFvMesh & mesh
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition error.H:600
Namespace for OpenFOAM.
const T & NullObjectRef() noexcept
Const reference (of type T) to the nullObject.
Definition nullObject.H:228
GeometricField< scalar, fvPatchField, volMesh > volScalarField
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Definition POSIX.C:801
errorManip< error > abort(error &err)
Definition errorManip.H:139
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
dictionary dict