39 namespace regionModels
41 namespace pyrolysisModels
88 const word& modelType,
90 const word& regionType
108 const word& modelType,
111 const word& regionType
114 pyrolysisModel(modelType,
mesh,
dict, regionType),
virtual tmp< volScalarField > kappaRad() const
Return the region absorptivity [1/m].
Base class for pyrolysis models.
Pyrolysis model which solves only the energy equation in the region.
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...
virtual bool read()
Read control parameters from dictionary.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(noPyrolysis, 0)
virtual tmp< volScalarField > kappa() const
Return the region thermal conductivity [W/m/k].
void readControls()
Read control options.
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
virtual void evolveRegion()
Evolve the pyrolysis equations.
virtual const volScalarField & T() const
Return const temperature [K].
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
virtual bool read()
Read control parameters.
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
Macros for easy insertion into run-time selection tables.
virtual void preEvolveRegion()
Pre-evolve region.
autoPtr< radiation::radiationModel > radiation_
Pointer to radiation model.
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, IOobjectOption::readOption readOpt=IOobjectOption::MUST_READ) const
Find entry and assign to T val. FatalIOError if it is found and the number of tokens is incorrect...
virtual const surfaceScalarField & phiGas() const
Return the total gas mass flux to primary region [kg/m2/s].
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.
virtual ~thermo()
Destructor.
virtual void preEvolveRegion()
Pre-evolve region.
scalar maxDiff_
Maximum diffusivity.
A class for handling words, derived from Foam::string.
Calculate the laplacian of the given field.
const dictionary & solution() const
Return the solution dictionary.
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
const fvMesh & regionMesh() const
Return the region mesh database.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
Top level model for radiation modelling.
errorManip< error > abort(error &err)
Fundamental solid thermodynamic properties.
autoPtr< solidThermo > solidThermo_
Pointer to the solid chemistry model.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const dimensionedScalar h
Planck constant.
static const GeometricField< scalar, fvsPatchField, surfaceMesh > & null()
Return a null geometric field.
const word & name() const
Return reference to name.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
label nNonOrthCorr_
Number of non-orthogonal correctors.
Mesh data needed to do the Finite Volume discretisation.
const dictionary & controlDict() const
Return read access to the controlDict dictionary.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Selector class for relaxation factors, solver type and solution.
virtual const tmp< volScalarField > Cp() const
Return specific heat capacity [J/kg/K].
A class for managing temporary objects.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
const Time & time() const noexcept
Return the reference to the time database.
virtual const volScalarField & rho() const
Return density [kg/m3].
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
addToRunTimeSelectionTable(pyrolysisModel, noPyrolysis, mesh)