45 const word& activeType
56 const bool is1Active =
57 isA<alphatPhaseChangeWallFunctionFvPatchScalarField>
59 alphats_.first().boundaryField()[
patchi]
61 const bool is2Active =
62 isA<alphatPhaseChangeWallFunctionFvPatchScalarField>
64 alphats_.second().boundaryField()[
patchi]
67 if (is1Active != is2Active)
71 << (is1Active ? alphats_.first() : alphats_.second()).
name()
72 <<
" has a phase change wall function on patch "
74 << (is2Active ? alphats_.first() : alphats_.second()).
name()
80 boundaryTypes[
patchi] = activeType;
93 const word& modelType,
103 fluid_.phases()[phaseNames().
first()],
104 fluid_.phases()[phaseNames().
second()]
125 isA<alphatPhaseChangeWallFunctionFvPatchScalarField>
127 alphats_.first().boundaryField()[
patchi]
129 || isA<alphatPhaseChangeWallFunctionFvPatchScalarField>
131 alphats_.second().boundaryField()[
patchi]
#define forAll(list, i)
Loop across all elements in list.
Generic GeometricField class.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Mesh data needed to do the Finite Volume discretisation.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
const fvMesh & mesh() const
Return const access to the mesh database.
const word & name() const
Return const access to the source name.
Base class for phase change models.
Base class for fvModels that represent phase change at a wall.
bool isPatchActive(const label patchi) const
Return whether phase change can occur on the given patch.
wordList mDotBoundaryTypes(const word &activeType) const
Return boundary conditions for the phase change rate field. Use the.
wallPhaseChange(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict, const wordList &species)
Construct from explicit source name and mesh.
Class to represent a system of phases.
const fvMesh & mesh() const
Return the mesh.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(bound, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
labelList second(const UList< labelPair > &p)
labelList first(const UList< labelPair > &p)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
faceListList boundary(nPatches)