Loading...
Searching...
No Matches
veryInhomogeneousMixture< ThermoType > Class Template Reference

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

#include <veryInhomogeneousMixture.H>

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

Public Types

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

Public Member Functions

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

Static Public Member Functions

static word typeName ()
 Return the instantiated type name.

Additional Inherited Members

Protected Attributes inherited from basicMultiComponentMixture
speciesTable species_
 Table of specie names.
List< bool > active_
 List of specie active flags.
PtrList< volScalarFieldY_
 Species mass fractions.

Detailed Description

template<class ThermoType>
class Foam::veryInhomogeneousMixture< ThermoType >

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

Source files

Definition at line 51 of file veryInhomogeneousMixture.H.

Member Typedef Documentation

◆ thermoType

template<class ThermoType>
typedef ThermoType thermoType

The type of thermodynamics this mixture is instantiated for.

Definition at line 94 of file veryInhomogeneousMixture.H.

Constructor & Destructor Documentation

◆ veryInhomogeneousMixture()

template<class ThermoType>
veryInhomogeneousMixture ( const dictionary & thermoDict,
const fvMesh & mesh,
const word & phaseName )

Construct from dictionary, mesh and phase name.

Definition at line 27 of file veryInhomogeneousMixture.C.

References basicCombustionMixture::basicCombustionMixture(), mesh, and thermoDict.

Here is the call graph for this function:

◆ ~veryInhomogeneousMixture()

template<class ThermoType>
virtual ~veryInhomogeneousMixture ( )
virtualdefault

Destructor.

Member Function Documentation

◆ typeName()

template<class ThermoType>
word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 121 of file veryInhomogeneousMixture.H.

◆ stoicRatio()

template<class ThermoType>
const dimensionedScalar & stoicRatio ( ) const
inline

Definition at line 126 of file veryInhomogeneousMixture.H.

Referenced by cellProducts(), mixture(), and patchFaceProducts().

Here is the caller graph for this function:

◆ mixture()

template<class ThermoType>
const ThermoType & mixture ( const scalar ft,
const scalar fu ) const

Definition at line 59 of file veryInhomogeneousMixture.C.

References stoicRatio().

Here is the call graph for this function:

◆ cellMixture()

template<class ThermoType>
const ThermoType & cellMixture ( const label celli) const
inline

Definition at line 133 of file veryInhomogeneousMixture.H.

References mixture.

◆ cellVolMixture()

template<class ThermoType>
const ThermoType & cellVolMixture ( const scalar p,
const scalar T,
const label celli ) const
inline

Definition at line 138 of file veryInhomogeneousMixture.H.

References mixture, p, and Foam::T().

Here is the call graph for this function:

◆ patchFaceMixture()

template<class ThermoType>
const ThermoType & patchFaceMixture ( const label patchi,
const label facei ) const
inline

Definition at line 148 of file veryInhomogeneousMixture.H.

References mixture.

◆ patchFaceVolMixture()

template<class ThermoType>
const ThermoType & patchFaceVolMixture ( const scalar p,
const scalar T,
const label patchi,
const label facei ) const
inline

Definition at line 161 of file veryInhomogeneousMixture.H.

References mixture, p, and Foam::T().

Here is the call graph for this function:

◆ cellReactants()

template<class ThermoType>
const ThermoType & cellReactants ( const label celli) const
inline

Definition at line 177 of file veryInhomogeneousMixture.H.

References mixture.

◆ patchFaceReactants()

template<class ThermoType>
const ThermoType & patchFaceReactants ( const label patchi,
const label facei ) const
inline

Definition at line 182 of file veryInhomogeneousMixture.H.

References mixture.

◆ cellProducts()

template<class ThermoType>
const ThermoType & cellProducts ( const label celli) const
inline

Definition at line 195 of file veryInhomogeneousMixture.H.

References basicCombustionMixture::fres(), mixture, and stoicRatio().

Here is the call graph for this function:

◆ patchFaceProducts()

template<class ThermoType>
const ThermoType & patchFaceProducts ( const label patchi,
const label facei ) const
inline

Definition at line 201 of file veryInhomogeneousMixture.H.

References basicCombustionMixture::fres(), mixture, and stoicRatio().

Here is the call graph for this function:

◆ read()

template<class ThermoType>
void read ( const dictionary & thermoDict)

Read dictionary.

Definition at line 84 of file veryInhomogeneousMixture.C.

References thermoDict.

◆ getLocalThermo()

template<class ThermoType>
const ThermoType & getLocalThermo ( const label speciei) const

Return thermo based on index.

Definition at line 96 of file veryInhomogeneousMixture.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: