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 -------------------------------------------------------------------------------
10 License
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 
34 namespace Foam
35 {
36 namespace regionModels
37 {
38 namespace 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 
58 noThermo::noThermo(const word& modelType, const fvMesh& mesh)
59 :
61 {}
62 
63 
64 noThermo::noThermo
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 
96  return tmp<volScalarField>
97  (
98  new volScalarField
99  (
100  IOobject
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 // ************************************************************************* //
Foam::IOobject::NO_WRITE
Definition: IOobject.H:130
Foam::regionModels::regionModel1D::read
virtual bool read()
Read control parameters from dictionary.
Definition: regionModel1D.C:170
volFields.H
Foam::regionModels::thermalBaffleModels::noThermo::kappa
virtual const volScalarField & kappa() const
Return thermal conductivity [W/m/K].
Definition: noThermo.C:133
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:104
Foam::regionModels::thermalBaffleModels::noThermo::rho
virtual const volScalarField & rho() const
Return density [Kg/m3].
Definition: noThermo.C:124
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:62
Foam::regionModels::thermalBaffleModels::noThermo::T
virtual const volScalarField & T() const
Return the film mean temperature [K].
Definition: noThermo.C:142
Foam::regionModels::thermalBaffleModels::noThermo::~noThermo
virtual ~noThermo()
Destructor.
Definition: noThermo.C:77
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::Zero
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:131
Foam::dimEnergy
const dimensionSet dimEnergy
noThermo.H
Foam::regionModels::thermalBaffleModels::noThermo::preEvolveRegion
virtual void preEvolveRegion()
Pre-evolve film.
Definition: noThermo.C:82
Foam::regionModels::regionModel::time
const Time & time() const
Return the reference to the time database.
Definition: regionModelI.H:40
Foam::regionModels::thermalBaffleModels::noThermo
Dummy surface pyrolysis model for 'none'.
Definition: noThermo.H:55
Foam::regionModels::regionModel::primaryMesh
const fvMesh & primaryMesh() const
Return the reference to the primary mesh database.
Definition: regionModelI.H:34
Foam::regionModels::thermalBaffleModels::noThermo::evolveRegion
virtual void evolveRegion()
Evolve the film equations.
Definition: noThermo.C:86
Foam::solidThermo
Fundamental solid thermodynamic properties.
Definition: solidThermo.H:52
Foam::dimTime
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:54
Foam::regionModels::thermalBaffleModels::thermalBaffleModel
Definition: thermalBaffleModel.H:60
Foam::regionModels::thermalBaffleModels::noThermo::Cp
virtual const tmp< volScalarField > Cp() const
Return the film specific heat capacity [J/kg/K].
Definition: noThermo.C:90
Foam::regionModels::thermalBaffleModels::addToRunTimeSelectionTable
addToRunTimeSelectionTable(thermalBaffleModel, noThermo, mesh)
Foam::dimensionedScalar
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Definition: dimensionedScalarFwd.H:43
timeName
word timeName
Definition: getTimeIndex.H:3
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::FatalError
error FatalError
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:121
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:83
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::abort
errorManip< error > abort(error &err)
Definition: errorManip.H:144
Foam::regionModels::thermalBaffleModels::noThermo::thermo
virtual const solidThermo & thermo() const
Return const reference to the solidThermo.
Definition: noThermo.C:151
Foam::regionModels::thermalBaffleModels::defineTypeNameAndDebug
defineTypeNameAndDebug(noThermo, 0)
FatalErrorInFunction
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition: error.H:381
Foam::regionModels::thermalBaffleModels::noThermo::read
virtual bool read()
Read control parameters from dictionary.
Definition: noThermo.C:50
Foam::regionModels::thermalBaffleModels::noThermo::kappaRad
virtual const volScalarField & kappaRad() const
Return solid absorptivity [1/m].
Definition: noThermo.C:115
Foam::type
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Definition: MSwindows.C:590
Foam::GeometricField< scalar, fvPatchField, volMesh >::null
static const GeometricField< scalar, fvPatchField, volMesh > & null()
Return a null geometric field.
Definition: GeometricFieldI.H:32
Foam::dimVolume
const dimensionSet dimVolume(pow3(dimLength))
Definition: dimensionSets.H:61
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::IOobject::NO_READ
Definition: IOobject.H:123