Specialisation of basicMixture for a mixture consisting of a number for molecular species. More...
Public Types | |
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 | |
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 speciesTable & | species () const |
Return the table of species. More... | |
bool | contains (const word &specieName) const |
Does the mixture include this specie? More... | |
label | defaultSpecie () const |
Return the index of the default 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... | |
bool | solve (label speciei) const |
Return true if the specie should be solved for. 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... | |
label | index (const volScalarField &Yi) const |
Return the specie index of the given mass-fraction field. More... | |
void | normalise () |
Normalise the mass fractions. 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< volScalarField > | rho (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< volScalarField > | Cp (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< scalarField > | HE (const label speciei, const scalarField &p, const scalarField &T) const =0 |
Enthalpy/Internal energy [J/kg]. More... | |
virtual tmp< volScalarField > | HE (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< scalarField > | Hs (const label speciei, const scalarField &p, const scalarField &T) const =0 |
Sensible enthalpy [J/kg]. More... | |
virtual tmp< volScalarField > | Hs (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< scalarField > | Ha (const label speciei, const scalarField &p, const scalarField &T) const =0 |
Enthalpy/Internal energy [J/kg]. More... | |
virtual tmp< volScalarField > | Ha (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< volScalarField > | mu (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< volScalarField > | kappa (const label speciei, const volScalarField &p, const volScalarField &T) const =0 |
Thermal conductivity [W/m/K]. More... | |
Public Member Functions inherited from basicMixture | |
basicMixture (const dictionary &, const fvMesh &, const word &) | |
Construct from dictionary, mesh and phase name. More... | |
Protected Member Functions | |
void | correctMassFractions () |
Scale the mass fractions to sum to 1. More... | |
Protected Attributes | |
const word & | phaseName_ |
Phase-name. More... | |
speciesTable | species_ |
Table of specie names. More... | |
word | defaultSpecie_ |
The name of the default specie. More... | |
label | defaultSpecieIndex_ |
The index of the default specie. More... | |
List< bool > | active_ |
List of specie active flags. More... | |
PtrList< volScalarField > | Y_ |
Species mass fractions. More... | |
Specialisation of basicMixture for a mixture consisting of a number for molecular species.
Definition at line 52 of file basicSpecieMixture.H.
typedef basicSpecieMixture basicMixtureType |
The base class of the mixture.
Definition at line 95 of file basicSpecieMixture.H.
basicSpecieMixture | ( | const dictionary & | thermoDict, |
const wordList & | specieNames, | ||
const fvMesh & | mesh, | ||
const word & | phaseName | ||
) |
Construct from dictionary, species names, mesh and phase name.
Definition at line 39 of file basicSpecieMixture.C.
References IOobject::AUTO_WRITE, TimePaths::constant(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, forAll, IOobject::groupName(), mesh, IOobject::MUST_READ, IOobject::NO_READ, IOobject::NO_WRITE, fvMesh::time(), Time::timeName(), and tmp< T >::valid().
|
inlinevirtual |
Destructor.
Definition at line 111 of file basicSpecieMixture.H.
References basicSpecieMixture::active(), basicSpecieMixture::contains(), basicSpecieMixture::Cp(), basicSpecieMixture::defaultSpecie(), basicSpecieMixture::Ha(), basicSpecieMixture::HE(), basicSpecieMixture::Hf(), basicSpecieMixture::Hs(), basicSpecieMixture::index(), basicSpecieMixture::kappa(), basicSpecieMixture::mu(), basicSpecieMixture::normalise(), p, basicSpecieMixture::rho(), basicSpecieMixture::setActive(), basicSpecieMixture::setInactive(), basicSpecieMixture::solve(), basicSpecieMixture::species(), Foam::T(), basicSpecieMixture::Wi(), and basicSpecieMixture::Y().
|
protected |
Scale the mass fractions to sum to 1.
Definition at line 183 of file basicSpecieMixture.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, IOobject::groupName(), Foam::mag(), Foam::max(), GeometricField< scalar, fvPatchField, volMesh >::New(), and tmp< T >::ref().
TypeName | ( | "basicSpecieMixture" | ) |
Run time type information.
|
inline |
Return the table of species.
Definition at line 26 of file basicSpecieMixtureI.H.
References basicSpecieMixture::species_.
Referenced by greyMean::aCont(), wideBand::aCont(), adsorptionMassFractionFvPatchScalarField::calcPhiYp(), semiPermeableBaffleMassFractionFvPatchScalarField::calcPhiYp(), singleStepCombustion::calculateMaxProducts(), ReactingParcel< ParcelType >::correctSurfaceValues(), singleStepCombustion::fresCorrect(), singleStepCombustion::massAndAirStoichRatios(), singleStepCombustion::R(), Fickian< unityLewisFourier< laminarThermophysicalTransportModel > >::read(), MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::read(), singleStepCombustion::singleStepCombustion(), thermoSingleLayer::SYi(), thermoSingleLayer::thermoSingleLayer(), speciePhaseChange::vapId(), and basicSpecieMixture::~basicSpecieMixture().
|
inline |
Does the mixture include this specie?
Definition at line 32 of file basicSpecieMixtureI.H.
References hashedWordList::found(), and basicSpecieMixture::species_.
Referenced by basicSpecieMixture::~basicSpecieMixture().
|
inline |
Return the index of the default specie.
Definition at line 38 of file basicSpecieMixtureI.H.
References basicSpecieMixture::defaultSpecieIndex_.
Referenced by MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::correct(), MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::divj(), Fickian< unityLewisFourier< laminarThermophysicalTransportModel > >::divq(), MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::divq(), singleStepCombustion::fresCorrect(), singleStepCombustion::massAndAirStoichRatios(), Fickian< unityLewisFourier< laminarThermophysicalTransportModel > >::q(), MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::q(), and basicSpecieMixture::~basicSpecieMixture().
|
inline |
Return true for active species.
Definition at line 44 of file basicSpecieMixtureI.H.
References basicSpecieMixture::active_.
Referenced by TDACChemistryModel< ThermoType >::solve().
|
inline |
Return the bool list of active species.
Definition at line 50 of file basicSpecieMixtureI.H.
References basicSpecieMixture::active_.
Referenced by basicSpecieMixture::~basicSpecieMixture().
|
inline |
Set speciei active.
Definition at line 56 of file basicSpecieMixtureI.H.
References basicSpecieMixture::active_, IOobject::AUTO_WRITE, and basicSpecieMixture::Y_.
Referenced by TDACChemistryModel< ThermoType >::solve(), and basicSpecieMixture::~basicSpecieMixture().
|
inline |
Set speciei inactive.
Definition at line 63 of file basicSpecieMixtureI.H.
References basicSpecieMixture::active_, IOobject::NO_WRITE, and basicSpecieMixture::Y_.
Referenced by TDACChemistryModel< ThermoType >::TDACChemistryModel(), and basicSpecieMixture::~basicSpecieMixture().
|
inline |
Return true if the specie should be solved for.
i.e. active and not the default specie
Definition at line 70 of file basicSpecieMixtureI.H.
References basicSpecieMixture::active_, and basicSpecieMixture::defaultSpecieIndex_.
Referenced by clouds::addSupFields(), surfaceFilm::addSupFields(), and basicSpecieMixture::~basicSpecieMixture().
|
inline |
Return the mass-fraction fields.
Definition at line 76 of file basicSpecieMixtureI.H.
References basicSpecieMixture::Y_.
Referenced by greyMean::aCont(), wideBand::aCont(), clouds::addSupFields(), surfaceFilm::addSupFields(), COxidationDiffusionLimitedRate< CloudType >::calculate(), COxidationKineticDiffusionLimitedRate< CloudType >::calculate(), COxidationHurtMitchell< CloudType >::calculate(), COxidationIntrinsicRate< CloudType >::calculate(), COxidationMurphyShaddix< CloudType >::calculate(), coefficientWilkeMultiComponentMixture< ThermoType >::cellThermoMixture(), valueMultiComponentMixture< ThermoType >::cellThermoMixture(), coefficientWilkeMultiComponentMixture< ThermoType >::cellTransportMixture(), valueMultiComponentMixture< ThermoType >::cellTransportMixture(), Fickian< unityLewisFourier< laminarThermophysicalTransportModel > >::correct(), MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::correct(), ReactingParcel< ParcelType >::correctSurfaceValues(), MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::divj(), Fickian< unityLewisFourier< laminarThermophysicalTransportModel > >::divq(), nonUnityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::divq(), MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::divq(), singleStepCombustion::fresCorrect(), coefficientWilkeMultiComponentMixture< ThermoType >::patchFaceThermoMixture(), valueMultiComponentMixture< ThermoType >::patchFaceThermoMixture(), coefficientWilkeMultiComponentMixture< ThermoType >::patchFaceTransportMixture(), valueMultiComponentMixture< ThermoType >::patchFaceTransportMixture(), specieTransferTemperatureFvPatchScalarField::phiHep(), Fickian< unityLewisFourier< laminarThermophysicalTransportModel > >::q(), nonUnityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::q(), MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::q(), singleStepCombustion::Qdot(), basicSpecieMixture::Y(), and basicSpecieMixture::~basicSpecieMixture().
|
inline |
Return the const mass-fraction fields.
Definition at line 83 of file basicSpecieMixtureI.H.
References basicSpecieMixture::Y_.
|
inline |
Return the mass-fraction field for a specie given by index.
Definition at line 89 of file basicSpecieMixtureI.H.
References basicSpecieMixture::Y(), and basicSpecieMixture::Y_.
|
inline |
Return the const mass-fraction field for a specie given by index.
Definition at line 96 of file basicSpecieMixtureI.H.
References basicSpecieMixture::Y(), and basicSpecieMixture::Y_.
|
inline |
Return the mass-fraction field for a specie given by name.
Definition at line 105 of file basicSpecieMixtureI.H.
References basicSpecieMixture::species_, basicSpecieMixture::Y(), and basicSpecieMixture::Y_.
|
inline |
Return the const mass-fraction field for a specie given by name.
Definition at line 114 of file basicSpecieMixtureI.H.
References basicSpecieMixture::index(), basicSpecieMixture::species_, and basicSpecieMixture::Y_.
|
inline |
Return the specie index of the given mass-fraction field.
Definition at line 123 of file basicSpecieMixtureI.H.
References IOobject::name(), and basicSpecieMixture::species_.
Referenced by Fickian< unityLewisFourier< laminarThermophysicalTransportModel > >::DEff(), MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::DEff(), Fickian< unityLewisFourier< laminarThermophysicalTransportModel > >::divj(), MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::divj(), Fickian< unityLewisFourier< laminarThermophysicalTransportModel > >::j(), MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::j(), basicSpecieMixture::Y(), and basicSpecieMixture::~basicSpecieMixture().
void normalise | ( | ) |
Normalise the mass fractions.
by clipping positive and deriving the default specie mass fraction from the other species
Definition at line 218 of file basicSpecieMixture.C.
References Foam::dimless, forAll, IOobject::groupName(), GeometricField< Type, PatchField, GeoMesh >::max(), mesh, GeometricField< scalar, fvPatchField, volMesh >::New(), tmp< T >::ref(), and Foam::solve().
Referenced by basicSpecieMixture::~basicSpecieMixture().
|
pure virtual |
Molecular weight of the given specie [kg/kmol].
Referenced by greyMean::aCont(), wideBand::aCont(), adsorptionMassFractionFvPatchScalarField::calcPhiYp(), semiPermeableBaffleMassFractionFvPatchScalarField::calcPhiYp(), singleStepCombustion::calculateMaxProducts(), singleStepCombustion::calculateqFuel(), Fickian< unityLewisFourier< laminarThermophysicalTransportModel > >::correct(), ReactingParcel< ParcelType >::correctSurfaceValues(), singleStepCombustion::massAndAirStoichRatios(), MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::MaxwellStefan(), speciePhaseChange::Wvap(), and basicSpecieMixture::~basicSpecieMixture().
|
pure virtual |
Enthalpy of formation [J/kg].
Referenced by singleStepCombustion::calculateqFuel(), and basicSpecieMixture::~basicSpecieMixture().
|
pure virtual |
Density [kg/m^3].
Referenced by Fickian< unityLewisFourier< laminarThermophysicalTransportModel > >::DEff(), MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::DEff(), and basicSpecieMixture::~basicSpecieMixture().
|
pure virtual |
Density [kg/m^3].
|
pure virtual |
Heat capacity at constant pressure [J/kg/K].
Referenced by ReactingParcel< ParcelType >::correctSurfaceValues(), and basicSpecieMixture::~basicSpecieMixture().
|
pure virtual |
Heat capacity at constant pressure [J/kg/K].
|
pure virtual |
Enthalpy/Internal energy [J/kg].
Referenced by specieTransferTemperatureFvPatchScalarField::phiHep(), and basicSpecieMixture::~basicSpecieMixture().
|
pure virtual |
Enthalpy/Internal energy [J/kg].
|
pure virtual |
Enthalpy/Internal energy [J/kg].
|
pure virtual |
Sensible enthalpy [J/kg].
Referenced by standardPhaseChange::correctModel(), waxSolventEvaporation::correctModel(), Fickian< unityLewisFourier< laminarThermophysicalTransportModel > >::divq(), nonUnityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::divq(), MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::divq(), Fickian< unityLewisFourier< laminarThermophysicalTransportModel > >::q(), nonUnityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::q(), MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::q(), and basicSpecieMixture::~basicSpecieMixture().
|
pure virtual |
Sensible enthalpy [J/kg].
|
pure virtual |
Sensible enthalpy [J/kg].
|
pure virtual |
Absolute enthalpy [J/kg].
Referenced by basicSpecieMixture::~basicSpecieMixture().
|
pure virtual |
Enthalpy/Internal energy [J/kg].
|
pure virtual |
Absolute enthalpy [J/kg].
|
pure virtual |
Dynamic viscosity [kg/m/s].
Referenced by ReactingParcel< ParcelType >::correctSurfaceValues(), valueMultiComponentMixture< ThermoType >::transportMixture::transportMixture(), and basicSpecieMixture::~basicSpecieMixture().
|
pure virtual |
Dynamic viscosity [kg/m/s].
|
pure virtual |
Thermal conductivity [W/m/K].
Referenced by ReactingParcel< ParcelType >::correctSurfaceValues(), valueMultiComponentMixture< ThermoType >::transportMixture::transportMixture(), and basicSpecieMixture::~basicSpecieMixture().
|
pure virtual |
Thermal conductivity [W/m/K].
|
protected |
Phase-name.
Definition at line 62 of file basicSpecieMixture.H.
|
protected |
Table of specie names.
Definition at line 65 of file basicSpecieMixture.H.
Referenced by basicSpecieMixture::contains(), basicSpecieMixture::index(), basicSpecieMixture::species(), and basicSpecieMixture::Y().
|
protected |
The name of the default specie.
The mass fraction of which is derived from the other species rather than solved. Also used as the carrier specie in multicomponent diffusion
Definition at line 71 of file basicSpecieMixture.H.
|
protected |
The index of the default specie.
Definition at line 74 of file basicSpecieMixture.H.
Referenced by basicSpecieMixture::defaultSpecie(), and basicSpecieMixture::solve().
|
mutableprotected |
List of specie active flags.
Definition at line 77 of file basicSpecieMixture.H.
Referenced by basicSpecieMixture::active(), basicSpecieMixture::setActive(), basicSpecieMixture::setInactive(), and basicSpecieMixture::solve().
|
protected |
Species mass fractions.
Definition at line 80 of file basicSpecieMixture.H.
Referenced by basicSpecieMixture::setActive(), basicSpecieMixture::setInactive(), and basicSpecieMixture::Y().