47 const dictionaryEntry phaseInfo(dictionary::null, is);
50 pp.phase_ =
pp.phaseTypeNames[phaseInfo.keyword()];
51 pp.stateLabel_ =
pp.phaseToStateLabel(
pp.phase_);
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]);
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
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)....
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'.
virtual const dictionary & dict() const noexcept
Return dictionary (ie, this).
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
const keyType & keyword() const noexcept
Return keyword.
Helper class to manage multi-specie phase properties.
phaseProperties()
Default construct, as 'UNKNOWN' state.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
Istream & operator>>(Istream &, directionInfo &)
static constexpr const zero Zero
Global zero (0).
#define forAll(list, i)
Loop across all elements in list.