31 template<
class ModelType>
32 template<
class ... Args>
78 modelInPhase1_.
set(models.
set(i,
nullptr).ptr());
82 modelInPhase2_.
set(models.
set(i,
nullptr).ptr());
90 template<
class ModelType>
97 template<
class ModelType>
105 template<
class ModelType>
112 interface_.index(phase) == 0
113 ? modelInPhase1_.valid()
114 : modelInPhase2_.valid();
118 template<
class ModelType>
124 if (!haveModelInThe(phase))
127 <<
"There is no " <<
type() <<
" active for the "
128 << phase.
name() <<
" side of the "
129 << interface_.name() <<
" interface"
134 interface_.index(phase) == 0
140 template<
class ModelType>
146 if (!haveModelInThe(phase))
149 <<
"There is no " <<
type() <<
" active for the "
150 << phase.
name() <<
" side of the "
151 << interface_.name() <<
" interface"
156 interface_.index(phase) == 0
162 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 UPtrList< const dictionary > &subDicts, const phaseInterface &interface, const Args &... args)
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.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
void set(T *)
Set pointer to that given.
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.
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.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
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)
To & refCast(From &r)
Reference type cast template function.
void generateInterfacialModels(PtrList< phaseInterface > &interfaces, PtrList< ModelType > &models, const phaseSystem &fluid, const UPtrList< const dictionary > &subDicts, const wordHashSet &ignoreKeys, const phaseInterface &interface, const Args &... args)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
HashSet wordHashSet
A HashSet with word keys.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Foam::argList args(argc, argv)