1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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.
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
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/>.
28 Dummy surface pyrolysis model for 'none'
33 \*---------------------------------------------------------------------------*/
38 #include "pyrolysisModel.H"
39 #include "volFieldsFwd.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace regionModels
47 namespace pyrolysisModels
50 /*---------------------------------------------------------------------------*\
51 Class noPyrolysis Declaration
52 \*---------------------------------------------------------------------------*/
60 // Private member functions
62 //- Disallow default bitwise copy construct
63 noPyrolysis(const noPyrolysis&);
65 //- Disallow default bitwise assignment
66 void operator=(const noPyrolysis&);
71 // Protected member functions
73 //- Read control parameters from dictionary
76 //- Read control parameters from dictionary
77 virtual bool read(const dictionary& dict);
79 //- Reset solidChemistryModel and basicSolidThermo pointers
80 void constructThermoChemistry();
82 //- Reference to the solid chemistry model
83 autoPtr<solidChemistryModel> solidChemistry_;
85 //- Reference to solid thermo
86 autoPtr<basicSolidThermo> solidThermo_;
91 //- Runtime type information
97 //- Construct from type name and mesh
98 noPyrolysis(const word& modelType, const fvMesh& mesh);
100 //- Construct from type name and mesh and dict
103 const word& modelType,
105 const dictionary& dict
110 virtual ~noPyrolysis();
117 //- Return density [kg/m3]
118 virtual const volScalarField& rho() const;
120 //- Return const temperature [K]
121 virtual const volScalarField& T() const;
123 //- Return specific heat capacity [J/kg/K]
124 virtual const tmp<volScalarField> Cp() const;
126 //- Return the region absorptivity [1/m]
127 virtual const volScalarField& kappa() const;
129 //- Return the region thermal conductivity [W/m/k]
130 virtual const volScalarField& K() const;
132 //- Return the total gas mass flux to primary region [kg/m2/s]
133 virtual const surfaceScalarField& phiGas() const;
138 //- Pre-evolve region
139 virtual void preEvolveRegion();
141 //- Evolve the pyrolysis equations
142 virtual void evolveRegion();
147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 } // End namespace pyrolysisModels
150 } // End namespace regionModels
151 } // End namespace Foam
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
157 // ************************************************************************* //