noPyrolysis.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::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 private:
61 
62  // Private member functions
63 
64  //- Disallow default bitwise copy construct
65  noPyrolysis(const noPyrolysis&);
66 
67  //- Disallow default bitwise assignment
68  void operator=(const noPyrolysis&);
69 
70 
71 protected:
72 
73  // Protected member functions
74 
75  //- Read control parameters from dictionary
76  virtual bool read();
77 
78  //- Read control parameters from dictionary
79  virtual bool read(const dictionary& dict);
80 
81  //- Reset solidChemistryModel and solidThermo pointers
83 
84  //- Reference to the solid chemistry model
86 
87  //- Reference to solid thermo
89 
90  //- Pointer to radiation model
92 
93 
94 public:
95 
96  //- Runtime type information
97  TypeName("none");
98 
99 
100  // Constructors
101 
102  //- Construct from type name and mesh
104  (
105  const word& modelType,
106  const fvMesh& mesh,
107  const word& regionType
108  );
109 
110  //- Construct from type name and mesh and dict
112  (
113  const word& modelType,
114  const fvMesh& mesh,
115  const dictionary& dict,
116  const word& regionType
117  );
118 
119 
120  //- Destructor
121  virtual ~noPyrolysis();
122 
123 
124  // Member Functions
125 
126  // Fields
127 
128  //- Return density [kg/m3]
129  virtual const volScalarField& rho() const;
130 
131  //- Return const temperature [K]
132  virtual const volScalarField& T() const;
133 
134  //- Return specific heat capacity [J/kg/K]
135  virtual const tmp<volScalarField> Cp() const;
136 
137  //- Return the region absorptivity [1/m]
138  virtual tmp<volScalarField> kappaRad() const;
139 
140  //- Return the region thermal conductivity [W/m/k]
141  virtual tmp<volScalarField> kappa() const;
142 
143  //- Return the total gas mass flux to primary region [kg/m2/s]
144  virtual const surfaceScalarField& phiGas() const;
145 
146 
147  // Evolution
148 
149  //- Pre-evolve region
150  virtual void preEvolveRegion();
151 
152  //- Evolve the pyrolysis equations
153  virtual void evolveRegion();
154 
155 };
156 
157 
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 
160 } // End namespace pyrolysisModels
161 } // End namespace regionModels
162 } // End namespace Foam
163 
164 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
165 
166 #endif
167 
168 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
virtual tmp< volScalarField > kappaRad() const
Return the region absorptivity [1/m].
Definition: noPyrolysis.C:163
virtual const tmp< volScalarField > Cp() const
Return specific heat capacity [J/kg/K].
Definition: noPyrolysis.C:157
autoPtr< radiation::radiationModel > radiation_
Pointer to radiation model.
Definition: noPyrolysis.H:90
virtual const volScalarField & T() const
Return const temperature [K].
Definition: noPyrolysis.C:151
virtual tmp< volScalarField > kappa() const
Return the region thermal conductivity [W/m/k].
Definition: noPyrolysis.C:169
dynamicFvMesh & mesh
virtual const volScalarField & rho() const
Return density [kg/m3].
Definition: noPyrolysis.C:145
A class for handling words, derived from string.
Definition: word.H:59
virtual void preEvolveRegion()
Pre-evolve region.
Definition: noPyrolysis.C:137
virtual void evolveRegion()
Evolve the pyrolysis equations.
Definition: noPyrolysis.C:141
virtual bool read()
Read control parameters from dictionary.
Definition: noPyrolysis.C:60
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:84
autoPtr< solidReactionThermo > solidThermo_
Reference to solid thermo.
Definition: noPyrolysis.H:87
Namespace for OpenFOAM.
virtual const surfaceScalarField & phiGas() const
Return the total gas mass flux to primary region [kg/m2/s].
Definition: noPyrolysis.C:175