noPyrolysis.H
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-2019 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::regionModels::pyrolysisModels::noPyrolysis
26 
27 Description
28  Dummy surface pyrolysis model for 'none'
29 
30 SourceFiles
31  noPyrolysis.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef noPyrolysis_H
36 #define noPyrolysis_H
37 
38 #include "pyrolysisModel.H"
39 #include "volFieldsFwd.H"
41 #include "radiationModel.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 namespace regionModels
48 {
49 namespace pyrolysisModels
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class noPyrolysis Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 class noPyrolysis
57 :
58  public pyrolysisModel
59 {
60 protected:
61 
62  // Protected member functions
63 
64  //- Read control parameters from dictionary
65  virtual bool read();
66 
67  //- Read control parameters from dictionary
68  virtual bool read(const dictionary& dict);
69 
70  //- Reset solidChemistryModel and solidThermo pointers
72 
73  //- Reference to solid thermo
75 
76  //- Reference to the solid chemistry model
78 
79  //- Pointer to radiation model
81 
82 
83 public:
84 
85  //- Runtime type information
86  TypeName("none");
87 
88 
89  // Constructors
90 
91  //- Construct from type name and mesh
93  (
94  const word& modelType,
95  const fvMesh& mesh,
96  const word& regionType
97  );
98 
99  //- Construct from type name and mesh and dict
101  (
102  const word& modelType,
103  const fvMesh& mesh,
104  const dictionary& dict,
105  const word& regionType
106  );
107 
108  //- Disallow default bitwise copy construction
109  noPyrolysis(const noPyrolysis&) = delete;
110 
111 
112  //- Destructor
113  virtual ~noPyrolysis();
114 
115 
116  // Member Functions
117 
118  // Fields
119 
120  //- Return density [kg/m^3]
121  virtual const volScalarField& rho() const;
122 
123  //- Return const temperature [K]
124  virtual const volScalarField& T() const;
125 
126  //- Return specific heat capacity [J/kg/K]
127  virtual const tmp<volScalarField> Cp() const;
128 
129  //- Return the region absorptivity [1/m]
130  virtual tmp<volScalarField> kappaRad() const;
131 
132  //- Return the region thermal conductivity [W/m/k]
133  virtual tmp<volScalarField> kappa() const;
134 
135  //- Return the total gas mass flux to primary region [kg/m^2/s]
136  virtual const surfaceScalarField& phiGas() const;
137 
138 
139  // Evolution
140 
141  //- Pre-evolve region
142  virtual void preEvolveRegion();
143 
144  //- Evolve the pyrolysis equations
145  virtual void evolveRegion();
146 
147 
148  // Member Operators
149 
150  //- Disallow default bitwise assignment
151  void operator=(const noPyrolysis&) = delete;
152 };
153 
154 
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 
157 } // End namespace pyrolysisModels
158 } // End namespace regionModels
159 } // End namespace Foam
160 
161 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162 
163 #endif
164 
165 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
virtual tmp< volScalarField > kappaRad() const
Return the region absorptivity [1/m].
Definition: noPyrolysis.C:168
virtual const tmp< volScalarField > Cp() const
Return specific heat capacity [J/kg/K].
Definition: noPyrolysis.C:162
virtual const volScalarField & T() const
Return const temperature [K].
Definition: noPyrolysis.C:156
virtual tmp< volScalarField > kappa() const
Return the region thermal conductivity [W/m/k].
Definition: noPyrolysis.C:174
autoPtr< radiationModel > radiation_
Pointer to radiation model.
Definition: noPyrolysis.H:79
dynamicFvMesh & mesh
virtual const volScalarField & rho() const
Return density [kg/m^3].
Definition: noPyrolysis.C:150
A class for handling words, derived from string.
Definition: word.H:59
Dummy surface pyrolysis model for &#39;none&#39;.
Definition: noPyrolysis.H:55
virtual void preEvolveRegion()
Pre-evolve region.
Definition: noPyrolysis.C:142
virtual void evolveRegion()
Evolve the pyrolysis equations.
Definition: noPyrolysis.C:146
noPyrolysis(const word &modelType, const fvMesh &mesh, const word &regionType)
Construct from type name and mesh.
Definition: noPyrolysis.C:96
virtual bool read()
Read control parameters from dictionary.
Definition: noPyrolysis.C:65
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
TypeName("none")
Runtime type information.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
void constructThermoChemistry()
Reset solidChemistryModel and solidThermo pointers.
Definition: noPyrolysis.C:48
A class for managing temporary objects.
Definition: PtrList.H:53
autoPtr< basicSolidChemistryModel > solidChemistry_
Reference to the solid chemistry model.
Definition: noPyrolysis.H:76
void operator=(const noPyrolysis &)=delete
Disallow default bitwise assignment.
autoPtr< solidReactionThermo > solidThermo_
Reference to solid thermo.
Definition: noPyrolysis.H:73
Namespace for OpenFOAM.
virtual const surfaceScalarField & phiGas() const
Return the total gas mass flux to primary region [kg/m^2/s].
Definition: noPyrolysis.C:180