Public Types | Public Member Functions | Static Public Attributes | Friends | List of all members
phaseProperties Class Reference

Helper class to manage multi-specie phase properties. More...

Collaboration diagram for phaseProperties:
Collaboration graph
[legend]

Public Types

enum  phaseType { GAS, LIQUID, SOLID, UNKNOWN }
 

Public Member Functions

 phaseProperties ()
 
 phaseProperties (Istream &is)
 
void reorder (const wordList &gasNames, const wordList &liquidNames, const wordList &solidNames)
 
phaseType phase () const
 
const wordstateLabel () const
 
word phaseTypeName () const
 
const List< word > & names () const
 
const wordname (const label speciei) const
 
const scalarFieldY () const
 
scalar & Y (const label speciei)
 
const labelListcarrierIds () const
 
label id (const word &specieName) const
 

Static Public Attributes

static const Enum< phaseTypephaseTypeNames
 

Friends

Istreamoperator>> (Istream &, phaseProperties &)
 
Ostreamoperator<< (Ostream &, const phaseProperties &)
 

Detailed Description

Helper class to manage multi-specie phase properties.

Source files

Definition at line 56 of file phaseProperties.H.

Member Enumeration Documentation

◆ phaseType

enum phaseType
Enumerator
GAS 
LIQUID 
SOLID 
UNKNOWN 

Definition at line 63 of file phaseProperties.H.

Constructor & Destructor Documentation

◆ phaseProperties() [1/2]

Definition at line 175 of file phaseProperties.C.

◆ phaseProperties() [2/2]

phaseProperties ( Istream is)
explicit

Definition at line 26 of file phasePropertiesIO.C.

Member Function Documentation

◆ reorder()

void reorder ( const wordList gasNames,
const wordList liquidNames,
const wordList solidNames 
)

Definition at line 188 of file phaseProperties.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, Foam::reorder(), and solidNames().

Here is the call graph for this function:

◆ phase()

◆ stateLabel()

const Foam::word & stateLabel ( ) const

Definition at line 241 of file phaseProperties.C.

◆ phaseTypeName()

Foam::word phaseTypeName ( ) const

Definition at line 247 of file phaseProperties.C.

◆ names()

const Foam::List< Foam::word > & names ( ) const

Definition at line 253 of file phaseProperties.C.

◆ name()

const Foam::word & name ( const label  speciei) const

Definition at line 259 of file phaseProperties.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.

Here is the call graph for this function:

◆ Y() [1/2]

const Foam::scalarField & Y ( ) const

Definition at line 273 of file phaseProperties.C.

◆ Y() [2/2]

Foam::scalar & Y ( const label  speciei)

Definition at line 279 of file phaseProperties.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.

Here is the call graph for this function:

◆ carrierIds()

const Foam::labelList & carrierIds ( ) const

◆ id()

Foam::label id ( const word specieName) const

Definition at line 299 of file phaseProperties.C.

Friends And Related Function Documentation

◆ operator>>

Istream& operator>> ( Istream ,
phaseProperties  
)
friend

◆ operator<<

Ostream& operator<< ( Ostream ,
const phaseProperties  
)
friend

Member Data Documentation

◆ phaseTypeNames

const Foam::Enum< Foam::phaseProperties::phaseType > phaseTypeNames
static

Definition at line 72 of file phaseProperties.H.

Referenced by Foam::operator<<(), and Foam::operator>>().


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