45 Foam::IOobject Foam::radiationModel::createIOobject(
const fvMesh& mesh)
const
47 typeIOobject<IOdictionary> io
49 "radiationProperties",
50 mesh.time().constant(),
69 void Foam::radiationModel::initialise()
71 solverFreq_ =
max(1, lookupOrDefault<label>(
"solverFreq", 1));
73 absorptionEmission_.reset
92 "radiationProperties",
105 absorptionEmission_(nullptr),
117 coeffs_(subOrEmptyDict(
type +
"Coeffs")),
120 absorptionEmission_(nullptr),
139 "radiationProperties",
150 coeffs_(subOrEmptyDict(
type +
"Coeffs")),
153 absorptionEmission_(nullptr),
171 if (firstIter_ || (time_.timeIndex() % solverFreq_ == 0))
188 coeffs_ = subOrEmptyDict(
type() +
"Coeffs");
190 solverFreq_ = lookupOrDefault<label>(
"solverFreq", 1);
191 solverFreq_ =
max(1, solverFreq_);
215 - Rp()*T3*(T_ - 4.0*
he/Cpv)
237 if (!absorptionEmission_.valid())
240 <<
"Requested radiation absorptionEmission model, but model is "
244 return absorptionEmission_();
253 <<
"Requested radiation sootModel model, but model is "
Generic GeometricField class.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Base-class for fluid and solid thermodynamic properties.
virtual const volScalarField & Cpv() const =0
Heat capacity at constant pressure/volume [J/kg/K].
A list of keyword definitions, which are a keyword followed by any number of values (e....
Top level model for radiation modelling.
virtual ~radiationModel()
Destructor.
virtual void correct()
Main update/correction routine.
const radiationModels::sootModel & soot() const
Access to soot Model.
virtual bool read()=0
Read radiationProperties dictionary.
virtual tmp< fvScalarMatrix > ST(const dimensionedScalar &rhoCp, volScalarField &T) const
Temperature source term.
radiationModel(const volScalarField &T)
Null constructor.
virtual tmp< fvScalarMatrix > Sh(const basicThermo &thermo, const volScalarField &he) const
Energy source term.
const radiationModels::absorptionEmissionModel & absorptionEmission() const
Access to absorptionEmission model.
Model to supply absorption and emission coefficients for radiation modelling.
static autoPtr< absorptionEmissionModel > New(const dictionary &dict, const fvMesh &mesh)
Selector.
static autoPtr< scatterModel > New(const dictionary &dict, const fvMesh &mesh)
Base class for soot models.
static autoPtr< sootModel > New(const dictionary &dict, const fvMesh &mesh)
Selector.
virtual bool read()
Read object.
A class for managing temporary objects.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Calculate the matrix for implicit and explicit sources.
label calculate(const fvMesh &mesh, const labelHashSet &patchIDs, const scalar minFaceFraction, GeometricField< scalar, PatchField, GeoMesh > &distance)
Calculate distance data from patches.
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const VolField< Type > &)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
dimensionedScalar pow3(const dimensionedScalar &ds)
errorManip< error > abort(error &err)
defineTypeNameAndDebug(combustionModel, 0)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
fluidMulticomponentThermo & thermo