34 Foam::alphatBoilingWallFunctionFvPatchScalarField::model()
const
41 return refCast<const fv::wallBoiling>(
fvModels[modelName_]);
44 label wallBoilingFvModeli = -1;
48 if (!isA<fv::wallBoiling>(
fvModels[fvModeli]))
continue;
50 if (wallBoilingFvModeli != -1)
53 <<
"Multiple wall boiling fvModels found for " << typeName
54 <<
" boundary condition of field " << internalField().name()
58 wallBoilingFvModeli = fvModeli;
61 if (wallBoilingFvModeli == -1)
64 <<
"Wall boiling fvModel not found for " << typeName
65 <<
" boundary condition of field " << internalField().name()
69 return refCast<const fv::wallBoiling>(
fvModels[wallBoilingFvModeli]);
83 fixedValueFvPatchScalarField(
p, iF,
dict),
84 modelName_(
dict.lookupOrDefault<
word>(
"model",
word::null))
97 fixedValueFvPatchScalarField(psf,
p, iF, mapper),
98 modelName_(psf.modelName_)
109 fixedValueFvPatchScalarField(psf, iF),
110 modelName_(psf.modelName_)
126 model.
mDotPf(patch().index());
139 <<
"Model " << model.
name() <<
" does not provide a turbulent "
140 <<
"thermal diffusivity for phase " << internalField().group()
144 fixedValueFvPatchScalarField::updateCoeffs();
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
This boundary condition provides a thermal wall function or the turbulent thermal diffusivity for wal...
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
alphatBoilingWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
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 field mapping.
const word & name() const
Return const access to the source name.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Model for nucleate wall boiling between two phases on the surface of a number of wall patches.
const volScalarField & alphatVapour() const
Access the vapour turbulent thermal diffusivity.
const wallBoilingPhaseChangeRateFvPatchScalarField & mDotPf(const label patchi) const
Return the mass transfer rate for the given patch.
const volScalarField & alphatLiquid() const
Access the liquid turbulent thermal diffusivity.
This boundary condition is used for the phase change rate field of the wall boiling fvModel....
const scalarField & alphatVapour() const
Access the vapour turbulent thermal diffusivity.
const scalarField & alphatLiquid() const
Access the liquid turbulent thermal diffusivity.
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 FatalErrorInFunction
Report an error message using Foam::FatalError.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void writeEntryIfDifferent(Ostream &os, const word &entryName, const EntryType &value1, const EntryType &value2)
Helper function to write the keyword and entry only if the.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)