multiComponentMixture< ThermoType > Class Template Reference

Foam::multiComponentMixture. More...

Inheritance diagram for multiComponentMixture< ThermoType >:
Collaboration diagram for multiComponentMixture< ThermoType >:

Public Types

typedef ThermoType thermoType
 The type of thermodynamics this mixture is instantiated for. More...
 
- Public Types inherited from basicSpecieMixture
typedef basicSpecieMixture 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

 multiComponentMixture (const dictionary &, const fvMesh &, const word &)
 Construct from dictionary, mesh and phase name. More...
 
 multiComponentMixture (const multiComponentMixture< ThermoType > &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~multiComponentMixture ()
 Destructor. More...
 
const PtrList< ThermoType > & specieThermos () const
 Return the raw specie thermodynamic data. More...
 
const speciesCompositionTablespecieComposition () const
 Return the table of species composition. More...
 
const ThermoType & cellMixture (const label celli) const
 
const ThermoType & patchFaceMixture (const label patchi, const label facei) const
 
const ThermoType & cellVolMixture (const scalar p, const scalar T, const label celli) const
 
const ThermoType & patchFaceVolMixture (const scalar p, const scalar T, const label patchi, const label facei) const
 
void read (const dictionary &)
 Read dictionary. More...
 
const ThermoType & specieThermo (const label speciei) const
 Return thermo based on index. More...
 
- Public Member Functions inherited from basicSpecieMixture
 TypeName ("basicSpecieMixture")
 Run time type information. More...
 
 basicSpecieMixture (const dictionary &, const wordList &specieNames, const fvMesh &, const word &)
 Construct from dictionary, species names, mesh and phase name. More...
 
virtual ~basicSpecieMixture ()
 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) const
 Set speciei active. More...
 
void setInactive (label speciei) const
 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...
 
virtual scalar Wi (const label speciei) const =0
 Molecular weight of the given specie [kg/kmol]. More...
 
virtual scalar Hf (const label speciei) const =0
 Enthalpy of formation [J/kg]. More...
 
virtual scalar rho (const label speciei, const scalar p, const scalar T) const =0
 Density [kg/m^3]. More...
 
virtual tmp< volScalarFieldrho (const label speciei, const volScalarField &p, const volScalarField &T) const =0
 Density [kg/m^3]. 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 tmp< volScalarFieldCp (const label speciei, const volScalarField &p, const volScalarField &T) const =0
 Heat capacity at constant pressure [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 tmp< scalarFieldHE (const label speciei, const scalarField &p, const scalarField &T) const =0
 Enthalpy/Internal energy [J/kg]. More...
 
virtual tmp< volScalarFieldHE (const label speciei, const volScalarField &p, const volScalarField &T) const =0
 Enthalpy/Internal energy [J/kg]. More...
 
virtual scalar Hs (const label speciei, const scalar p, const scalar T) const =0
 Sensible enthalpy [J/kg]. More...
 
virtual tmp< scalarFieldHs (const label speciei, const scalarField &p, const scalarField &T) const =0
 Sensible enthalpy [J/kg]. More...
 
virtual tmp< volScalarFieldHs (const label speciei, const volScalarField &p, const volScalarField &T) const =0
 Sensible enthalpy [J/kg]. More...
 
virtual scalar Ha (const label speciei, const scalar p, const scalar T) const =0
 Absolute enthalpy [J/kg]. More...
 
virtual tmp< scalarFieldHa (const label speciei, const scalarField &p, const scalarField &T) const =0
 Enthalpy/Internal energy [J/kg]. More...
 
virtual tmp< volScalarFieldHa (const label speciei, const volScalarField &p, const volScalarField &T) const =0
 Absolute enthalpy [J/kg]. More...
 
virtual scalar mu (const label speciei, const scalar p, const scalar T) const =0
 Dynamic viscosity [kg/m/s]. More...
 
virtual tmp< volScalarFieldmu (const label speciei, const volScalarField &p, const volScalarField &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 tmp< volScalarFieldkappa (const label speciei, const volScalarField &p, const volScalarField &T) const =0
 Thermal conductivity [W/m/K]. More...
 
virtual scalar alphah (const label speciei, const scalar p, const scalar T) const =0
 Thermal conductivity [W/m/K]. More...
 
virtual tmp< volScalarFieldalphah (const label speciei, const volScalarField &p, const volScalarField &T) const =0
 Thermal diffusivity of enthalpy [kg/m/s]. 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 basicSpecieMixture
speciesTable species_
 Table of specie names. More...
 
List< bool > active_
 List of specie active flags. More...
 
PtrList< volScalarFieldY_
 Species mass fractions. More...
 

Detailed Description

template<class ThermoType>
class Foam::multiComponentMixture< ThermoType >

Foam::multiComponentMixture.

Source files

Definition at line 51 of file multiComponentMixture.H.

Member Typedef Documentation

◆ thermoType

typedef ThermoType thermoType

The type of thermodynamics this mixture is instantiated for.

Definition at line 92 of file multiComponentMixture.H.

Constructor & Destructor Documentation

◆ multiComponentMixture() [1/2]

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

Construct from dictionary, mesh and phase name.

Definition at line 136 of file multiComponentMixture.C.

References multiComponentMixture< ThermoType >::cellMixture().

Here is the call graph for this function:

◆ multiComponentMixture() [2/2]

multiComponentMixture ( const multiComponentMixture< ThermoType > &  )
delete

Disallow default bitwise copy construction.

◆ ~multiComponentMixture()

virtual ~multiComponentMixture ( )
inlinevirtual

Destructor.

Definition at line 108 of file multiComponentMixture.H.

Member Function Documentation

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 115 of file multiComponentMixture.H.

◆ specieThermos()

const PtrList<ThermoType>& specieThermos ( ) const
inline

Return the raw specie thermodynamic data.

Definition at line 121 of file multiComponentMixture.H.

Referenced by mixtureFraction< ThermoType >::mixtureFraction().

Here is the caller graph for this function:

◆ specieComposition()

◆ cellMixture()

const ThermoType & cellMixture ( const label  celli) const

Definition at line 162 of file multiComponentMixture.C.

References n, and multiComponentMixture< ThermoType >::patchFaceMixture().

Referenced by multiComponentMixture< ThermoType >::multiComponentMixture(), and multiComponentMixture< ThermoType >::specieComposition().

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

◆ patchFaceMixture()

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

Definition at line 179 of file multiComponentMixture.C.

References multiComponentMixture< ThermoType >::cellVolMixture(), n, and patchi.

Referenced by multiComponentMixture< ThermoType >::cellMixture(), and multiComponentMixture< ThermoType >::specieComposition().

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

◆ cellVolMixture()

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

Definition at line 197 of file multiComponentMixture.C.

References forAll, n, and multiComponentMixture< ThermoType >::patchFaceVolMixture().

Referenced by multiComponentMixture< ThermoType >::patchFaceMixture(), and multiComponentMixture< ThermoType >::specieComposition().

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

◆ patchFaceVolMixture()

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

Definition at line 225 of file multiComponentMixture.C.

References forAll, n, patchi, and multiComponentMixture< ThermoType >::read().

Referenced by multiComponentMixture< ThermoType >::cellVolMixture(), and multiComponentMixture< ThermoType >::specieComposition().

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

◆ read()

void read ( const dictionary thermoDict)

Read dictionary.

Definition at line 256 of file multiComponentMixture.C.

References forAll, and dictionary::subDict().

Referenced by multiComponentMixture< ThermoType >::patchFaceVolMixture(), and multiComponentMixture< ThermoType >::specieComposition().

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

◆ specieThermo()

const ThermoType& specieThermo ( const label  speciei) const
inline

Return thermo based on index.

Definition at line 159 of file multiComponentMixture.H.


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