34 namespace regionModels
36 namespace surfaceFilmModels
52 constantRadiation::constantRadiation
63 typeName +
":QrConst",
84 absorptivity_(
readScalar(coeffDict_.lookup(
"absorptivity"))),
85 timeStart_(
readScalar(coeffDict_.lookup(
"timeStart"))),
86 duration_(
readScalar(coeffDict_.lookup(
"duration")))
114 owner().regionMesh(),
118 owner().regionMesh(),
125 if ((time >= timeStart_) && (time <= timeStart_ + duration_))
131 Shs = mask_*Qr*alpha*absorptivity_;
const Time & time() const
Return the reference to the time database.
A list of keyword definitions, which are a keyword followed by any number of values (e...
surfaceFilmModel & owner_
Reference to the owner surface film model.
const Type & value() const
Return const reference to value.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
Macros for easy insertion into run-time selection tables.
const fvMesh & regionMesh() const
Return the region mesh database.
dimensionedScalar pos(const dimensionedScalar &ds)
addToRunTimeSelectionTable(surfaceFilmModel, kinematicSingleLayer, mesh)
virtual const volScalarField & alpha() const =0
Return the film coverage, 1 = covered, 0 = uncovered / [].
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
dimensionedScalar pow3(const dimensionedScalar &ds)
virtual tmp< volScalarField > Shs()
Return the radiation sensible enthalpy source.
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const surfaceFilmModel & owner() const
Return const access to the owner surface film model.
Base class for surface film models.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
virtual void correct()
Correct.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
A class for managing temporary objects.
volScalarField Qr(IOobject("Qr", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE), mesh, dimensionedScalar("Qr", dimMass/pow3(dimTime), 0.0))
T & ref() const
Return non-const reference or generate a fatal error.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
defineTypeNameAndDebug(kinematicSingleLayer, 0)
virtual ~constantRadiation()
Destructor.