30#ifndef RIZER_THERMAL_PLASMA_COLUMN_1D_H
31#define RIZER_THERMAL_PLASMA_COLUMN_1D_H
46 double electric_field,
double T_wall,
49 double T_center_guess,
53 std::string
domainType()
const override {
return "thermal-plasma-column"; }
77 bool checkAlias =
true)
const override;
79 bool checkAlias =
true)
const override;
83 void getValues(
const std::string& component,
89 double initialValue(std::size_t n, std::size_t j)
override;
99 double radius()
const {
return m_R; }
102 double sigmaAt(
double T)
const {
return m_sigma.eval(T); }
103 double kappaAt(
double T)
const {
return m_kappa.eval(T); }
104 double pRadAt(
double T)
const {
return m_prad.eval(T); }
vector< double > values(const string &component) const
std::string componentName(std::size_t n) const override
std::size_t componentIndex(const std::string &name, bool checkAlias=true) const override
double initialValue(std::size_t n, std::size_t j) override
Initial guess for component n at grid point j.
double kappaAt(double T) const
double pRadAt(double T) const
std::string domainType() const override
void getValues(const std::string &component, Cantera::span< double > values) const override
Copy converged temperatures from the shared global solution vector.
double sigmaAt(double T) const
Property look-ups at a given temperature, for post-processing.
bool hasComponent(const std::string &name, bool checkAlias=true) const override
void setElectricField(double E)
Change the electric field without rebuilding the domain (used by the Python-side secant iteration for...
void eval(std::size_t jg, Cantera::span< const double > xg, Cantera::span< double > rg, Cantera::span< int > maskg, double rdt) override
Evaluate the residual function at point jg.
ThermalPlasmaColumn1D(double R, std::size_t npoints, double electric_field, double T_wall, PropertyTable sigma, PropertyTable kappa, PropertyTable p_rad, double T_center_guess, double rho_cp, PropertyTable init_profile=PropertyTable())
double electricField() const
void resetBadValues(Cantera::span< double > xg) override
Clamp any out-of-bound temperatures after a failed Newton step to keep the solve from wandering into ...