Foam::multiComponentMixture. More...
Public Types | |
typedef ThermoType | thermoType |
The type of thermodynamics this mixture is instantiated for. More... | |
![]() | |
typedef basicSpecieMixture | basicMixtureType |
The base class of the mixture. More... | |
![]() | |
typedef basicMultiComponentMixture | basicMixtureType |
The base class of the mixture. More... | |
Public Member Functions | |
multiComponentMixture (const dictionary &, const wordList &specieNames, const HashPtrTable< ThermoType > &thermoData, const fvMesh &, const word &) | |
Construct from dictionary, specie names, thermo database,. More... | |
multiComponentMixture (const dictionary &, const fvMesh &, const word &) | |
Construct from dictionary, mesh and phase name. More... | |
virtual | ~multiComponentMixture () |
Destructor. 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 |
const PtrList< ThermoType > & | speciesData () const |
Return the raw specie thermodynamic data. More... | |
void | read (const dictionary &) |
Read dictionary. More... | |
const ThermoType & | getLocalThermo (const label speciei) const |
Return thermo based on index. More... | |
![]() | |
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... | |
virtual scalar | nMoles (const label speciei) const =0 |
Number of moles of the given specie []. More... | |
virtual scalar | W (const label speciei) const =0 |
Molecular weight of the given specie [kg/kmol]. More... | |
tmp< volScalarField > | W () const |
Molecular weight of the mixture [kg/kmol]. 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 | 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 | Hc (const label speciei) const =0 |
Chemical 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... | |
![]() | |
TypeName ("basicMultiComponentMixture") | |
Run time type information. More... | |
basicMultiComponentMixture (const dictionary &, const wordList &specieNames, const fvMesh &, const word &) | |
Construct from dictionary, species names, mesh and phase name. More... | |
virtual | ~basicMultiComponentMixture () |
Destructor. More... | |
const speciesTable & | species () const |
Return the table of species. More... | |
PtrList< volScalarField > & | Y () |
Return the mass-fraction fields. More... | |
const PtrList< volScalarField > & | Y () const |
Return the const mass-fraction fields. More... | |
volScalarField & | Y (const label i) |
Return the mass-fraction field for a specie given by index. More... | |
const volScalarField & | Y (const label i) const |
Return the const mass-fraction field for a specie given by index. More... | |
volScalarField & | Y (const word &specieName) |
Return the mass-fraction field for a specie given by name. More... | |
const volScalarField & | Y (const word &specieName) const |
Return the const mass-fraction field for a specie given by name. More... | |
bool | contains (const word &specieName) const |
Does the mixture include this specie? More... | |
Private Member Functions | |
const ThermoType & | constructSpeciesData (const dictionary &thermoDict) |
Construct the species data from the given dictionary and return the. More... | |
void | correctMassFractions () |
Correct the mass fractions to sum to 1. More... | |
multiComponentMixture (const multiComponentMixture< ThermoType > &) | |
Construct as copy (not implemented) More... | |
Private Attributes | |
PtrList< ThermoType > | speciesData_ |
Species data. More... | |
ThermoType | mixture_ |
Temporary storage for the cell/face mixture thermo data. More... | |
ThermoType | mixtureVol_ |
Temporary storage for the volume weighted. More... | |
Additional Inherited Members | |
![]() | |
speciesTable | species_ |
Table of specie names. More... | |
PtrList< volScalarField > | Y_ |
Species mass fractions. More... | |
Definition at line 50 of file multiComponentMixture.H.
typedef ThermoType thermoType |
The type of thermodynamics this mixture is instantiated for.
Definition at line 83 of file multiComponentMixture.H.
|
private |
Construct as copy (not implemented)
multiComponentMixture | ( | const dictionary & | thermoDict, |
const wordList & | specieNames, | ||
const HashPtrTable< ThermoType > & | thermoData, | ||
const fvMesh & | mesh, | ||
const word & | phaseName | ||
) |
Construct from dictionary, specie names, thermo database,.
mesh and phase name
Definition at line 78 of file multiComponentMixture.C.
References forAll.
multiComponentMixture | ( | const dictionary & | thermoDict, |
const fvMesh & | mesh, | ||
const word & | phaseName | ||
) |
Construct from dictionary, mesh and phase name.
Definition at line 106 of file multiComponentMixture.C.
|
inlinevirtual |
Destructor.
Definition at line 104 of file multiComponentMixture.H.
|
private |
Construct the species data from the given dictionary and return the.
data for the first specie to initialise the mixture thermo data
Definition at line 32 of file multiComponentMixture.C.
References forAll, and dictionary::subDict().
|
private |
Correct the mass fractions to sum to 1.
Definition at line 50 of file multiComponentMixture.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::mag(), Foam::max(), n, and Yt().
const ThermoType & cellMixture | ( | const label | celli | ) | const |
Definition at line 131 of file multiComponentMixture.C.
References n.
Definition at line 148 of file multiComponentMixture.C.
const ThermoType & cellVolMixture | ( | const scalar | p, |
const scalar | T, | ||
const label | celli | ||
) | const |
|
inline |
Return the raw specie thermodynamic data.
Definition at line 134 of file multiComponentMixture.H.
References multiComponentMixture< ThermoType >::speciesData_.
void read | ( | const dictionary & | thermoDict | ) |
Read dictionary.
Definition at line 229 of file multiComponentMixture.C.
References forAll, and dictionary::subDict().
|
inline |
Return thermo based on index.
Definition at line 143 of file multiComponentMixture.H.
References multiComponentMixture< ThermoType >::speciesData_.
|
private |
Species data.
Definition at line 57 of file multiComponentMixture.H.
Referenced by multiComponentMixture< ThermoType >::getLocalThermo(), and multiComponentMixture< ThermoType >::speciesData().
|
mutableprivate |
Temporary storage for the cell/face mixture thermo data.
Definition at line 60 of file multiComponentMixture.H.
|
mutableprivate |
Temporary storage for the volume weighted.
cell/face mixture thermo data
Definition at line 64 of file multiComponentMixture.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.