36 #ifndef basicSpecieMixture_H 37 #define basicSpecieMixture_H 173 virtual scalar
Wi(
const label speciei)
const = 0;
176 virtual scalar
Hf(
const label speciei)
const = 0;
void setInactive(label speciei) const
Set speciei inactive.
bool solve(label speciei) const
Return true if the specie should be solved for.
PtrList< volScalarField > Y_
Species mass fractions.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual scalar kappa(const label speciei, const scalar p, const scalar T) const =0
Thermal conductivity [W/m/K].
label index(const volScalarField &Yi) const
Return the specie index of the given mass-fraction field.
virtual scalar Ha(const label speciei, const scalar p, const scalar T) const =0
Absolute enthalpy [J/kg].
virtual scalar Wi(const label speciei) const =0
Molecular weight of the given specie [kg/kmol].
virtual scalar rho(const label speciei, const scalar p, const scalar T) const =0
Density [kg/m^3].
Specialisation of basicMixture for a mixture consisting of a number for molecular species...
speciesTable species_
Table of specie names.
List< bool > active_
List of specie active flags.
void normalise()
Normalise the mass fractions.
virtual scalar Cp(const label speciei, const scalar p, const scalar T) const =0
Heat capacity at constant pressure [J/kg/K].
virtual scalar mu(const label speciei, const scalar p, const scalar T) const =0
Dynamic viscosity [kg/m/s].
A class for handling words, derived from string.
virtual scalar HE(const label speciei, const scalar p, const scalar T) const =0
Enthalpy/Internal energy [J/kg].
bool contains(const word &specieName) const
Does the mixture include this specie?
virtual ~basicSpecieMixture()
Destructor.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
A wordList with hashed indices for faster lookup by name.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
TypeName("basicSpecieMixture")
Run time type information.
Mesh data needed to do the Finite Volume discretisation.
virtual scalar Hs(const label speciei, const scalar p, const scalar T) const =0
Sensible enthalpy [J/kg].
void setActive(label speciei) const
Set speciei active.
basicSpecieMixture basicMixtureType
The base class of the mixture.
A class for managing temporary objects.
PtrList< volScalarField > & Y()
Return the mass-fraction fields.
label defaultSpecieIndex_
The index of the default specie.
virtual scalar Hf(const label speciei) const =0
Enthalpy of formation [J/kg].
void correctMassFractions()
Scale the mass fractions to sum to 1.
const List< bool > & active() const
Return the bool list of active species.
basicSpecieMixture(const dictionary &, const wordList &specieNames, const fvMesh &, const word &)
Construct from dictionary, species names, mesh and phase name.
const word & phaseName_
Phase-name.
const speciesTable & species() const
Return the table of species.
word defaultSpecie_
The name of the default specie.
label defaultSpecie() const
Return the index of the default specie.