inhomogeneousMixture< ThermoType > Class Template Reference

The inhomogeneous mixture contains species ("ft", "b"). More...

Inheritance diagram for inhomogeneousMixture< ThermoType >:
[legend]
Collaboration diagram for inhomogeneousMixture< ThermoType >:
[legend]

Public Types

typedef ThermoType thermoType
 The type of thermodynamics this mixture is instantiated for. More...
 
- Public Types inherited from basicCombustionMixture
typedef basicCombustionMixture basicMixtureType
 The base class of the mixture. More...
 
- Public Types inherited from basicSpecieMixture
typedef basicSpecieMixture basicMixtureType
 The base class of the mixture. More...
 
- Public Types inherited from basicMultiComponentMixture
typedef basicMultiComponentMixture basicMixtureType
 The base class of the mixture. More...
 
- Public Types inherited from basicMixture
typedef basicMixture basicMixtureType
 The base class of the mixture. More...
 

Public Member Functions

 inhomogeneousMixture (const dictionary &thermoDict, const fvMesh &mesh, const word &phaseName)
 Construct from dictionary, mesh and phase name. More...
 
virtual ~inhomogeneousMixture ()=default
 Destructor. More...
 
const dimensionedScalarstoicRatio () const
 
const ThermoType & mixture (const scalar, const scalar) const
 
const ThermoType & cellMixture (const label celli) const
 
const ThermoType & cellVolMixture (const scalar p, const scalar T, const label celli) const
 
const ThermoType & patchFaceMixture (const label patchi, const label facei) const
 
const ThermoType & patchFaceVolMixture (const scalar p, const scalar T, const label patchi, const label facei) const
 
const ThermoType & cellReactants (const label celli) const
 
const ThermoType & patchFaceReactants (const label patchi, const label facei) const
 
const ThermoType & cellProducts (const label celli) const
 
const ThermoType & patchFaceProducts (const label patchi, const label facei) const
 
void read (const dictionary &)
 Read dictionary. More...
 
const ThermoType & getLocalThermo (const label speciei) const
 Return thermo based on index. More...
 
- Public Member Functions inherited from basicCombustionMixture
 TypeName ("basicCombustionMixture")
 Run time type information. More...
 
 basicCombustionMixture (const dictionary &thermoDict, const wordList &specieNames, const fvMesh &mesh, const word &phaseName)
 Construct from dictionary, specie names, mesh and phase name. More...
 
virtual ~basicCombustionMixture ()=default
 Destructor. More...
 
scalar fres (const scalar ft, const scalar stoicRatio) const
 
tmp< volScalarFieldfres (const volScalarField &ft, const dimensionedScalar &stoicRatio) const
 
- Public Member Functions inherited from basicSpecieMixture
 TypeName ("basicSpecieMixture")
 Run time type information. More...
 
 basicSpecieMixture (const dictionary &thermoDict, const wordList &specieNames, const fvMesh &mesh, const word &phaseName)
 Construct from dictionary, species names, mesh and phase name. More...
 
virtual ~basicSpecieMixture ()=default
 Destructor. More...
 
virtual scalar W (const label speciei) const =0
 Molecular weight of the given specie [kg/kmol]. More...
 
virtual scalar Hc (const label speciei) const =0
 Chemical enthalpy [J/kg]. More...
 
virtual scalar Cp (const label speciei, const scalar p, const scalar T) const =0
 Heat capacity at constant pressure [J/(kg K)]. More...
 
virtual scalar Cv (const label speciei, const scalar p, const scalar T) const =0
 Heat capacity at constant volume [J/(kg K)]. More...
 
virtual scalar HE (const label speciei, const scalar p, const scalar T) const =0
 Enthalpy/Internal energy [J/kg]. More...
 
virtual scalar Ha (const label speciei, const scalar p, const scalar T) const =0
 Absolute enthalpy [J/kg]. More...
 
virtual scalar Hs (const label speciei, const scalar p, const scalar T) const =0
 Sensible enthalpy [J/kg]. More...
 
virtual scalar S (const label speciei, const scalar p, const scalar T) const =0
 Entropy [J/(kg K)]. More...
 
virtual scalar Es (const label speciei, const scalar p, const scalar T) const =0
 Sensible internal energy [J/kg]. More...
 
virtual scalar G (const label speciei, const scalar p, const scalar T) const =0
 Gibbs free energy [J/kg]. More...
 
virtual scalar A (const label speciei, const scalar p, const scalar T) const =0
 Helmholtz free energy [J/kg]. More...
 
virtual scalar mu (const label speciei, const scalar p, const scalar T) const =0
 Dynamic viscosity [kg/m/s]. More...
 
virtual scalar kappa (const label speciei, const scalar p, const scalar T) const =0
 Thermal conductivity [W/m/K]. More...
 
virtual scalar alphah (const label speciei, const scalar p, const scalar T) const =0
 Thermal diffusivity of enthalpy [kg/m/s]. More...
 
virtual scalar rho (const label speciei, const scalar p, const scalar T) const =0
 Density [kg/m3]. More...
 
virtual autoPtr< speciesCompositionTablespecieComposition () const
 Species composition. More...
 
- Public Member Functions inherited from basicMultiComponentMixture
 TypeName ("basicMultiComponentMixture")
 Run time type information. More...
 
 basicMultiComponentMixture (const dictionary &thermoDict, const wordList &specieNames, const fvMesh &mesh, const word &phaseName)
 Construct from dictionary, species names, mesh and phase name. More...
 
virtual ~basicMultiComponentMixture ()=default
 Destructor. More...
 
const speciesTablespecies () const
 Return the table of species. More...
 
bool contains (const word &specieName) const
 Does the mixture include this specie? More...
 
bool active (label speciei) const
 Return true for active species. More...
 
const List< bool > & active () const
 Return the bool list of active species. More...
 
void setActive (label speciei)
 Set speciei active. More...
 
void setInactive (label speciei)
 Set speciei inactive. More...
 
PtrList< volScalarField > & Y ()
 Return the mass-fraction fields. More...
 
const PtrList< volScalarField > & Y () const
 Return the const mass-fraction fields. More...
 
volScalarFieldY (const label i)
 Return the mass-fraction field for a specie given by index. More...
 
const volScalarFieldY (const label i) const
 Return the const mass-fraction field for a specie given by index. More...
 
volScalarFieldY (const word &specieName)
 Return the mass-fraction field for a specie given by name. More...
 
const volScalarFieldY (const word &specieName) const
 Return the const mass-fraction field for a specie given by name. More...
 
- Public Member Functions inherited from basicMixture
 basicMixture (const dictionary &, const fvMesh &, const word &)
 Construct from dictionary, mesh and phase name. More...
 

Static Public Member Functions

static word typeName ()
 Return the instantiated type name. More...
 

Additional Inherited Members

- Protected Attributes inherited from basicMultiComponentMixture
speciesTable species_
 Table of specie names. More...
 
List< boolactive_
 List of specie active flags. More...
 
PtrList< volScalarFieldY_
 Species mass fractions. More...
 

Detailed Description

template<class ThermoType>
class Foam::inhomogeneousMixture< ThermoType >

The inhomogeneous mixture contains species ("ft", "b").

Source files

Definition at line 55 of file inhomogeneousMixture.H.

Member Typedef Documentation

◆ thermoType

typedef ThermoType thermoType

The type of thermodynamics this mixture is instantiated for.

Definition at line 85 of file inhomogeneousMixture.H.

Constructor & Destructor Documentation

◆ inhomogeneousMixture()

inhomogeneousMixture ( const dictionary thermoDict,
const fvMesh mesh,
const word phaseName 
)

Construct from dictionary, mesh and phase name.

Definition at line 35 of file inhomogeneousMixture.C.

◆ ~inhomogeneousMixture()

virtual ~inhomogeneousMixture ( )
virtualdefault

Destructor.

Member Function Documentation

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 106 of file inhomogeneousMixture.H.

◆ stoicRatio()

const dimensionedScalar& stoicRatio ( ) const
inline

Definition at line 111 of file inhomogeneousMixture.H.

◆ mixture()

const ThermoType & mixture ( const scalar  ft,
const scalar  b 
) const

Definition at line 66 of file inhomogeneousMixture.C.

References Foam::constant::physicoChemical::b, and dimensioned< Type >::value().

Referenced by inhomogeneousMixture< ThermoType >::cellMixture(), inhomogeneousMixture< ThermoType >::cellProducts(), inhomogeneousMixture< ThermoType >::cellReactants(), inhomogeneousMixture< ThermoType >::cellVolMixture(), inhomogeneousMixture< ThermoType >::patchFaceMixture(), inhomogeneousMixture< ThermoType >::patchFaceProducts(), inhomogeneousMixture< ThermoType >::patchFaceReactants(), and inhomogeneousMixture< ThermoType >::patchFaceVolMixture().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cellMixture()

const ThermoType& cellMixture ( const label  celli) const
inline

Definition at line 118 of file inhomogeneousMixture.H.

References inhomogeneousMixture< ThermoType >::mixture().

Here is the call graph for this function:

◆ cellVolMixture()

const ThermoType& cellVolMixture ( const scalar  p,
const scalar  T,
const label  celli 
) const
inline

Definition at line 124 of file inhomogeneousMixture.H.

References inhomogeneousMixture< ThermoType >::mixture().

Here is the call graph for this function:

◆ patchFaceMixture()

const ThermoType& patchFaceMixture ( const label  patchi,
const label  facei 
) const
inline

Definition at line 134 of file inhomogeneousMixture.H.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), and inhomogeneousMixture< ThermoType >::mixture().

Here is the call graph for this function:

◆ patchFaceVolMixture()

const ThermoType& patchFaceVolMixture ( const scalar  p,
const scalar  T,
const label  patchi,
const label  facei 
) const
inline

Definition at line 147 of file inhomogeneousMixture.H.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), and inhomogeneousMixture< ThermoType >::mixture().

Here is the call graph for this function:

◆ cellReactants()

const ThermoType& cellReactants ( const label  celli) const
inline

Definition at line 161 of file inhomogeneousMixture.H.

References inhomogeneousMixture< ThermoType >::mixture().

Here is the call graph for this function:

◆ patchFaceReactants()

const ThermoType& patchFaceReactants ( const label  patchi,
const label  facei 
) const
inline

Definition at line 167 of file inhomogeneousMixture.H.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), and inhomogeneousMixture< ThermoType >::mixture().

Here is the call graph for this function:

◆ cellProducts()

const ThermoType& cellProducts ( const label  celli) const
inline

Definition at line 179 of file inhomogeneousMixture.H.

References inhomogeneousMixture< ThermoType >::mixture().

Here is the call graph for this function:

◆ patchFaceProducts()

const ThermoType& patchFaceProducts ( const label  patchi,
const label  facei 
) const
inline

Definition at line 185 of file inhomogeneousMixture.H.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), and inhomogeneousMixture< ThermoType >::mixture().

Here is the call graph for this function:

◆ read()

void read ( const dictionary thermoDict)

Read dictionary.

Definition at line 91 of file inhomogeneousMixture.C.

References thermoDict.

◆ getLocalThermo()

const ThermoType & getLocalThermo ( const label  speciei) const

Return thermo based on index.

Definition at line 103 of file inhomogeneousMixture.C.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

The documentation for this class was generated from the following files: