32 const word& specieName
44 const_cast<List<bool>&
>(speciesActive())[speciei] =
true;
54 const_cast<List<bool>&
>(speciesActive())[speciei] =
false;
61 return speciei != defaultSpecie() && speciesActive()[speciei];
82 const word& specieName
85 return Y()[species()[specieName]];
91 const word& specieName
94 return Y()[species()[specieName]];
103 return species()[Yi.
member()];
107 inline Foam::volScalarFieldListSlicer
110 return volScalarFieldListSlicer(
mesh(), Y_);
114 inline Foam::scalarFieldListSlice
117 const volScalarFieldListSlicer& Yslicer,
121 return Yslicer.slice(celli);
125 inline Foam::scalarFieldListSlice
128 const volScalarFieldListSlicer& Yslicer,
133 return Yslicer.patchSlice(
patchi, facei);
152 .sources()[model.
name()]
153 .sourceValue(model, source)
162 inline Foam::scalarFieldListSlice
169 return Yslicer.slice(i);
189 .sources()[model.
name()]
190 .sourceValue(model, source,
cells)
199 inline Foam::scalarFieldListSlice
206 return scalarFieldListSlice(Yslicer, i);
#define forAll(list, i)
Loop across all elements in list.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
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...
bool set(const label) const
Is element set.
const word & name() const
Return const access to the source name.
Base class for finite volume sources.
bool found(const word &) const
Does the list contain the specified name.
scalarFieldListSlice cellComposition(const volScalarFieldListSlicer &Yslicer, const label celli) const
Get the composition of an internal cell.
volScalarFieldListSlicer Yslicer() const
Get the slicer.
scalarFieldListSlice patchFaceComposition(const volScalarFieldListSlicer &Yslicer, const label patchi, const label facei) const
Get the composition of a boundary face.
scalarFieldListSlice sourceCellComposition(const DimensionedFieldListAndSlicer< scalar, volMesh > &Yslicer, const label i) const
Get the composition of a source cell.
virtual const speciesTable & species() const =0
The table of species.
bool solveSpecie(const label speciei) const
Should the given specie be solved for? I.e., is it active and.
virtual PtrList< volScalarField > & Y()=0
Access the mass-fraction fields.
bool containsSpecie(const word &specieName) const
Does the mixture include this specie?
void setSpecieInactive(const label speciei) const
Set specie inactive.
void setSpecieActive(const label speciei) const
Set specie active.
label specieIndex(const volScalarField &Yi) const
Access the specie index of the given mass-fraction field.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
PtrList< volScalarField > & Y