noThermo.H
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-2013 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 Class
27  Foam::regionModels::thermalBaffleModels::noThermo
28 
29 Description
30  Dummy surface pyrolysis model for 'none'
31 
32 SourceFiles
33  noThermo.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef noThermo_H
38 #define noThermo_H
39 
40 #include "thermalBaffleModel.H"
41 #include "volFieldsFwd.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 namespace regionModels
48 {
49 namespace thermalBaffleModels
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class noThermo Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 class noThermo
57 :
58  public thermalBaffleModel
59 {
60 private:
61 
62  // Private member functions
63 
64  //- No copy construct
65  noThermo(const noThermo&) = delete;
66 
67  //- No copy assignment
68  void operator=(const noThermo&) = delete;
69 
70 
71 protected:
72 
73  // Protected member functions
74 
75  //- Read control parameters from dictionary
76  virtual bool read();
77 
78 
79 public:
80 
81  //- Runtime type information
82  TypeName("none");
83 
84 
85  // Constructors
86 
87  //- Construct from type name and mesh
88  noThermo(const word& modelType, const fvMesh& mesh);
89 
90  //- Construct from components and dict
91  noThermo
92  (
93  const word& modelType,
94  const fvMesh& mesh,
95  const dictionary& dict
96 
97  );
98 
99 
100  //- Destructor
101  virtual ~noThermo();
102 
103 
104  // Member Functions
105 
106 
107  // Thermo properties
108 
109  //- Return const reference to the solidThermo
110  virtual const solidThermo& thermo() const;
111 
112 
113  // Fields
114 
115  //- Return the film specific heat capacity [J/kg/K]
116  virtual const tmp<volScalarField> Cp() const;
117 
118  //- Return solid absorptivity [1/m]
119  virtual const volScalarField& kappaRad() const;
120 
121  //- Return the film mean temperature [K]
122  virtual const volScalarField& T() const;
123 
124  //- Return density [Kg/m3]
125  virtual const volScalarField& rho() const;
126 
127  //- Return thermal conductivity [W/m/K]
128  virtual const volScalarField& kappa() const;
129 
130 
131  // Evolution
132 
133  //- Pre-evolve film
134  virtual void preEvolveRegion();
135 
136  //- Evolve the film equations
137  virtual void evolveRegion();
138 
139 };
140 
141 
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 
144 } // End namespace thermalBaffleModels
145 } // End namespace regionModels
146 } // End namespace Foam
147 
148 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 
150 #endif
151 
152 // ************************************************************************* //
Foam::regionModels::thermalBaffleModels::noThermo::kappa
virtual const volScalarField & kappa() const
Return thermal conductivity [W/m/K].
Definition: noThermo.C:133
volFieldsFwd.H
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:65
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::regionModels::thermalBaffleModels::noThermo::preEvolveRegion
virtual void preEvolveRegion()
Pre-evolve film.
Definition: noThermo.C:82
thermalBaffleModel.H
Foam::regionModels::thermalBaffleModels::noThermo
Dummy surface pyrolysis model for 'none'.
Definition: noThermo.H:55
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::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::noThermo::TypeName
TypeName("none")
Runtime type information.
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::regionModels::thermalBaffleModels::noThermo::thermo
virtual const solidThermo & thermo() const
Return const reference to the solidThermo.
Definition: noThermo.C:151
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::GeometricField< scalar, fvPatchField, volMesh >