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 | Copyright (C) 2011-2015 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
26 #include "noThermo.H"
28 #include "volFields.H"
29 
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31 
32 namespace Foam
33 {
34 namespace regionModels
35 {
36 namespace thermalBaffleModels
37 {
38 
39 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
40 
42 
45 
46 // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
47 
49 {
50  return regionModel1D::read();
51 }
52 
53 
54 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
55 
56 noThermo::noThermo(const word& modelType, const fvMesh& mesh)
57 :
59 {}
60 
61 
63 (
64  const word& modelType,
65  const fvMesh& mesh,
66  const dictionary& dict
67 )
68 :
69  thermalBaffleModel(modelType, mesh, dict)
70 {}
71 
72 
73 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
74 
76 {}
77 
78 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
79 
81 {}
82 
83 
85 {}
86 
87 
89 {
91  << "Cp field not available for " << type()
92  << abort(FatalError);
93 
94  return tmp<volScalarField>
95  (
96  new volScalarField
97  (
98  IOobject
99  (
100  "noThermo::Cp",
101  time().timeName(),
102  primaryMesh(),
105  false
106  ),
107  primaryMesh(),
109  )
110  );
111 }
112 
114 {
116  << "kappa field not available for " << type()
117  << abort(FatalError);
118  return volScalarField::null();
119 }
120 
121 
123 {
125  << "rho field not available for " << type()
126  << abort(FatalError);
127  return volScalarField::null();
128 }
129 
130 
132 {
134  << "K field not available for " << type()
135  << abort(FatalError);
136  return volScalarField::null();
137 }
138 
139 
141 {
143  << "T field not available for " << type()
144  << abort(FatalError);
145  return volScalarField::null();
146 }
147 
148 
150 {
152  << "T field not available for " << type()
153  << abort(FatalError);
154  return NullObjectRef<solidThermo>();
155 }
156 
157 
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 
160 } // End namespace thermalBaffleModels
161 } // End namespace regionModels
162 } // End namespace Foam
163 
164 // ************************************************************************* //
Foam::regionModels::regionModel1D::read
virtual bool read()
Read control parameters from dictionary.
Definition: regionModel1D.C:149
volFields.H
Foam::regionModels::thermalBaffleModels::noThermo::kappa
virtual const volScalarField & kappa() const
Return thermal conductivity [W/m/K].
Definition: noThermo.C:131
Foam::IOobject
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:91
Foam::regionModels::thermalBaffleModels::noThermo::rho
virtual const volScalarField & rho() const
Return density [Kg/m3].
Definition: noThermo.C:122
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::regionModels::thermalBaffleModels::noThermo::T
virtual const volScalarField & T() const
Return the film mean temperature [K].
Definition: noThermo.C:140
Foam::regionModels::thermalBaffleModels::noThermo::~noThermo
virtual ~noThermo()
Destructor.
Definition: noThermo.C:75
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
Foam::dimEnergy
const dimensionSet dimEnergy
noThermo.H
Foam::regionModels::thermalBaffleModels::noThermo::preEvolveRegion
virtual void preEvolveRegion()
Pre-evolve film.
Definition: noThermo.C:80
Foam::regionModels::regionModel::time
const Time & time() const
Return the reference to the time database.
Definition: regionModelI.H:37
Foam::IOobject::NO_WRITE
@ NO_WRITE
Definition: IOobject.H:118
Foam::regionModels::thermalBaffleModels::noThermo
Definition: noThermo.H:53
Foam::regionModels::regionModel::primaryMesh
const fvMesh & primaryMesh() const
Return the reference to the primary mesh database.
Definition: regionModelI.H:31
Foam::regionModels::thermalBaffleModels::noThermo::evolveRegion
virtual void evolveRegion()
Evolve the film equations.
Definition: noThermo.C:84
Foam::solidThermo
Fundamental solid thermodynamic properties.
Definition: solidThermo.H:54
Foam::dimTime
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:51
Foam::regionModels::thermalBaffleModels::thermalBaffleModel
Definition: thermalBaffleModel.H:58
Foam::regionModels::thermalBaffleModels::noThermo::Cp
virtual const tmp< volScalarField > Cp() const
Return the film specific heat capacity [J/kg/K].
Definition: noThermo.C:88
Foam::IOobject::NO_READ
@ NO_READ
Definition: IOobject.H:111
Foam::regionModels::thermalBaffleModels::addToRunTimeSelectionTable
addToRunTimeSelectionTable(thermalBaffleModel, noThermo, mesh)
Foam::dimensionedScalar
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Definition: dimensionedScalarFwd.H:41
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::FatalError
error FatalError
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
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:78
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::abort
errorManip< error > abort(error &err)
Definition: errorManip.H:131
Foam::regionModels::thermalBaffleModels::noThermo::thermo
virtual const solidThermo & thermo() const
Return const reference to the solidThermo.
Definition: noThermo.C:149
Foam::regionModels::thermalBaffleModels::defineTypeNameAndDebug
defineTypeNameAndDebug(noThermo, 0)
FatalErrorInFunction
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition: error.H:318
Foam::regionModels::thermalBaffleModels::noThermo::read
virtual bool read()
Read control parameters from dictionary.
Definition: noThermo.C:48
Foam::regionModels::thermalBaffleModels::noThermo::kappaRad
virtual const volScalarField & kappaRad() const
Return solid absortivity [1/m].
Definition: noThermo.C:113
timeName
word timeName
Definition: getTimeIndex.H:3
Foam::GeometricField::null
static const GeometricField< Type, PatchField, GeoMesh > & null()
Return a null geometric field.
Definition: GeometricFieldI.H:30
Foam::type
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Definition: POSIX.C:588
Foam::dimVolume
const dimensionSet dimVolume(pow3(dimLength))
Definition: dimensionSets.H:58
Foam::GeometricField
Generic GeometricField class.
Definition: surfaceFieldsFwd.H:52
Foam::regionModels::thermalBaffleModels::noThermo::noThermo
noThermo(const noThermo &)
Disallow default bitwise copy construct.