47 const dictionaryEntry phaseInfo(dictionary::null, is);
48 const dictionary&
dict = phaseInfo.dict();
50 pp.phase_ = pp.phaseTypeNames[phaseInfo.keyword()];
51 pp.stateLabel_ = pp.phaseToStateLabel(pp.phase_);
54 pp.names_ =
dict.toc();
56 const label nComponents = pp.names_.size();
58 pp.Y_.resize(nComponents,
Zero);
59 pp.carrierIds_.resize(nComponents, -1);
61 for (label cmpti = 0; cmpti < nComponents; ++cmpti)
63 pp.Y_[cmpti] =
dict.get<scalar>(pp.names_[cmpti]);
65 pp.checkTotalMassFraction();
75 os.beginBlock(pp.phaseTypeNames[pp.phase_]);
79 os.writeEntry(pp.names_[cmpti], pp.Y_[cmpti]);
virtual bool check(const char *operation) const
Check IOstream status for given operation.
Helper class to manage multi-specie phase properties.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
#define forAll(list, i)
Loop across all elements in list.
Istream & operator>>(Istream &, directionInfo &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
phaseProperties()
Default construct, as 'UNKNOWN' state.
static constexpr const zero Zero
Global zero (0)