32 StFlow(shared_ptr<ThermoPhase> th,
size_t nsp = 1,
size_t points = 1);
39 StFlow(shared_ptr<Solution> sol,
const string&
id=
"",
size_t points=1);
41 void eval(
size_t j,
double* x,
double* r, integer* mask,
double rdt)
override;
46 void evalContinuity(
size_t j,
double* x,
double* r,
int* diag,
double rdt)
override;
49 double wdot(
size_t k,
size_t j)
const {
61 virtual void evalResidual(
double* x,
double* rsd,
int* diag,
62 double rdt,
size_t jmin,
size_t jmax);
This class represents 1D flow domains that satisfy the one-dimensional similarity solution for chemic...
Kinetics * m_kin
Kinetics object used for calculating species production rates.
void setGas(const double *x, size_t j)
Set the gas object state to be consistent with the solution at point j.
Array2D m_wdot
Array of size m_nsp by m_points for saving species production rates.
virtual void getNetProductionRates(double *wdot)
Species net production rates [kmol/m^3/s or kmol/m^2/s].
This class represents 1D flow domains that satisfy the one-dimensional similarity solution for chemic...
virtual void evalResidual(double *x, double *rsd, int *diag, double rdt, size_t jmin, size_t jmax)
Evaluate the residual function.
virtual void evalRightBoundary(double *x, double *res, int *diag, double rdt)
Evaluate all residual components at the right boundary.
void evalContinuity(size_t j, double *x, double *r, int *diag, double rdt) override
Alternate version of evalContinuity with legacy signature.
void eval(size_t j, double *x, double *r, integer *mask, double rdt) override
Evaluate the residual functions for axisymmetric stagnation flow.
void getWdot(double *x, size_t j)
Write the net production rates at point j into array m_wdot
Base class for a phase with thermodynamic properties.
Namespace for the Cantera kernel.