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-2015 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  //- Pointer to the solid chemistry model
86 
87  //- Pointer to radiation model
89 
90 
91 public:
92 
93  //- Runtime type information
94  TypeName("none");
95 
96 
97  // Constructors
98 
99  //- Construct from type name and mesh
101  (
102  const word& modelType,
103  const fvMesh& mesh,
104  const word& regionType
105  );
106 
107  //- Construct from type name and mesh and dict
109  (
110  const word& modelType,
111  const fvMesh& mesh,
112  const dictionary& dict,
113  const word& regionType
114  );
115 
116 
117  //- Destructor
118  virtual ~noPyrolysis();
119 
120 
121  // Member Functions
122 
123  // Fields
124 
125  //- Return density [kg/m3]
126  virtual const volScalarField& rho() const;
127 
128  //- Return const temperature [K]
129  virtual const volScalarField& T() const;
130 
131  //- Return specific heat capacity [J/kg/K]
132  virtual const tmp<volScalarField> Cp() const;
133 
134  //- Return the region absorptivity [1/m]
135  virtual tmp<volScalarField> kappaRad() const;
136 
137  //- Return the region thermal conductivity [W/m/k]
138  virtual tmp<volScalarField> kappa() const;
139 
140  //- Return the total gas mass flux to primary region [kg/m2/s]
141  virtual const surfaceScalarField& phiGas() const;
142 
143 
144  // Evolution
145 
146  //- Pre-evolve region
147  virtual void preEvolveRegion();
148 
149  //- Evolve the pyrolysis equations
150  virtual void evolveRegion();
151 
152 };
153 
154 
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 
157 } // End namespace pyrolysisModels
158 } // End namespace regionModels
159 } // End namespace Foam
160 
161 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162 
163 #endif
164 
165 // ************************************************************************* //
Foam::regionModels::pyrolysisModels::pyrolysisModel
Base class for pyrolysis models.
Definition: pyrolysisModel.H:60
volFieldsFwd.H
Foam::regionModels::pyrolysisModels::noPyrolysis::kappa
virtual tmp< volScalarField > kappa() const
Return the region thermal conductivity [W/m/k].
Definition: noPyrolysis.C:173
basicSolidChemistryModel.H
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::regionModels::pyrolysisModels::noPyrolysis::operator=
void operator=(const noPyrolysis &)
Disallow default bitwise assignment.
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
Foam::regionModels::pyrolysisModels::noPyrolysis
Definition: noPyrolysis.H:55
Foam::regionModels::pyrolysisModels::noPyrolysis::evolveRegion
virtual void evolveRegion()
Evolve the pyrolysis equations.
Definition: noPyrolysis.C:143
Foam::regionModels::pyrolysisModels::noPyrolysis::constructThermoChemistry
void constructThermoChemistry()
Reset solidChemistryModel and solidThermo pointers.
Definition: noPyrolysis.C:48
Foam::regionModels::pyrolysisModels::noPyrolysis::rho
virtual const volScalarField & rho() const
Return density [kg/m3].
Definition: noPyrolysis.C:149
Foam::regionModels::pyrolysisModels::noPyrolysis::T
virtual const volScalarField & T() const
Return const temperature [K].
Definition: noPyrolysis.C:155
pyrolysisModel.H
Foam::regionModels::pyrolysisModels::noPyrolysis::phiGas
virtual const surfaceScalarField & phiGas() const
Return the total gas mass flux to primary region [kg/m2/s].
Definition: noPyrolysis.C:179
Foam::regionModels::pyrolysisModels::noPyrolysis::read
virtual bool read()
Read control parameters from dictionary.
Definition: noPyrolysis.C:62
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::regionModels::pyrolysisModels::noPyrolysis::radiation_
autoPtr< radiation::radiationModel > radiation_
Pointer to radiation model.
Definition: noPyrolysis.H:87
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::regionModels::pyrolysisModels::noPyrolysis::Cp
virtual const tmp< volScalarField > Cp() const
Return specific heat capacity [J/kg/K].
Definition: noPyrolysis.C:161
Foam::regionModels::pyrolysisModels::noPyrolysis::kappaRad
virtual tmp< volScalarField > kappaRad() const
Return the region absorptivity [1/m].
Definition: noPyrolysis.C:167
Foam::autoPtr
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:117
Foam::regionModels::pyrolysisModels::noPyrolysis::preEvolveRegion
virtual void preEvolveRegion()
Pre-evolve region.
Definition: noPyrolysis.C:137
Foam::regionModels::pyrolysisModels::noPyrolysis::noPyrolysis
noPyrolysis(const noPyrolysis &)
Disallow default bitwise copy construct.
Foam::regionModels::pyrolysisModels::noPyrolysis::TypeName
TypeName("none")
Runtime type information.
Foam::regionModels::pyrolysisModels::noPyrolysis::~noPyrolysis
virtual ~noPyrolysis()
Destructor.
Definition: noPyrolysis.C:131
Foam::GeometricField
Generic GeometricField class.
Definition: surfaceFieldsFwd.H:52
Foam::regionModels::pyrolysisModels::noPyrolysis::solidChemistry_
autoPtr< basicSolidChemistryModel > solidChemistry_
Pointer to the solid chemistry model.
Definition: noPyrolysis.H:84
radiationModel.H