37 doublereal slope = 0.8,
38 doublereal curve = 0.8,
39 doublereal prune = -0.1);
44 return {m_ratio, m_slope, m_curve, m_prune};
47 void setActive(
int comp,
bool state =
true) {
48 m_active[comp] = state;
72 int analyze(
size_t n,
const doublereal* z,
const doublereal* x);
73 int getNewGrid(
int n,
const doublereal* z,
int nn, doublereal* znew);
75 return static_cast<int>(m_loc.size());
78 bool newPointNeeded(
size_t j) {
79 return m_loc.find(j) != m_loc.end();
81 bool keepPoint(
size_t j) {
82 return (m_keep[j] != -1);
84 double value(
const double* x,
size_t i,
size_t j);
100 std::map<size_t, int> m_loc;
101 std::map<size_t, int> m_keep;
102 std::map<std::string, int> m_c;
103 std::vector<bool> m_active;
104 doublereal m_ratio, m_slope, m_curve, m_prune;
105 doublereal m_min_range;
107 size_t m_nv, m_npmax;
Base class for one-dimensional domains.
Refine Domain1D grids so that profiles satisfy adaptation tolerances.
size_t maxPoints() const
Returns the maximum number of points allowed in the domain.
vector_fp getCriteria()
Get the grid refinement criteria.
void setMaxPoints(int npmax)
Set the maximum number of points allowed in the domain.
doublereal m_gridmin
minimum grid spacing [m]
double gridMin() const
Returns the the minimum allowable spacing between adjacent grid points [m].
void setCriteria(doublereal ratio=10.0, doublereal slope=0.8, doublereal curve=0.8, doublereal prune=-0.1)
Set grid refinement criteria.
void setGridMin(double gridmin)
Set the minimum allowable spacing between adjacent grid points [m].
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
Namespace for the Cantera kernel.