34 return species_.found(specieName);
40 return defaultSpecieIndex_;
46 return active_[speciei];
58 active_[speciei] =
true;
65 active_[speciei] =
false;
72 return speciei != defaultSpecieIndex_ && active_[speciei];
106 const word& specieName
109 return Y_[species_[specieName]];
115 const word& specieName
118 return Y_[species_[specieName]];
127 return species_[Yi.
member()];
Generic GeometricField class.
static word member(const word &name)
Return member (name without the extension)
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
const List< bool > & active() const
Return the bool list of active species.
void setActive(label speciei) const
Set speciei active.
const speciesTable & species() const
Return the table of species.
bool solve(label speciei) const
Return true if the specie should be solved for.
label defaultSpecie() const
Return the index of the default specie.
void setInactive(label speciei) const
Set speciei inactive.
speciesTable species_
Table of specie names.
PtrList< volScalarField > & Y()
Return the mass-fraction fields.
label index(const volScalarField &Yi) const
Return the specie index of the given mass-fraction field.
bool contains(const word &specieName) const
Does the mixture include this specie?
A wordList with hashed indices for faster lookup by name.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.