rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
Loading...
Searching...
No Matches
TableLookup.h File Reference

Evaluate a PropertyTable at a state, refusing a state outside its range. More...

#include "numeric/Format.h"
#include "numeric/PropertyTable.h"
#include "numeric/TrialStateError.h"
#include <string>

Go to the source code of this file.

Namespaces

namespace  rizer

Functions

void rizer::throwOutsideTable (const PropertyTable &table, double x, const char *procedure, const std::string &what, const char *unit, const char *remedy)
 Throw the TrialStateError for x outside table.
double rizer::evalAtState (const PropertyTable &table, double x, const char *procedure, const char *what, const char *unit, const char *remedy)
 Value of table at x, refused outside its tabulated range.

Detailed Description

Evaluate a PropertyTable at a state, refusing a state outside its range.

PropertyTable::eval() holds its end value outside the tabulated range, so a run that leaves a table keeps going on a saturated property and reports nothing. The closures evaluate their tables through this instead: a state outside the table is a TrialStateError, so CVODE retries a smaller step, and if the state persists the solve stops naming the table.

Definition in file TableLookup.h.