Go to the documentation of this file.
36 #ifndef phaseProperties_H
37 #define phaseProperties_H
158 scalar&
Y(
const label speciei);
~phaseProperties()
Destructor.
friend Istream & operator>>(Istream &, phaseProperties &)
A class for handling words, derived from string.
List< word > names_
List of specie names.
word phaseTypeName() const
Return word representation of the phase type.
void setCarrierIds(const wordList &carrierNames)
Set carrier ids.
Helper class to manage multi-specie phase properties.
label id(const word &specieName) const
Return the id of a specie in the local list by name.
word phaseToStateLabel(const phaseType pt) const
Set the state label.
phaseType phase_
Phase type.
const labelList & carrierIds() const
Return const access to the map to the carrier ids.
const List< word > & names() const
Return the list of specie names.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
scalarField Y_
List of specie mass fractions.
friend Ostream & operator<<(Ostream &, const phaseProperties &)
word stateLabel_
State label (s), (l), (g) etc.
void checkTotalMassFraction() const
Check the total mass fraction.
static const NamedEnum< phaseType, 4 > phaseTypeNames
Corresponding word representations for phase type enumerations.
labelList carrierIds_
Map to carrier id.
phaseProperties()
Null constructor.
phaseType
Phase type enumeration.
void reorder(const wordList &specieNames)
Reorder species to be consistent with the given specie name list.
const word & stateLabel() const
Return const access to the phase state label.
phaseType phase() const
Return const access to the phase type.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const word & name(const label speciei) const
Return const access to a specie name.
const scalarField & Y() const
Return const access to all specie mass fractions.