45 #ifndef radiationModel_H 46 #define radiationModel_H 232 virtual bool read() = 0;
250 virtual tmp<volScalarField>
Rp()
const = 0;
253 virtual tmp<volScalarField::Internal>
Ru()
const = 0;
256 virtual tmp<fvScalarMatrix>
Sh 258 const basicThermo&
thermo,
263 virtual tmp<fvScalarMatrix>
ST 270 virtual tmp<fvScalarMatrix>
ST 272 tmp<volScalarField>
rhoCp,
277 virtual tmp<fvScalarMatrix>
ST 282 virtual label
nBands()
const = 0;
288 const sootModel&
soot()
const;
295 #define addToRadiationRunTimeSelectionTables(model) \ 297 addToRunTimeSelectionTable \ 304 addToRunTimeSelectionTable \
static const word relfectedFluxName_
Static name for reflected solar fluxes.
static const word externalRadHeatFieldName_
Static name external radiative fluxes.
dictionary coeffs_
Radiation model dictionary.
autoPtr< scatterModel > scatter_
Scatter model.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const volScalarField & T_
Reference to the temperature field.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, any/none. Also accepts 0/1 as a string and shortcuts t/f, y/n.
static const word primaryFluxName_
Static name for primary solar fluxes.
label solverFreq() const noexcept
Return the radiation solver frequency.
TypeName("radiationModel")
Runtime type information.
const sootModel & soot() const
Access to soot Model.
virtual void calculate()=0
Solve radiation equation(s)
declareRunTimeSelectionTable(autoPtr, radiationModel, T,(const volScalarField &T),(T))
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const volScalarField & T() const noexcept
Return access to the temperature field.
psiReactionThermo & thermo
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
static autoPtr< radiationModel > New(const volScalarField &T)
Return a reference to the selected radiation model.
virtual ~radiationModel()
Destructor.
virtual bool read()=0
Read radiationProperties dictionary.
autoPtr< sootModel > soot_
Soot model.
A class for handling words, derived from Foam::string.
bool firstIter_
Flag to enable radiation model to be evaluated on first iteration.
const fvMesh & mesh_
Reference to the mesh database.
const Switch radiation() const
Radiation model on/off flag.
Top level model for radiation modelling.
virtual void correct()
Main update/correction routine.
virtual label nBands() const =0
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.
Forward declarations of fvMatrix specializations.
const Time & time_
Reference to the time database.
virtual tmp< fvScalarMatrix > ST(const dimensionedScalar &rhoCp, volScalarField &T) const
Temperature source term.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Mesh data needed to do the Finite Volume discretisation.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Switch radiation_
Radiation model on/off flag.
Macros to ease declaration of run-time selection tables.
label solverFreq_
Radiation solver frequency - number flow solver iterations per.
Defines the attributes of an object for which implicit objectRegistry management is supported...
autoPtr< absorptionEmissionModel > absorptionEmission_
Absorption/emission model.
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))