70 if (!contains(phase_))
73 <<
"Interface " <<
name <<
" is not valid. An interface cannot "
74 <<
"have a side that is not one of its own phases."
114 nameParts[i+1] = otherPhase().name();
Macros for easy insertion into run-time selection tables.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
const phaseModel & otherPhase(const phaseModel &phase) const
Return the other phase relative to the given phase.
static word separator()
Return the separator that delimits this interface's name.
virtual word name() const
Name.
static wordList nameToNameParts(const phaseSystem &fluid, const word &name)
Split an interface name and return all its parts.
static word namePartsToName(const phaseSystem &fluid, const wordList &nameParts)
Convert interface name parts to an interface name.
static autoPtr< phaseInterface > New(const phaseSystem &fluid, const word &name)
Select given fluid and name.
Class to represent a system of phases and model interfacial transfers between them.
Class to represent a certain side of an interface between phases.
static word separator()
Return the separator that delimits this interface's name.
virtual ~sidedPhaseInterface()
Destructor.
virtual word name() const
Name.
const phaseModel & otherPhase() const
Phase on the other side of the interface.
autoPtr< phaseInterface > otherInterface() const
Interface on the other side of the interface.
const phaseModel & phase() const
Phase on the this side of the interface.
sidedPhaseInterface(const phaseModel &phase, const phaseModel &otherPhase)
Construct from phases.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
word name(const bool)
Return a word representation of a bool.
defineTypeNameAndDebugWithName(dispersedDisplacedPhaseInterface, separatorsToTypeName({ dispersedPhaseInterface::separator(), displacedPhaseInterface::separator() }).c_str(), 0)
labelList second(const UList< labelPair > &p)
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.