Go to the documentation of this file.
34 stateLabel_(
"(unknown)"),
39 is.
check(
"Foam::phaseProperties::phaseProperties(Istream& is)");
46 if (phaseInfo.size() > 0)
48 label nComponents = phaseInfo.size();
50 Y_.setSize(nComponents, 0.0);
56 names_[cmptI] = iter().keyword();
72 "Foam::Istream& Foam::operator>>(Istream&, phaseProperties&)"
80 if (phaseInfo.size() > 0)
82 label nComponents = phaseInfo.size();
85 pp.
Y_.setSize(nComponents, 0.0);
91 pp.
names_[cmptI] = iter().keyword();
107 "Foam::Ostream& Foam::operator<<(Ostream&, const phaseProperties&)"
115 os.writeKeyword(pp.names_[cmptI]) << pp.Y_[cmptI]
123 "Foam::Ostream& Foam::operator<<(Ostream&, const phaseProperties&)"
A keyword and a list of tokens is a 'dictionaryEntry'.
List< word > names_
List of specie names.
const keyType & keyword() const
Return keyword.
#define forAll(list, i)
Loop across all elements in list.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Helper class to manage multi-specie phase properties.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
word phaseToStateLabel(const phaseType pt) const
Set the state label.
phaseType phase_
Phase type.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
scalarField Y_
List of specie mass fractions.
word stateLabel_
State label (s), (l), (g) etc.
void checkTotalMassFraction() const
Check the total mass fraction.
Ostream & operator<<(Ostream &, const edgeMesh &)
static const NamedEnum< phaseType, 4 > phaseTypeNames
Corresponding word representations for phase type enumerations.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
labelList carrierIds_
Map to carrier id.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
phaseProperties()
Null constructor.
void setSize(const label)
Reset size of List.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
Istream & operator>>(Istream &, edgeMesh &)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static const dictionary null
Null dictionary.