3#include "cantera/base/Solution.h"
4#include "cantera/thermo.h"
28 std::vector<double>
y0;
29 std::vector<double>
y1;
33 std::shared_ptr<Cantera::ThermoPhase>
gas;
45 std::vector<double> &ypcc,
50 std::vector<double> &yeq,
56 std::vector<double> &yeq,
60 std::vector<double> &ymix,
65 const bool doBeta01=
false);
75 double &nCnotFromCO2);
82 streams(std::shared_ptr<Cantera::Solution> csol,
86 const std::vector<double> &_y0,
87 const std::vector<double> &_y1);
std::vector< double > y1
stream mixf=1 composition vector
streams(std::shared_ptr< Cantera::Solution > csol, const double _P, const double _h0, const double _h1, const std::vector< double > &_y0, const std::vector< double > &_y1)
double beta1
mixf = (beta-beta0) / (beta1-beta0)
std::vector< double > getElementMoles(const double *x, double &nOnotFromO2, double &nHnotFromH2O, double &nCnotFromCO2)
double beta0
mixf = (beta-beta0) / (beta1-beta0)
double h1
stream mixf=1 enthalpy (J/kg)
std::vector< double > y0
stream mixf=0 composition vector
int nspc
number of species in gas mechanism
void getEquilibrium_HP(const double mixf, std::vector< double > &yeq, double &heq, double &Teq)
std::vector< double > getElementMoleFracs(const double *y)
double mixfStoic
stoichiometric mixture fraction
std::vector< double > gCHON
gammas, as in beta = sum_i (y_i*gamma_i)
std::vector< double > getElementMassFracs(const double *y)
double h0
stream mixf=0 enthalpy (J/kg)
double getMixtureFraction(const double *y, const bool doBeta01=false)
void getProdOfCompleteComb(const double mixf, std::vector< double > &ypcc, double &hpcc, double &Tpcc)
std::shared_ptr< Cantera::ThermoPhase > gas
void getMixingState(const double mixf, std::vector< double > &ymix, double &hmix, double &Tmix)
void getEquilibrium_TP(const double mixf, double Teq, std::vector< double > &yeq, double &heq)