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),
139 "radiationProperties",
190 solverFreq_ = lookupOrDefault<label>(
"solverFreq", 1);
215 -
Rp()*T3*(
T_ - 4.0*he/Cpv)
240 <<
"Requested radiation absorptionEmission model, but model is " 253 <<
"Requested radiation sootModel model, but model is " autoPtr< radiationModels::scatterModel > scatter_
Scatter model.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
static autoPtr< scatterModel > New(const dictionary &dict, const fvMesh &mesh)
Base-class for fluid and solid thermodynamic properties.
virtual bool read()
Read object.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool firstIter_
Flag to enable radiation model to be evaluated on first iteration.
virtual bool read()=0
Read radiationProperties dictionary.
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
virtual tmp< volScalarField > Cpv() const =0
Heat capacity at constant pressure/volume [J/kg/K].
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
static autoPtr< absorptionEmissionModel > New(const dictionary &dict, const fvMesh &mesh)
Selector.
const volScalarField & T_
Reference to the temperature field.
const radiationModels::absorptionEmissionModel & absorptionEmission() const
Access to absorptionEmission model.
virtual void correct()
Main update/correction routine.
A class for handling words, derived from string.
const word & constant() const
Return constant name.
virtual tmp< volScalarField::Internal > Ru() const =0
Source term component (constant)
errorManip< error > abort(error &err)
virtual ~radiationModel()
Destructor.
IOdictionary(const IOobject &io, const word &wantedType)
Construct given an IOobject, supply wanted typeName.
virtual tmp< volScalarField > Rp() const =0
Source term component (for power of T^4)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
const Mesh & mesh() const
Return mesh.
defineTypeNameAndDebug(combustionModel, 0)
const radiationModels::sootModel & soot() const
Access to soot Model.
label solverFreq_
Radiation solver frequency - number flow solver iterations per.
dimensionedScalar pow3(const dimensionedScalar &ds)
autoPtr< radiationModels::sootModel > soot_
Soot model.
label timeIndex() const
Return current time index.
virtual void calculate()=0
Solve radiation equation(s)
static autoPtr< sootModel > New(const dictionary &dict, const fvMesh &mesh)
Selector.
const Time & time() const
Return time.
radiationModel(const volScalarField &T)
Null constructor.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Base class for soot models.
const fvMesh & mesh_
Reference to the mesh database.
Model to supply absorption and emission coefficients for radiation modelling.
A class for managing temporary objects.
virtual tmp< fvScalarMatrix > ST(const dimensionedScalar &rhoCp, volScalarField &T) const
Temperature source term.
readOption readOpt() const
virtual tmp< fvScalarMatrix > Sh(const basicThermo &thermo, const volScalarField &he) const
Energy source term.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
autoPtr< radiationModels::absorptionEmissionModel > absorptionEmission_
Absorption/emission model.
const Time & time_
Reference to the time database.
dictionary coeffs_
Radiation model dictionary.
Calculate the matrix for implicit and explicit sources.
dictionary subOrEmptyDict(const word &, const bool mustRead=false) const
Find and return a sub-dictionary as a copy, or.