All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
noThermo.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2018 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 :
58  thermalBaffleModel(mesh)
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  (
97  (
98  "noThermo::Cp",
99  primaryMesh(),
101  )
102  );
103 }
104 
106 {
108  << "kappa field not available for " << type()
109  << abort(FatalError);
110  return volScalarField::null();
111 }
112 
113 
115 {
117  << "rho field not available for " << type()
118  << abort(FatalError);
119  return volScalarField::null();
120 }
121 
122 
124 {
126  << "K field not available for " << type()
127  << abort(FatalError);
128  return volScalarField::null();
129 }
130 
131 
133 {
135  << "T field not available for " << type()
136  << abort(FatalError);
137  return volScalarField::null();
138 }
139 
140 
142 {
144  << "T field not available for " << type()
145  << abort(FatalError);
146  return NullObjectRef<solidThermo>();
147 }
148 
149 
150 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 
152 } // End namespace thermalBaffleModels
153 } // End namespace regionModels
154 } // End namespace Foam
155 
156 // ************************************************************************* //
noThermo(const word &modelType, const fvMesh &mesh)
Construct from type name and mesh.
Definition: noThermo.C:56
dictionary dict
virtual void preEvolveRegion()
Pre-evolve film.
Definition: noThermo.C:80
error FatalError
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition: error.H:306
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
virtual const volScalarField & kappa() const
Return thermal conductivity [W/m/K].
Definition: noThermo.C:123
fvMesh & mesh
Macros for easy insertion into run-time selection tables.
const dimensionSet dimTime
const fvMesh & primaryMesh() const
Return the reference to the primary mesh database.
Definition: regionModelI.H:31
virtual const solidThermo & thermo() const
Return const reference to the solidThermo.
Definition: noThermo.C:141
addToRunTimeSelectionTable(thermalBaffleModel, noThermo, mesh)
A class for handling words, derived from string.
Definition: word.H:59
virtual const volScalarField & rho() const
Return density [Kg/m^3].
Definition: noThermo.C:114
errorManip< error > abort(error &err)
Definition: errorManip.H:131
Base-class for solid thermodynamic properties.
Definition: solidThermo.H:53
const dimensionSet dimEnergy
virtual void evolveRegion()
Evolve the film equations.
Definition: noThermo.C:84
static const GeometricField< scalar, fvPatchField, volMesh > & null()
Return a null geometric field.
virtual const tmp< volScalarField > Cp() const
Return the film specific heat capacity [J/kg/K].
Definition: noThermo.C:88
Dummy surface model for &#39;none&#39;.
Definition: noThermo.H:53
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual bool read()
Read control parameters from dictionary.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:95
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Definition: POSIX.C:488
virtual bool read()
Read control parameters from dictionary.
Definition: noThermo.C:48
const dimensionSet dimVolume
thermalBaffleModel(const fvMesh &mesh)
Construct null from mesh.
A class for managing temporary objects.
Definition: PtrList.H:53
virtual const volScalarField & T() const
Return the film mean temperature [K].
Definition: noThermo.C:132
Namespace for OpenFOAM.
virtual const volScalarField & kappaRad() const
Return solid absorptivity [1/m].
Definition: noThermo.C:105