48 void Foam::fv::multiCycleConstantbXiIgnition::readCoeffs(
const dictionary&
dict)
51 combustionDuration_.
read(
dict,
mesh().time().userUnits());
60 const word& modelType,
66 period_(
"period",
mesh().time().userUnits(),
dict),
67 combustionDuration_(
"combustionDuration",
mesh().time().userUnits(),
dict),
74 Foam::scalar Foam::fv::multiCycleConstantbXiIgnition::ignRelTime
79 return std::fmod(t - start_.value(), period_.value());
90 ignRelTime(curTime) > -0.5*deltaT
91 && ignRelTime(curTime) <
max(duration_.value(), 0.5*deltaT)
110 ignRelTime(curTime) > -0.5*deltaT
111 && ignRelTime(curTime) < combustionDuration_.value() + 0.5*deltaT
117 && ignRelTime(curTime) > combustionDuration_.value() - 0.5*deltaT
133 readCoeffs(coeffs(
dict));
scalar deltaTValue() const
Return time step value.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
void read(const dictionary &, const unitConversion &defaultUnits=NullObjectRef< unitConversion >())
Update the value of dimensioned<Type>
const Type & value() const
Return const reference to value.
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
Finite volume model abstract base class.
const fvMesh & mesh() const
Return const access to the mesh database.
Simple constant rate ignition model for the Weller b-Xi combustion models.
virtual bool read(const dictionary &dict)
Read source dictionary.
Simple constant rate ignition model for the Weller b-Xi combustion models.
multiCycleConstantbXiIgnition(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from explicit source name and mesh.
virtual bool read(const dictionary &dict)
Read source dictionary.
virtual bool ignited() const
Return true during the combustion duration.
virtual bool igniting() const
Return true during the ignition duration.
Type & lookupObjectRef(const word &name) const
Lookup and return the object reference of the given Type.
Solver module for compressible premixed/partially-premixed combustion with turbulence modelling.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
addToRunTimeSelectionTable(fvConstraint, bound, dictionary)
defineTypeNameAndDebug(bound, 0)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.