36 namespace functionObjects
47 Foam::functionObjects::wallBoilingProperty::model()
const
53 return refCast<const fv::wallBoiling>(
fvModels[modelName_]);
56 label wallBoilingFvModeli = -1;
60 if (!isA<fv::wallBoiling>(
fvModels[fvModeli]))
continue;
62 if (wallBoilingFvModeli != -1)
65 <<
"Multiple wall boiling fvModels found for " << typeName
68 return NullObjectRef<fv::wallBoiling>();
71 wallBoilingFvModeli = fvModeli;
74 if (wallBoilingFvModeli == -1)
77 <<
"Wall boiling fvModel not found for " << typeName
80 return NullObjectRef<fv::wallBoiling>();
83 return refCast<const fv::wallBoiling>(
fvModels[wallBoilingFvModeli]);
116 fieldName_ =
dict.lookup<
word>(
"field");
126 if (
isNull(model))
return false;
134 model.
name() +
":" + fieldName_,
174 if (
isNull(model))
return false;
176 return writeObject(model.
name() +
":" + fieldName_);
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
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.
const word & name() const
Return the name of this functionObject.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
const fvMesh & mesh() const
Return a reference to the mesh.
virtual bool read(const dictionary &)
Read optional controls.
Writes run time, CPU time and clock time and optionally the CPU and clock times per time step.
This function looks up the wall boiling model and collects and writes out a field of one of the wall ...
wallBoilingProperty(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
virtual ~wallBoilingProperty()
Destructor.
virtual bool execute()
Calculate the wallBoilingProperty field.
virtual bool write()
Write the wallBoilingProperty field.
virtual bool read(const dictionary &)
Read the wallBoilingProperty data.
const word & name() const
Return const access to the source name.
Model for nucleate wall boiling between two phases on the surface of a number of wall patches.
bool isBoiling(const label patchi) const
Is the given patch boiling?
const wallBoilingPhaseChangeRateFvPatchScalarField & mDotPf(const label patchi) const
Return the mass transfer rate for the given patch.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
This boundary condition is used for the phase change rate field of the wall boiling fvModel....
static const dimensionSet & propertyDimensions(const word &name)
Access one of the property fields' dimensions by name.
const scalarField & property(const word &name) const
Access one of the property fields by name.
A class for handling words, derived from string.
static const word null
An empty word.
Foam::fvModels & fvModels(Foam::fvModels::New(mesh))
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)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
bool isNull(const T &t)
Return true if t is a reference to the nullObject of type T.