33 Foam::alphatPhaseChangeWallFunctionFvPatchScalarField::models()
const
35 if (models_.size())
return models_;
42 if (!isA<fv::wallPhaseChange>(
fvModels[fvModeli]))
continue;
44 const fv::wallPhaseChange& model =
45 refCast<const fv::wallPhaseChange>(
fvModels[fvModeli]);
49 &internalField() == &model.alphats().first()
50 || &internalField() == &model.alphats().second()
53 models_.append(&model);
60 <<
"No wall phase-change models found for " <<
typeName
61 <<
" boundary condition of field " << internalField().name()
79 fixedValueFvPatchScalarField(
p, iF,
dict),
93 fixedValueFvPatchScalarField(psf,
p, iF, mapper),
105 fixedValueFvPatchScalarField(psf, iF),
132 &internalField() == &model.
alphats().first()
133 ? model.
alphats(patch().index()).first()
134 : model.
alphats(patch().index()).second();
143 operator==((1 - active)*(*
this) + active*alphat);
147 fixedValueFvPatchScalarField::updateCoeffs();
#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.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
This boundary condition provides a thermal wall function or the turbulent thermal diffusivity for wal...
alphatPhaseChangeWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, fvMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base class for field mapping.
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.
Base class for fvModels that represent phase change at a wall.
virtual const scalarField & active(const label patchi) const =0
Return a mask indicating whether phase change is occurring.
const Pair< const volScalarField & > & alphats() const
Access the turbulent thermal diffusivities.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
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.
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
makePatchTypeField(fvPatchScalarField, atmosphericBoundaryLayerTurbulentEpsilonFvPatchScalarField)