34 stateLabel_(
"(unknown)"),
39 is.
check(
"Foam::phaseProperties::phaseProperties(Istream& is)");
44 stateLabel_ = phaseToStateLabel(phase_);
46 if (phaseInfo.size() > 0)
48 label nComponents = phaseInfo.size();
49 names_.
setSize(nComponents,
"unknownSpecie");
51 carrierIds_.
setSize(nComponents, -1);
56 names_[cmptI] = iter().keyword();
57 Y_[cmptI] = phaseInfo.template lookup<scalar>(names_[cmptI]);
61 checkTotalMassFraction();
72 "Foam::Istream& Foam::operator>>(Istream&, phaseProperties&)" 78 pp.stateLabel_ = pp.phaseToStateLabel(pp.phase_);
80 if (phaseInfo.size() > 0)
82 label nComponents = phaseInfo.size();
84 pp.names_.
setSize(nComponents,
"unknownSpecie");
85 pp.Y_.
setSize(nComponents, 0.0);
86 pp.carrierIds_.
setSize(nComponents, -1);
91 pp.names_[cmptI] = iter().keyword();
92 pp.Y_[cmptI] = phaseInfo.template lookup<scalar>(pp.names_[cmptI]);
96 pp.checkTotalMassFraction();
107 "Foam::Ostream& Foam::operator<<(Ostream&, const phaseProperties&)" 115 writeEntry(os, pp.names_[cmptI], pp.Y_[cmptI]);
122 "Foam::Ostream& Foam::operator<<(Ostream&, const phaseProperties&)" Template class for intrusive linked lists.
#define forAll(list, i)
Loop across all elements in list.
const keyType & keyword() const
Return keyword.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Helper class to manage multi-specie phase properties.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A keyword and a list of tokens is a 'dictionaryEntry'.
static const NamedEnum< phaseType, 4 > phaseTypeNames
Corresponding word representations for phase type enumerations.
Istream & operator>>(Istream &, directionInfo &)
static const dictionary null
Null dictionary.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
void setSize(const label)
Reset size of List.
Ostream & operator<<(Ostream &, const ensightPart &)
phaseProperties()
Null constructor.
Ostream & incrIndent(Ostream &os)
Increment the indent level.