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 double* z,
const double* x);
73 int getNewGrid(
int n,
const double* z,
int nn,
double* znew);
75 return static_cast<int>(
m_loc.size());
78 bool newPointNeeded(
size_t j) {
81 bool keepPoint(
size_t j) {
82 return (m_keep[j] != -1);
84 double value(
const double* x,
size_t i,
size_t j);
102 map<size_t, int> m_keep;
105 vector<bool> m_active;
106 double m_ratio = 10.0;
107 double m_slope = 0.8;
108 double m_curve = 0.8;
109 double m_prune = -0.001;
110 double m_min_range = 0.01;
113 size_t m_npmax = 1000;
114 double m_thresh = std::sqrt(std::numeric_limits<double>::epsilon());
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.
set< string > m_c
Names of components that require the addition of new grid points.
set< size_t > m_loc
Indices of grid points that need new grid points added after them.
void setMaxPoints(int npmax)
Set the maximum number of points allowed in the domain.
void setCriteria(double ratio=10.0, double slope=0.8, double curve=0.8, double prune=-0.1)
Set grid refinement criteria.
double gridMin() const
Returns the the minimum allowable spacing between adjacent grid points [m].
vector< double > getCriteria()
Get the grid refinement criteria.
double m_gridmin
minimum grid spacing [m]
void setGridMin(double gridmin)
Set the minimum allowable spacing between adjacent grid points [m].
This file contains definitions of constants, types and terms that are used in internal routines and a...
Namespace for the Cantera kernel.