41 void Foam::fv::bXiTimedIgnition::readCoeffs(
const dictionary&
dict)
55 const word& modelType,
61 start_(
"start",
mesh().
time().userUnits(), coeffs(
dict)),
62 duration_(
"duration",
mesh().
time().userUnits(), coeffs(
dict)),
63 period_(
"period",
mesh().
time().userUnits(), coeffs(
dict), vGreat),
66 "combustionDuration",
mesh().
time().userUnits(), coeffs(
dict), vGreat
94 return std::fmod(t - start_.value(), period_.value());
108 ignRelTime(curTime) > -0.5*deltaT
109 && ignRelTime(curTime) <
max(duration.
value(), 0.5*deltaT)
123 return igniting(duration_);
134 ignRelTime(curTime) > -0.5*deltaT
135 && ignRelTime(curTime) < combustionDuration_.value() + 0.5*deltaT
141 && ignRelTime(curTime) > combustionDuration_.value() + 0.5*deltaT
157 readCoeffs(coeffs(
dict));
static const List< word > & null()
Return a null List.
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 unitSet &defaultUnits=NullObjectRef< unitSet >())
Update the value of dimensioned<Type>
const Type & value() const
Return const reference to value.
bool readIfPresent(const dictionary &, const unitSet &defaultUnits=NullObjectRef< unitSet >())
Update the value of dimensioned<Type> if found in the dictionary.
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
virtual bool read(const dictionary &dict)
Read source dictionary.
const fvMesh & mesh() const
Return const access to the mesh database.
Abstract base-class for ignition models for the Weller b-Xi combustion models.
Abstract base-class for timed ignition models for the Weller b-Xi combustion models.
virtual wordList addSupFields() const
Return the list of fields for which the option adds source term.
dimensionedScalar combustionDuration_
Combustion duration.
dimensionedScalar duration_
Ignition duration.
scalar ignRelTime(const scalar t) const
Return the time relative to the ignition time.
virtual bool read(const dictionary &dict)
Read source dictionary.
virtual bool ignited() const
Return true during the combustion duration.
bool reset_
Set true when the composition is reset.
dimensionedScalar start_
Ignition start time.
dimensionedScalar period_
Ignition repeat period.
bXiTimedIgnition(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from explicit source name and mesh.
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)
defineTypeNameAndDebug(bound, 0)
List< word > wordList
A List of words.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)