segregatedPhaseInterface Class Reference

Class to represent a interface between phases where the two phases are considered to be segregated; that is, separated by a geometrically complex interface for which dispersed representations are inappropriate. More...

Inheritance diagram for segregatedPhaseInterface:
Collaboration diagram for segregatedPhaseInterface:

Public Member Functions

 TypeName ("segregatedPhaseInterface")
 Runtime type information. More...
 
 segregatedPhaseInterface (const phaseModel &phase1, const phaseModel &phase2)
 Construct from phases. More...
 
 segregatedPhaseInterface (const phaseSystem &fluid, const word &name)
 Construct from fluid and name. More...
 
virtual ~segregatedPhaseInterface ()
 Destructor. More...
 
virtual word name () const
 Name. More...
 
- Public Member Functions inherited from phaseInterface
 TypeName ("phaseInterface")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, phaseInterface, word,(const phaseSystem &fluid, const word &name),(fluid, name))
 
 phaseInterface (const phaseModel &phase1, const phaseModel &phase2)
 Construct from phases. More...
 
 phaseInterface (const Tuple2< const phaseModel &, const phaseModel & > &phases)
 Construct from phases. More...
 
 phaseInterface (const phaseSystem &fluid, const word &name)
 Construct from fluid and name. More...
 
 phaseInterface (const phaseSystem &fluid, const phaseInterfaceKey &name)
 Construct from fluid and key. More...
 
virtual autoPtr< phaseInterfaceclone () const
 Clone function. More...
 
virtual ~phaseInterface ()
 Destructor. More...
 
template<class ModelType , class Derived >
const Derived & modelCast () const
 Cast to derived type for use in a model. More...
 
virtual const volScalarFieldalpha1 () const
 Return the volume fraction of phase 1. More...
 
virtual const volScalarFieldalpha2 () const
 Return the volume fraction of phase 2. More...
 
virtual const rhoFluidThermothermo1 () const
 Return the thermo for phase 1. More...
 
virtual const rhoFluidThermothermo2 () const
 Return the thermo for phase 2. More...
 
virtual const volScalarFieldrho1 () const
 Return the density of phase 1. More...
 
virtual const volScalarFieldrho2 () const
 Return the density of phase 2. More...
 
const phaseModelphase1 () const
 Return phase 1. More...
 
const phaseModelphase2 () const
 Return phase 2. More...
 
bool contains (const phaseModel &phase) const
 Return true if this phaseInterface contains the given phase. More...
 
bool operator== (const phaseInterface &interface) const
 Return true if the phase interfaces are the same. More...
 
bool operator!= (const phaseInterface &interface) const
 Return true if the phase interfaces are different. More...
 
const phaseModelotherPhase (const phaseModel &phase) const
 Return the other phase relative to the given phase. More...
 
label index (const phaseModel &phase) const
 Return the index of the given phase. Generates a FatalError if. More...
 
const phaseModeloperator[] (const label index) const
 Access the phase for the given index. Generates a FatalError if. More...
 
const phaseSystemfluid () const
 Return the phase system. More...
 
const fvMeshmesh () const
 Return the mesh. More...
 
tmp< volScalarFieldrho () const
 Average density. More...
 
tmp< volScalarFieldmagUr () const
 Relative velocity magnitude. More...
 
tmp< volScalarFieldsigma () const
 Surface tension coefficient. More...
 
const_iterator cbegin () const
 const_iterator set to the beginning of the interface More...
 
const_iterator cend () const
 const_iterator set to beyond the end of the interface More...
 
const_iterator begin () const
 const_iterator set to the beginning of the interface More...
 
const_iterator end () const
 const_iterator set to beyond the end of the interface More...
 
- Public Member Functions inherited from compressibleTwoPhases
 TypeName ("compressibleTwoPhases")
 Runtime type information. More...
 
 compressibleTwoPhases ()
 Default construct. More...
 
virtual ~compressibleTwoPhases ()
 Destructor. More...
 
const rhoFluidThermothermo (const bool index) const
 Return the density of a given phase. More...
 
const volScalarFieldrho (const bool index) const
 Return the density of a given phase. More...
 
- Public Member Functions inherited from twoPhases
 TypeName ("twoPhases")
 Runtime type information. More...
 
 twoPhases ()
 Default construct. More...
 
virtual ~twoPhases ()
 Destructor. More...
 
const fvMeshmesh () const
 Access the mesh. More...
 
bool index (const word &name) const
 Return the index associated with a given phase name. More...
 
const volScalarFieldalpha (const bool index) const
 Return the volume-fraction of a given phase. More...
 

Static Public Member Functions

static word separator ()
 Return the separator that delimits this interface's name. More...
 
- Static Public Member Functions inherited from phaseInterface
static const phaseModelgetPhase1 (const phaseModel &phase1, const phaseModel &phase2)
 Get a reference to phase1 after sorting the phases by index. More...
 
static const phaseModelgetPhase2 (const phaseModel &phase1, const phaseModel &phase2)
 Get a reference to phase2 after sorting the phases by index. More...
 
static bool addHeadSeparator (const word &separator)
 Add a head separator to the list. More...
 
static bool addOldSeparatorToSeparator (const word &oldSeparator, const word &separator)
 Add a old separator to separator to the table. More...
 
static wordList nameToNameParts (const phaseSystem &fluid, const word &name)
 Split an interface name and return all its parts. More...
 
static wordList nameToSeparators (const phaseSystem &fluid, const word &name)
 Split an interface name and return its separators. More...
 
static word separatorsToTypeName (const wordList &separators)
 Convert a list of separators into a type name. More...
 
static word nameToTypeName (const phaseSystem &fluid, const word &name)
 Convert an interface name into a type name. Essentially just. More...
 
static word namePartsToName (const phaseSystem &fluid, const wordList &nameParts)
 Convert interface name parts to an interface name. More...
 
static word oldNamePartsToName (const phaseSystem &fluid, const wordList &oldNameParts)
 Convert old-format interface name parts to an interface name. Used. More...
 
static Tuple2< const phaseModel &, const phaseModel & > identifyPhases (const phaseSystem &fluid, const word &name, const wordList &separators)
 Return references to the phases associated with a given name, and a. More...
 
static autoPtr< phaseInterfaceNew (const phaseSystem &fluid, const word &name)
 Select given fluid and name. More...
 
static autoPtr< phaseInterfaceNew (const phaseInterface &interface1, const phaseInterface &interface2)
 Select by combining two interfaces. More...
 
static word separator ()
 Return the separator that delimits this interface's name. More...
 

Protected Member Functions

virtual bool same (const phaseInterface &interface, bool strict) const
 Return true if the phase interfaces are the same. More...
 

Detailed Description

Class to represent a interface between phases where the two phases are considered to be segregated; that is, separated by a geometrically complex interface for which dispersed representations are inappropriate.

Source files

Definition at line 50 of file segregatedPhaseInterface.H.

Constructor & Destructor Documentation

◆ segregatedPhaseInterface() [1/2]

segregatedPhaseInterface ( const phaseModel phase1,
const phaseModel phase2 
)

Construct from phases.

Definition at line 72 of file segregatedPhaseInterface.C.

◆ segregatedPhaseInterface() [2/2]

segregatedPhaseInterface ( const phaseSystem fluid,
const word name 
)

Construct from fluid and name.

Definition at line 82 of file segregatedPhaseInterface.C.

◆ ~segregatedPhaseInterface()

Destructor.

Definition at line 94 of file segregatedPhaseInterface.C.

Member Function Documentation

◆ same()

bool same ( const phaseInterface interface,
bool  strict 
) const
protectedvirtual

Return true if the phase interfaces are the same.

Reimplemented from phaseInterface.

Reimplemented in segregatedSidedPhaseInterface, segregatedDisplacedSidedPhaseInterface, and segregatedDisplacedPhaseInterface.

Definition at line 58 of file segregatedPhaseInterface.C.

References phaseInterface::same().

Referenced by segregatedDisplacedPhaseInterface::same(), segregatedDisplacedSidedPhaseInterface::same(), and segregatedSidedPhaseInterface::same().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TypeName()

TypeName ( "segregatedPhaseInterface"  )

Runtime type information.

◆ separator()

static word separator ( )
inlinestatic

Return the separator that delimits this interface's name.

Definition at line 92 of file segregatedPhaseInterface.H.

Referenced by Foam::defineTypeNameAndDebugWithName().

Here is the caller graph for this function:

◆ name()


The documentation for this class was generated from the following files: