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