35 namespace functionObjects
59 modelName_(
word::null),
80 maxCo_ =
dict.lookupOrDefault<scalar>(
"maxCo", 1);
101 if (!time_.controlDict().lookupOrDefault(
"adjustTimeStep",
false))
122 if (isA<fv::nucleation>(
fvModels[fvModeli]))
127 refCast<const fv::nucleation>(
fvModels[fvModeli]);
129 tTau =
min(tTau, nucleationModel.
tau());
136 <<
"No nucleation models found"
145 refCast<const fv::nucleation>(
fvModels[modelName_]);
147 return gMin(nucleationModel.
tau()());
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
static tmp< DimensionedField< Type, GeoMesh, PrimitiveField > > New(const word &name, const Mesh &mesh, const dimensionSet &, const PrimitiveField< Type > &)
Return a temporary field constructed from name, mesh,.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
Abstract base-class for Time/database functionObjects.
Controls the time-step to the minimum nucleation time scale. A specific nucleation model can be speci...
adjustTimeStepToNucleation(const word &name, const Time &runTime, const dictionary &dict)
Construct from components.
virtual scalar maxDeltaT() const
Return the minimum chemistry.deltaTChem()
virtual bool execute()
Do nothing.
virtual bool write()
Do nothing.
virtual ~adjustTimeStepToNucleation()
virtual bool read(const dictionary &)
Read and reset the timeStep Function1.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Mix-in interface for nucleation models. Provides access to properties of the nucleation process,...
virtual tmp< DimensionedField< scalar, volMesh > > tau() const =0
Return the nucleation time scale.
A class for managing temporary objects.
A class for handling words, derived from string.
static const word null
An empty word.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define WarningInFunction
Report a warning using Foam::Warning.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
errorManipArg< error, int > exit(error &err, const int errNo=1)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
const dimensionSet dimTime
word typedName(Name name)
Return the name of the object within the given type.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
Type gMin(const FieldField< Field, Type > &f)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.