38 namespace regionModels
40 namespace pyrolysisModels
86 noPyrolysis::noPyrolysis
88 const word& modelType,
90 const word& regionType
94 solidThermo_(nullptr),
95 solidChemistry_(nullptr),
105 noPyrolysis::noPyrolysis
107 const word& modelType,
110 const word& regionType
113 pyrolysisModel(
mesh, regionType),
114 solidThermo_(nullptr),
115 solidChemistry_(nullptr),
Base class for pyrolysis models.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(noPyrolysis, 0)
virtual tmp< volScalarField > kappaRad() const
Return the region absorptivity [1/m].
virtual bool read()
Read control parameters.
virtual const tmp< volScalarField > Cp() const
Return specific heat capacity [J/kg/K].
autoPtr< radiation::radiationModel > radiation_
Pointer to radiation model.
Macros for easy insertion into run-time selection tables.
virtual const volScalarField & T() const
Return const temperature [K].
static autoPtr< basicSolidChemistryModel > New(solidReactionThermo &thermo)
Selector.
virtual tmp< volScalarField > kappa() const
Return the region thermal conductivity [W/m/k].
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Switch active() const noexcept
Return the active flag.
static autoPtr< radiationModel > New(const volScalarField &T)
Return a reference to the selected radiation model.
virtual const volScalarField & rho() const
Return density [kg/m3].
A class for handling words, derived from Foam::string.
Dummy surface pyrolysis model for 'none'.
virtual void preEvolveRegion()
Pre-evolve region.
virtual void evolveRegion()
Evolve the pyrolysis equations.
const fvMesh & regionMesh() const
Return the region mesh database.
static const GeometricField< scalar, fvsPatchField, surfaceMesh > & null() noexcept
Return a null GeometricField (reference to a nullObject).
errorManip< error > abort(error &err)
virtual ~noPyrolysis()
Destructor.
static autoPtr< solidReactionThermo > New(const fvMesh &, const word &phaseName=word::null)
Standard selection based on fvMesh.
virtual bool read()
Read control parameters from dictionary.
Mesh data needed to do the Finite Volume discretisation.
void constructThermoChemistry()
Reset solidChemistryModel and solidThermo pointers.
A class for managing temporary objects.
autoPtr< basicSolidChemistryModel > solidChemistry_
Reference to the solid chemistry model.
autoPtr< solidReactionThermo > solidThermo_
Reference to solid thermo.
addToRunTimeSelectionTable(pyrolysisModel, noPyrolysis, mesh)
virtual const surfaceScalarField & phiGas() const
Return the total gas mass flux to primary region [kg/m2/s].