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&)"
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Template class for intrusive linked lists.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void setSize(const label)
Reset size of List.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A keyword and a list of tokens is a 'dictionaryEntry'.
static const dictionary null
Null dictionary.
const keyType & keyword() const
Return keyword.
Helper class to manage multi-specie phase properties.
static const NamedEnum< phaseType, 4 > phaseTypeNames
Corresponding word representations for phase type enumerations.
phaseProperties()
Null constructor.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
Istream & operator>>(Istream &, pistonPointEdgeData &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)