ODT
|
#include <streams.h>
Public Member Functions | |
void | getProdOfCompleteComb (const double mixf, vector< double > &ypcc, double &hpcc, double &Tpcc) |
void | getMixingState (const double mixf, vector< double > &ymix, double &hmix, double &Tmix) |
double | getMixtureFraction (const double *y, const bool doBeta01=false) |
streams () | |
void | init (domain *p_domn, const vector< double > &gammas) |
~streams () | |
Public Attributes | |
domain * | domn |
pointer to domain object | |
double | T0 |
stream mixf=0 temperature | |
double | T1 |
stream mixf=1 temperature | |
double | h0 |
stream mixf=0 enthalpy | |
double | h1 |
stream mixf=1 enthalpy | |
vector< double > | y0 |
stream mixf=0 composition vector | |
vector< double > | y1 |
stream mixf=1 composition vector | |
double | M0 |
stream mixf=0 mean molecular weight | |
double | M1 |
stream mixf=1 mean molecular weight | |
double | rho0 |
stream mixf=0 density | |
double | rho1 |
stream mixf=1 density | |
vector< double > | D0 |
stream mixf=0 diffusivities | |
vector< double > | D1 |
stream mixf=1 diffusivities | |
vector< double > | hsp0 |
stream mixf=0 species enthalpies | |
vector< double > | hsp1 |
stream mixf=1 species enthalpies | |
double | mixfStoic |
stoichiometric mixture fraction | |
int | nspc |
number of species in gas mechanism | |
double | beta0 |
![]() | |
double | beta1 |
mixf = (beta-beta0) / (beta1-beta0) | |
vector< double > | gCHON |
gammas, as in beta = sum_i (y_i*gamma_i) | |
int | comp2 |
for premixed combustion to distinguish between different input possibilities for the mixture | |
Private Member Functions | |
void | setStoicMixf () |
vector< double > | setElementMassFracs (const double *y) |
vector< double > | setElementMoleFracs (const double *y) |
vector< double > | getElementMoles (const double *x, double &nOnotFromO2, double &nHnotFromH2O, double &nCnotFromCO2) |
Class implementing streams for use in mixing and or reaction problems. This is writting in terms of mixture fraction with streams defined in an input file. The class can implement products of complete combustion, or equilibrium (through the Cantera IdealGasMix object, if desired). This class holds a pointer to a Cantera IdealGasMix object (defined up front in main) that computes thermodynamic, kinetic, and transport data.
|
private |
Get amount of moles for each element.
x | input: pointer to vector of species mole fractions. |
nOnotFromO2 | input: number of moles of oxygen not from O2 (oxygen in the base fuel). |
nHnotFromH2O | input: number of moles of hydrogen not from H2O. |
nCnotFromCO2 | input: number of moles of carbon not from CO2. |
Definition at line 326 of file streams.cc.
void streams::getMixingState | ( | const double | mixf, |
vector< double > & | ymix, | ||
double & | hmix, | ||
double & | Tmix ) |
Computes the temperature, enthalpy, and composition of mixing among streams.
mixf | input: mixture fraction, defines elemental composition. |
ymix | output: mass fractions of products of complete combustion. |
hmix | output: enthalpy of products of complete combustion. |
Tmix | output: temperature of products of complete combustion. |
Definition at line 106 of file streams.cc.
double streams::getMixtureFraction | ( | const double * | y, |
const bool | doBeta01 = false ) |
Compute the mixture fraction from the mass fractions using Bilger's mixf. Set doBeta01=true on first call to initialize members beta0, beta1. Later calls of this function only use the first parameter.
y | input: vector of species mass fractions. |
doBeta01 | input: flag=true on first call to set members beta0, beta1. |
Definition at line 363 of file streams.cc.
void streams::getProdOfCompleteComb | ( | const double | mixf, |
vector< double > & | ypcc, | ||
double & | hpcc, | ||
double & | Tpcc ) |
Computes the temperature, enthalpy, and composition of complete combustion at the given mixf. For nonpremixed flames (don't do anything funny, like have oxygen in the fuel stream)
mixf | input: mixture fraction, defines elemental composition. |
ypcc | output: mass fractions of products of complete combustion. |
hpcc | output: enthalpy of products of complete combustion. |
Tpcc | output: temperature of products of complete combustion. |
Definition at line 128 of file streams.cc.
void streams::init | ( | domain * | p_domn, |
const vector< double > & | gammas ) |
Initialize
p_domn | input: pointer to domain object. |
Definition at line 18 of file streams.cc.
|
private |
Sets the elements to have the correct Mass Fractions based on the specified array.
y | input: mass fraction array to use to get corresponding element fractions. |
Definition at line 264 of file streams.cc.
|
private |
Sets the elements to have the correct Mole Fractions based on the specified array.
y | input: mass fraction array to use to get corresponding element fractions. |
Definition at line 293 of file streams.cc.
|
private |
Set the stoichiometric mixture fraction using Bilger's definition
Definition at line 229 of file streams.cc.
int streams::comp2 |
vector<double> streams::gCHON |
vector<double> streams::hsp0 |
vector<double> streams::hsp1 |
vector<double> streams::y0 |
vector<double> streams::y1 |