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();
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();
96 pp.checkTotalMassFraction();
107 "Foam::Ostream& Foam::operator<<(Ostream&, const phaseProperties&)" 123 "Foam::Ostream& Foam::operator<<(Ostream&, const phaseProperties&)" Template class for intrusive linked lists.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const keyType & keyword() const
Return keyword.
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)...
static const dictionary null
Null dictionary.
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 &)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
void setSize(const label)
Reset size of List.
Ostream & operator<<(Ostream &, const ensightPart &)
phaseProperties()
Null constructor.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.