37 namespace functionObjects
61 modelName_(
word::null),
82 maxCo_ =
dict.lookupOrDefault<scalar>(
"maxCo", 1);
103 if (!time_.controlDict().lookupOrDefault(
"adjustTimeStep",
false))
124 if (isA<fv::nucleation>(
fvModels[fvModeli]))
129 refCast<const fv::nucleation>(
fvModels[fvModeli]);
131 tTau =
min(tTau, nucleationModel.
tau());
138 <<
"No nucleation models found"
147 refCast<const fv::nucleation>(
fvModels[modelName_]);
149 return gMin(nucleationModel.
tau()());
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
static fvModels & New(const word &name, const fvMesh &mesh)
Construct and return the named DemandDrivenMeshObject.
static tmp< DimensionedField< Type, GeoMesh, PrimitiveField > > New(const word &name, const GeoMesh &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.
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, fvMesh > > 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(fvMeshFunctionObject, 0)
addToRunTimeSelectionTable(functionObject, fvModel, dictionary)
Type gMin(const UList< Type > &f, const label comm)
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionSet & dimTime
dimensioned< Type > min(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
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.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.