Class to represent an interface between phases. Derivations can further specify the configuration of that interface; e.g., representing dispersal, displacement or sidedness. More...


Classes | |
| class | const_iterator |
| STL const_iterator. More... | |
| class | iNew |
| Class used for construction of PtrLists of phaseInterfaces. More... | |
Public Member Functions | |
| 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< phaseInterface > | clone () const |
| Clone function. More... | |
| virtual | ~phaseInterface () |
| Destructor. More... | |
| virtual word | name () const |
| Name. More... | |
| template<class ModelType , class Derived > | |
| const Derived & | modelCast () const |
| Cast to derived type for use in a model. More... | |
| virtual const volScalarField & | alpha1 () const |
| Return the volume fraction of phase 1. More... | |
| virtual const volScalarField & | alpha2 () const |
| Return the volume fraction of phase 2. More... | |
| virtual const rhoFluidThermo & | thermo1 () const |
| Return the thermo for phase 1. More... | |
| virtual const rhoFluidThermo & | thermo2 () const |
| Return the thermo for phase 2. More... | |
| virtual const volScalarField & | rho1 () const |
| Return the density of phase 1. More... | |
| virtual const volScalarField & | rho2 () const |
| Return the density of phase 2. More... | |
| const phaseModel & | phase1 () const |
| Return phase 1. More... | |
| const phaseModel & | phase2 () 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 phaseModel & | otherPhase (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 phaseModel & | operator[] (const label index) const |
| Access the phase for the given index. Generates a FatalError if. More... | |
| const phaseSystem & | fluid () const |
| Return the phase system. More... | |
| const fvMesh & | mesh () const |
| Return the mesh. More... | |
| tmp< volScalarField > | rho () const |
| Average density. More... | |
| tmp< volScalarField > | magUr () const |
| Relative velocity magnitude. More... | |
| tmp< volScalarField > | sigma () 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 rhoFluidThermo & | thermo (const bool index) const |
| Return the density of a given phase. More... | |
| const volScalarField & | rho (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 fvMesh & | mesh () const |
| Access the mesh. More... | |
| bool | index (const word &name) const |
| Return the index associated with a given phase name. More... | |
| const volScalarField & | alpha (const bool index) const |
| Return the volume-fraction of a given phase. More... | |
Static Public Member Functions | |
| static const phaseModel & | getPhase1 (const phaseModel &phase1, const phaseModel &phase2) |
| Get a reference to phase1 after sorting the phases by index. More... | |
| static const phaseModel & | getPhase2 (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< phaseInterface > | New (const phaseSystem &fluid, const word &name) |
| Select given fluid and name. More... | |
| static autoPtr< phaseInterface > | New (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... | |
Class to represent an interface between phases. Derivations can further specify the configuration of that interface; e.g., representing dispersal, displacement or sidedness.
Definition at line 55 of file phaseInterface.H.
| phaseInterface | ( | const phaseModel & | phase1, |
| const phaseModel & | phase2 | ||
| ) |
Construct from phases.
Definition at line 353 of file phaseInterface.C.
| phaseInterface | ( | const Tuple2< const phaseModel &, const phaseModel & > & | phases | ) |
Construct from phases.
Definition at line 364 of file phaseInterface.C.
| phaseInterface | ( | const phaseSystem & | fluid, |
| const word & | name | ||
| ) |
Construct from fluid and name.
Definition at line 373 of file phaseInterface.C.
| phaseInterface | ( | const phaseSystem & | fluid, |
| const phaseInterfaceKey & | name | ||
| ) |
Construct from fluid and key.
Definition at line 383 of file phaseInterface.C.
|
virtual |
Destructor.
Definition at line 401 of file phaseInterface.C.
|
static |
Get a reference to phase1 after sorting the phases by index.
Definition at line 58 of file phaseInterface.C.
References phaseModel::index(), phaseInterface::phase1(), and phaseInterface::phase2().

|
static |
Get a reference to phase2 after sorting the phases by index.
Definition at line 68 of file phaseInterface.C.
References phaseModel::index().

|
static |
Add a head separator to the list.
Definition at line 78 of file phaseInterface.C.
References Foam::findIndex().

Add a old separator to separator to the table.
Definition at line 92 of file phaseInterface.C.
|
static |
Split an interface name and return all its parts.
Definition at line 102 of file phaseInterface.C.
References List< T >::append(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, UList< T >::last(), Foam::name(), word::null, and phaseSystem::phases().
Referenced by sidedPhaseInterface::otherInterface().


|
static |
Split an interface name and return its separators.
Definition at line 178 of file phaseInterface.C.
References forAll, Foam::name(), and List< T >::size().

|
static |
Convert a list of separators into a type name.
Definition at line 196 of file phaseInterface.C.
References forAll, List< T >::size(), and Foam::sort().

|
static |
Convert an interface name into a type name. Essentially just.
replaces valid phase names with a "<phase>" placeholder.
Definition at line 226 of file phaseInterface.C.
References Foam::name().

|
static |
Convert interface name parts to an interface name.
Definition at line 236 of file phaseInterface.C.
References forAll, Foam::name(), and word::null.
Referenced by sidedPhaseInterface::otherInterface().


|
static |
Convert old-format interface name parts to an interface name. Used.
in phaseSystem to provide backwards compatible input.
Definition at line 256 of file phaseInterface.C.
References forAll, DictionaryBase< IDLListType, T >::found(), Foam::name(), word::null, and phaseSystem::phases().

|
static |
Return references to the phases associated with a given name, and a.
list of valid separators
Definition at line 290 of file phaseInterface.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::name(), phaseSystem::phases(), and List< T >::size().

|
protectedvirtual |
Return true if the phase interfaces are the same.
Reimplemented in sidedPhaseInterface, segregatedSidedPhaseInterface, segregatedPhaseInterface, segregatedDisplacedSidedPhaseInterface, segregatedDisplacedPhaseInterface, displacedSidedPhaseInterface, displacedPhaseInterface, dispersedSidedPhaseInterface, dispersedPhaseInterface, dispersedDisplacedSidedPhaseInterface, and dispersedDisplacedPhaseInterface.
Definition at line 338 of file phaseInterface.C.
Referenced by dispersedPhaseInterface::same(), displacedPhaseInterface::same(), segregatedPhaseInterface::same(), and sidedPhaseInterface::same().

| TypeName | ( | "phaseInterface" | ) |
Runtime type information.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| phaseInterface | , | ||
| word | , | ||
| (const phaseSystem &fluid, const word &name) | , | ||
| (fluid, name) | |||
| ) |
|
virtual |
Clone function.
Definition at line 393 of file phaseInterface.C.
References Foam::name(), and Foam::New().

|
static |
Select given fluid and name.
Definition at line 407 of file phaseInterface.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::name().
Referenced by Foam::checkInterfacialModelsDict(), Foam::generateInterfacialModels(), Foam::generateInterfacialValues(), phaseInterface::iNew::operator()(), and sidedPhaseInterface::otherInterface().


|
static |
Select by combining two interfaces.
Definition at line 430 of file phaseInterface.C.
References List< T >::append(), Pair< Type >::compare(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, phaseInterface::fluid(), phaseInterface::name(), Foam::New(), word::null, and List< T >::size().

|
inlinestatic |
Return the separator that delimits this interface's name.
Definition at line 269 of file phaseInterface.H.
References word::null.
Referenced by Foam::defineTypeNameAndDebugWithName().

|
virtual |
Name.
Reimplemented in sidedPhaseInterface, segregatedSidedPhaseInterface, segregatedPhaseInterface, segregatedDisplacedSidedPhaseInterface, segregatedDisplacedPhaseInterface, displacedSidedPhaseInterface, displacedPhaseInterface, dispersedSidedPhaseInterface, dispersedPhaseInterface, dispersedDisplacedSidedPhaseInterface, and dispersedDisplacedPhaseInterface.
Definition at line 510 of file phaseInterface.C.
Referenced by BlendedInterfacialModel< virtualMassModel >::evaluate(), phaseSystem::foundInterfacialModel(), phaseSystem::lookupInterfacialModel(), phaseInterface::modelCast(), displacedPhaseInterface::name(), sidedPhaseInterface::name(), aspectRatioModel::New(), diffusiveMassTransferModel::New(), swarmCorrection::New(), wallDampingModel::New(), liftModel::New(), turbulentDispersionModel::New(), wallLubricationModel::New(), surfaceTensionCoefficientModel::New(), dragModel::New(), heatTransferModel::New(), virtualMassModel::New(), phaseInterface::New(), blendingMethod::New(), and populationBalanceModel::populationBalanceModel().

|
inline |
Cast to derived type for use in a model.
Definition at line 282 of file phaseInterface.H.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and phaseInterface::name().

|
inlinevirtual |
Return the volume fraction of phase 1.
Implements twoPhases.
Definition at line 30 of file phaseInterfaceI.H.
References phaseInterface::phase1().

|
inlinevirtual |
Return the volume fraction of phase 2.
Implements twoPhases.
Definition at line 36 of file phaseInterfaceI.H.
|
inlinevirtual |
Return the thermo for phase 1.
Implements compressibleTwoPhases.
Definition at line 42 of file phaseInterfaceI.H.
|
inlinevirtual |
Return the thermo for phase 2.
Implements compressibleTwoPhases.
Definition at line 48 of file phaseInterfaceI.H.
|
inlinevirtual |
Return the density of phase 1.
Implements compressibleTwoPhases.
Definition at line 54 of file phaseInterfaceI.H.
|
inlinevirtual |
Return the density of phase 2.
Implements compressibleTwoPhases.
Definition at line 60 of file phaseInterfaceI.H.
|
inline |
Return phase 1.
Definition at line 66 of file phaseInterfaceI.H.
Referenced by phaseInterface::alpha1(), Foam::correctFixedFluxBCs(), phaseForces::execute(), phaseInterface::getPhase1(), heatTransferSystem::heatTransfer(), heatTransferSystem::heatTransferSystem(), and blendingMethod::readParameters().

|
inline |
Return phase 2.
Definition at line 72 of file phaseInterfaceI.H.
Referenced by Foam::correctFixedFluxBCs(), phaseInterface::getPhase1(), heatTransferSystem::heatTransfer(), heatTransferSystem::heatTransferSystem(), and blendingMethod::readParameters().

|
inline |
Return true if this phaseInterface contains the given phase.
Definition at line 78 of file phaseInterfaceI.H.
Referenced by oneResistanceHeatTransfer::addSup(), twoResistanceHeatTransfer::addSup(), and continuous::fContinuous().

|
inline |
Return true if the phase interfaces are the same.
Definition at line 84 of file phaseInterfaceI.H.
Referenced by phaseInterface::const_iterator::operator!=().

|
inline |
Return true if the phase interfaces are different.
Definition at line 93 of file phaseInterfaceI.H.
|
inline |
Return the other phase relative to the given phase.
Generates a FatalError if this phaseInterface does not contain the given phase
Definition at line 102 of file phaseInterfaceI.H.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and phaseModel::name().
Referenced by oneResistanceHeatTransfer::addSup(), twoResistanceHeatTransfer::addSup(), and sidedPhaseInterface::otherPhase().


|
inline |
Return the index of the given phase. Generates a FatalError if.
this phaseInterface does not contain the given phase
Definition at line 126 of file phaseInterfaceI.H.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and phaseModel::name().
Referenced by twoResistanceHeatTransfer::addSup(), BlendedInterfacialModel< ModelType >::BlendedInterfacialModel(), continuous::fContinuous(), twoResistanceHeatTransfer::Ks(), and SidedInterfacialModel< ModelType >::SidedInterfacialModel().


|
inline |
Access the phase for the given index. Generates a FatalError if.
the index is not 0 or 1.
Definition at line 147 of file phaseInterfaceI.H.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.

|
inline |
Return the phase system.
Definition at line 166 of file phaseInterfaceI.H.
Referenced by BlendedInterfacialModel< ModelType >::BlendedInterfacialModel(), phaseInterface::New(), and SidedInterfacialModel< ModelType >::SidedInterfacialModel().

|
inline |
Return the mesh.
Definition at line 172 of file phaseInterfaceI.H.
References fvMesh::mesh().

| Foam::tmp< Foam::volScalarField > rho | ( | ) | const |
Average density.
Definition at line 516 of file phaseInterface.C.
| Foam::tmp< Foam::volScalarField > magUr | ( | ) | const |
Relative velocity magnitude.
Definition at line 522 of file phaseInterface.C.
References Foam::mag(), and U.

| Foam::tmp< Foam::volScalarField > sigma | ( | ) | const |
Surface tension coefficient.
Definition at line 539 of file phaseInterface.C.
Referenced by populationBalanceModel::sigmaWithContinuousPhase().

|
inline |
const_iterator set to the beginning of the interface
Definition at line 276 of file phaseInterfaceI.H.
|
inline |
const_iterator set to beyond the end of the interface
Definition at line 282 of file phaseInterfaceI.H.
|
inline |
const_iterator set to the beginning of the interface
Definition at line 288 of file phaseInterfaceI.H.
|
inline |
const_iterator set to beyond the end of the interface
Definition at line 294 of file phaseInterfaceI.H.