32 template<
class ModelType>
44 interface.mesh().time().
name(),
70 modelInPhase1_.
set(models.
set(i,
nullptr).ptr());
74 modelInPhase2_.
set(models.
set(i,
nullptr).ptr());
82 template<
class ModelType>
89 template<
class ModelType>
97 template<
class ModelType>
104 interface_.index(phase) == 0
105 ? modelInPhase1_.valid()
106 : modelInPhase2_.valid();
110 template<
class ModelType>
116 if (!haveModelInThe(phase))
119 <<
"There is no " <<
type() <<
" active for the "
120 << phase.
name() <<
" side of the "
121 << interface_.name() <<
" interface"
126 interface_.index(phase) == 0
132 template<
class ModelType>
138 if (!haveModelInThe(phase))
141 <<
"There is no " <<
type() <<
" active for the "
142 << phase.
name() <<
" side of the "
143 << interface_.name() <<
" interface"
148 interface_.index(phase) == 0
154 template<
class ModelType>
#define forAll(list, i)
Loop across all elements in list.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
bool good() const
Return true if next operation might succeed.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
bool set(const label) const
Is element set.
const phaseInterface & interface() const
Access the interface.
~SidedInterfacialModel()
Destructor.
bool writeData(Ostream &os) const
Dummy write for regIOobject.
SidedInterfacialModel(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
bool haveModelInThe(const phaseModel &phase) const
Does a model exist in the given phase?
const ModelType & modelInThe(const phaseModel &phase) const
Access the model within the given phase.
void set(T *)
Set pointer to that given.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Class to represent an interface between phases. Derivations can further specify the configuration of ...
const phaseSystem & fluid() const
Return the phase system.
label index(const phaseModel &phase) const
Return the index of the given phase. Generates a FatalError if.
const word & name() const
Return the name of this phase.
void generateInterfacialModels(const dictionary &dict, const phaseInterface &interface, PtrList< phaseInterface > &interfaces, PtrList< ModelType > &models) const
Generate interfacial-model lists.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Class to represent a certain side of an interface between phases.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
To & refCast(From &r)
Reference type cast template function.
word name(const bool)
Return a word representation of a bool.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.