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