Interface to two phases. More...
Public Member Functions  
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...  
virtual const volScalarField &  alpha1 () const =0 
Return the volumefraction of phase 1. More...  
virtual const volScalarField &  alpha2 () const =0 
Return the volumefraction of phase 2. More...  
const volScalarField &  alpha (const bool index) const 
Return the volumefraction of a given phase. More...  

inline 
Default construct.
Definition at line 59 of file twoPhases.H.

inlinevirtual 
Destructor.
Definition at line 64 of file twoPhases.H.
TypeName  (  "twoPhases"  ) 
Runtime type information.

inline 
Access the mesh.
Definition at line 71 of file twoPhases.H.
References twoPhases::alpha1(), and DimensionedField< Type, GeoMesh >::mesh().
Referenced by compressibleTwoPhaseVoFMixture::compressibleTwoPhaseVoFMixture().

inline 
Return the index associated with a given phase name.
Definition at line 77 of file twoPhases.H.
References twoPhases::alpha1(), twoPhases::alpha2(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, IOobject::group(), Foam::constant::atomic::group, and Foam::name().
Referenced by twoPhases::alpha(), compressibleTwoPhases::rho(), incompressibleTwoPhases::rho(), and compressibleTwoPhases::thermo().

pure virtual 
Return the volumefraction of phase 1.
Implemented in twoPhaseMixture, and phaseInterface.
Referenced by twoPhases::alpha(), twoPhases::index(), and twoPhases::mesh().

pure virtual 
Return the volumefraction of phase 2.
Implemented in twoPhaseMixture, and phaseInterface.
Referenced by twoPhases::alpha(), and twoPhases::index().

inline 
Return the volumefraction of a given phase.
Definition at line 103 of file twoPhases.H.
References twoPhases::alpha1(), twoPhases::alpha2(), and twoPhases::index().
Referenced by cavitationModel::alphal(), and cavitationModel::alphav().