OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

phaseProperties Class Reference

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

Collaboration diagram for phaseProperties:

List of all members.


Public Types

enum  phaseType { GAS, LIQUID, SOLID, UNKNOWN }
 Phase type enumeration. More...

Public Member Functions

 phaseProperties ()
 Null constructor.
 phaseProperties (Istream &)
 Construct from Istream.
 phaseProperties (const phaseProperties &)
 Construct as copy.
 ~phaseProperties ()
 Destructor.
void initialiseGlobalIds (const wordList &gasNames, const wordList &liquidNames, const wordList &solidNames)
 Initialise the global ids.
phaseType phase () const
 Return const access to the phase type.
const word & stateLabel () const
 Return const access to the phase state label.
word phaseTypeName () const
 Return word representation of the phase type.
const List< word > & names () const
 Return the list of component names.
const word & name (const label cmptI) const
 Return const access to a component name.
const scalarField & Y () const
 Return const access to all component mass fractions.
scalar & Y (const label cmptI)
 Return non-const access to a component mass fraction.
const labelList & globalIds () const
 Return const access to the global ids.
const labelList & globalCarrierIds () const
 Return const access to the map to the carrier global ids.
label globalId (const word &cmptName) const
 Return the global id of a component in the local list by name.
label id (const word &cmptName) const
 Return the id of a component in the local list by name.

Static Public Attributes

static const NamedEnum
< phaseType, 4 > 
phaseTypeNames_
 Corresponding word representations for phase type enumerations.

Friends

Istream & operator>> (Istream &, phaseProperties &)
Ostream & operator<< (Ostream &, const phaseProperties &)

Detailed Description

Helper class to manage multi-component phase properties.

Source files

Definition at line 48 of file phaseProperties.H.


Member Enumeration Documentation

enum phaseType

Phase type enumeration.

Enumerator:
GAS 
LIQUID 
SOLID 
UNKNOWN 

Definition at line 55 of file phaseProperties.H.


Constructor & Destructor Documentation

phaseProperties (  ) 

Null constructor.

Definition at line 155 of file phaseProperties.C.

phaseProperties ( const phaseProperties &  pp  ) 

Construct as copy.

Definition at line 166 of file phaseProperties.C.

~phaseProperties (  ) 

Destructor.

Definition at line 179 of file phaseProperties.C.


Member Function Documentation

void initialiseGlobalIds ( const wordList &  gasNames,
const wordList &  liquidNames,
const wordList &  solidNames 
)

Initialise the global ids.

Definition at line 186 of file phaseProperties.C.

Return const access to the phase type.

Definition at line 240 of file phaseProperties.C.

const Foam::word & stateLabel (  )  const

Return const access to the phase state label.

Definition at line 246 of file phaseProperties.C.

Foam::word phaseTypeName (  )  const

Return word representation of the phase type.

Definition at line 252 of file phaseProperties.C.

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

Return the list of component names.

Definition at line 258 of file phaseProperties.C.

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

Return const access to a component name.

Definition at line 264 of file phaseProperties.C.

const Foam::scalarField & Y (  )  const

Return const access to all component mass fractions.

Definition at line 283 of file phaseProperties.C.

Foam::scalar & Y ( const label  cmptI  ) 

Return non-const access to a component mass fraction.

Definition at line 289 of file phaseProperties.C.

const Foam::labelList & globalIds (  )  const

Return const access to the global ids.

Definition at line 324 of file phaseProperties.C.

const Foam::labelList & globalCarrierIds (  )  const

Return const access to the map to the carrier global ids.

Definition at line 330 of file phaseProperties.C.

Foam::label globalId ( const word &  cmptName  )  const

Return the global id of a component in the local list by name.

Returns -1 if not found

Definition at line 308 of file phaseProperties.C.

Foam::label id ( const word &  cmptName  )  const

Return the id of a component in the local list by name.

Returns -1 if not found

Definition at line 336 of file phaseProperties.C.


Friends And Related Function Documentation

Istream& operator>> ( Istream &  ,
phaseProperties &   
) [friend]

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


Member Data Documentation

Corresponding word representations for phase type enumerations.

Definition at line 64 of file phaseProperties.H.

Referenced by phaseProperties::phaseProperties().


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd