55 "radiationProperties",
56 mesh.time().constant(),
62 if (io.typeHeaderOk<IOdictionary>(
true))
75 void Foam::radiation::radiationModel::initialise()
79 solverFreq_ =
max(1, lookupOrDefault<label>(
"solverFreq", 1));
81 absorptionEmission_.reset
101 "radiationProperties",
115 absorptionEmission_(nullptr),
121 Foam::radiation::radiationModel::radiationModel
148 Foam::radiation::radiationModel::radiationModel
159 "radiationProperties",
197 solverFreq_ = lookupOrDefault<label>(
"solverFreq", 1);
242 -
Rp()*T3*(
T_ - 4.0*he/Cpv)
267 <<
"Requested radiation absorptionEmission model, but model is " 281 <<
"Requested radiation sootModel model, but model is " static autoPtr< scatterModel > New(const dictionary &dict, const fvMesh &mesh)
dictionary coeffs_
Radiation model dictionary.
autoPtr< scatterModel > scatter_
Scatter model.
Abstract 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...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const volScalarField & T_
Reference to the temperature field.
static autoPtr< sootModel > New(const dictionary &dict, const fvMesh &mesh)
Selector.
defineTypeNameAndDebug(cloudAbsorptionEmission, 0)
const sootModel & soot() const
Access to soot Model.
virtual void calculate()=0
Solve radiation equation(s)
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
Model to supply absorption and emission coefficients for radiation modelling.
defineRunTimeSelectionTable(radiationModel, T)
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...
virtual ~radiationModel()
Destructor.
Base class for soor models.
virtual bool read()=0
Read radiationProperties dictionary.
autoPtr< sootModel > soot_
Soot model.
A class for handling words, derived from string.
static autoPtr< absorptionEmissionModel > New(const dictionary &dict, const fvMesh &mesh)
Selector.
bool firstIter_
Flag to enable radiation model to be evaluated on first iteration.
const fvMesh & mesh_
Reference to the mesh database.
const word & constant() const
Return constant name.
virtual void correct()
Main update/correction routine.
errorManip< error > abort(error &err)
const Mesh & mesh() const
Return mesh.
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
virtual tmp< volScalarField::Internal > Ru() const =0
Source term component (constant)
virtual tmp< volScalarField > Rp() const =0
Source term component (for power of T^4)
const absorptionEmissionModel & absorptionEmission() const
Access to absorptionEmission model.
virtual tmp< fvScalarMatrix > Sh(const basicThermo &thermo, const volScalarField &he) const
Energy source term.
dimensionedScalar pow3(const dimensionedScalar &ds)
IOdictionary(const IOobject &)
Construct given an IOobject.
label timeIndex() const
Return current time index.
const Time & time_
Reference to the time database.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
virtual tmp< fvScalarMatrix > ST(const dimensionedScalar &rhoCp, volScalarField &T) const
Temperature source term.
Constant dispersed-phase particle diameter model.
const Time & time() const
Return time.
Switch radiation_
Radiation model on/off flag.
A class for managing temporary objects.
label solverFreq_
Radiation solver frequency - number flow solver iterations per.
readOption readOpt() const
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
autoPtr< absorptionEmissionModel > absorptionEmission_
Absorption/emission model.
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.
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.