Ember
|
A set of Cantera objects needed for calculating thermodynamic properties, transport properties, and kinetic rates for a constant-pressure mixture. More...
#include <chemistry0d.h>
Public Member Functions | |
CanteraGas () | |
void | setOptions (const ConfigOptions &options) |
void | initialize () |
bool | initialized () const |
void | setStateMass (const dvec &Y, const double T) |
void | setStateMass (const double *Y, const double T) |
void | setStateMole (const dvec &X, const double T) |
void | setStateMole (const double *X, const double T) |
void | getMoleFractions (dvec &X) const |
void | getMoleFractions (double *X) const |
void | getMassFractions (dvec &Y) const |
void | getMassFractions (double *Y) const |
double | getDensity () const |
double | getMixtureMolecularWeight () const |
void | getMolecularWeights (dvec &W) const |
void | getMolecularWeights (double *W) const |
double | getViscosity () const |
double | getThermalConductivity () const |
void | getDiffusionCoefficientsMole (dvec &Dkm) const |
Get diffusion coefficients for calculating mass diffusion velocities with respect to mole fraction gradients. | |
void | getDiffusionCoefficientsMole (double *Dkm) const |
void | getWeightedDiffusionCoefficientsMole (dvec &rhoD) const |
Get product of density and diffusion coefficients for calculating diffusive mass fluxes with respect to mole fraction gradients. | |
void | getWeightedDiffusionCoefficientsMole (double *rhoD) const |
void | getWeightedDiffusionCoefficientsMass (double *rhoD) |
Get product of density and diffusion coefficients for calculating diffusive mass fluxes with respect to mass fraction gradients. | |
void | getWeightedDiffusionCoefficientsMass (dvec &rhoD) |
void | getThermalDiffusionCoefficients (dvec &Dkt) const |
Get thermal diffusion coefficients. | |
void | getThermalDiffusionCoefficients (double *Dkt) const |
double | getSpecificHeatCapacity () const |
void | getSpecificHeatCapacities (dvec &cpSpec) const |
void | getSpecificHeatCapacities (double *cpSpec) const |
void | getEnthalpies (dvec &hk) const |
void | getEnthalpies (double *hk) const |
void | setRateMultiplier (double m) |
Multiply the rate constant for all reactions by m. | |
void | getReactionRates (dvec &wDot) const |
Get net molar reaction rates for each species. | |
void | getReactionRates (double *wDot) const |
void | getCreationRates (dvec &wDot) const |
void | getCreationRates (double *wDot) const |
void | getDestructionRates (dvec &wDot) const |
void | getDestructionRates (double *wDot) const |
Public Attributes | |
double | pressure |
thermodynamic pressure [Pa] | |
size_t | nSpec |
number of species | |
std::shared_ptr< Cantera::ThermoPhase > | thermo |
Private Attributes | |
std::shared_ptr< Cantera::Solution > | soln |
std::string | mechanismFile |
std::string | phaseID |
std::string | transportModel |
std::string | kineticsModel |
double | transportThreshold |
std::shared_ptr< Cantera::Kinetics > | kinetics |
std::shared_ptr< Cantera::Transport > | transport |
bool | isInitialized |
dmatrix | Dbin |
binary diffusion coefficients for species k | |
double | lastRateMultiplier |
Value of the rate multiplier the last time it was set. | |
A set of Cantera objects needed for calculating thermodynamic properties, transport properties, and kinetic rates for a constant-pressure mixture.
CanteraGas::CanteraGas | ( | ) |
void CanteraGas::setOptions | ( | const ConfigOptions & | options | ) |
void CanteraGas::initialize | ( | ) |
|
inline |
void CanteraGas::setStateMass | ( | const dvec & | Y, |
const double | T | ||
) |
void CanteraGas::setStateMass | ( | const double * | Y, |
const double | T | ||
) |
void CanteraGas::setStateMole | ( | const dvec & | X, |
const double | T | ||
) |
void CanteraGas::setStateMole | ( | const double * | X, |
const double | T | ||
) |
void CanteraGas::getMoleFractions | ( | dvec & | X | ) | const |
void CanteraGas::getMoleFractions | ( | double * | X | ) | const |
void CanteraGas::getMassFractions | ( | dvec & | Y | ) | const |
void CanteraGas::getMassFractions | ( | double * | Y | ) | const |
double CanteraGas::getDensity | ( | ) | const |
double CanteraGas::getMixtureMolecularWeight | ( | ) | const |
void CanteraGas::getMolecularWeights | ( | dvec & | W | ) | const |
void CanteraGas::getMolecularWeights | ( | double * | W | ) | const |
double CanteraGas::getViscosity | ( | ) | const |
double CanteraGas::getThermalConductivity | ( | ) | const |
void CanteraGas::getDiffusionCoefficientsMole | ( | dvec & | Dkm | ) | const |
Get diffusion coefficients for calculating mass diffusion velocities with respect to mole fraction gradients.
v[k] = -D[k] / X[k] * grad(X[k])
void CanteraGas::getDiffusionCoefficientsMole | ( | double * | Dkm | ) | const |
void CanteraGas::getWeightedDiffusionCoefficientsMole | ( | dvec & | rhoD | ) | const |
Get product of density and diffusion coefficients for calculating diffusive mass fluxes with respect to mole fraction gradients.
j[k] = - rhoD[k] / X[k] * grad(X[k])
void CanteraGas::getWeightedDiffusionCoefficientsMole | ( | double * | rhoD | ) | const |
void CanteraGas::getWeightedDiffusionCoefficientsMass | ( | double * | rhoD | ) |
Get product of density and diffusion coefficients for calculating diffusive mass fluxes with respect to mass fraction gradients.
j[k] = - rho * D[k] * grad(Y[k])
void CanteraGas::getWeightedDiffusionCoefficientsMass | ( | dvec & | rhoD | ) |
void CanteraGas::getThermalDiffusionCoefficients | ( | dvec & | Dkt | ) | const |
Get thermal diffusion coefficients.
j[k] = - Dt[k] / (T * Y[k]) * grad(T)
void CanteraGas::getThermalDiffusionCoefficients | ( | double * | Dkt | ) | const |
double CanteraGas::getSpecificHeatCapacity | ( | ) | const |
void CanteraGas::getSpecificHeatCapacities | ( | dvec & | cpSpec | ) | const |
void CanteraGas::getSpecificHeatCapacities | ( | double * | cpSpec | ) | const |
void CanteraGas::getEnthalpies | ( | dvec & | hk | ) | const |
void CanteraGas::getEnthalpies | ( | double * | hk | ) | const |
void CanteraGas::setRateMultiplier | ( | double | m | ) |
Multiply the rate constant for all reactions by m.
void CanteraGas::getReactionRates | ( | dvec & | wDot | ) | const |
Get net molar reaction rates for each species.
void CanteraGas::getReactionRates | ( | double * | wDot | ) | const |
void CanteraGas::getCreationRates | ( | dvec & | wDot | ) | const |
void CanteraGas::getCreationRates | ( | double * | wDot | ) | const |
void CanteraGas::getDestructionRates | ( | dvec & | wDot | ) | const |
void CanteraGas::getDestructionRates | ( | double * | wDot | ) | const |
double CanteraGas::pressure |
thermodynamic pressure [Pa]
size_t CanteraGas::nSpec |
number of species
std::shared_ptr<Cantera::ThermoPhase> CanteraGas::thermo |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
binary diffusion coefficients for species k
|
private |
Value of the rate multiplier the last time it was set.