35 class ElementsFrozen :
public CanteraError
41 :
CanteraError(func,
"Elements cannot be added after species.") {}
137 std::string
id()
const;
141 void setID(std::string
id);
144 std::string
name()
const;
221 doublereal
nAtoms(
size_t k,
size_t m)
const;
227 void getAtoms(
size_t k,
double* atomArray)
const;
277 void saveState(
size_t lenstate, doublereal* state)
const;
286 void restoreState(
size_t lenstate,
const doublereal* state);
321 void setState_TRX(doublereal t, doublereal dens,
const doublereal* x);
335 void setState_TRY(doublereal t, doublereal dens,
const doublereal* y);
349 void setState_TNX(doublereal t, doublereal n,
const doublereal* x);
413 doublereal
size(
size_t k)
const {
517 doublereal
charge(
size_t k)
const;
583 doublereal
mean_X(
const doublereal*
const Q)
const;
589 doublereal
mean_Y(
const doublereal*
const Q)
const;
603 doublereal
sum_xlogQ(doublereal*
const Q)
const;
618 void addElement(
const std::string& symbol, doublereal weight=-12345.0);
636 void addUniqueElement(
const std::string& symbol, doublereal weight=-12345.0,
637 int atomicNumber = 0,
669 doublereal weight,
int atomicNumber,
673 void addSpecies(
const std::string& name,
const doublereal* comp,
674 doublereal
charge = 0.0, doublereal
size = 1.0);
686 doublereal
size = 1.0);
698 virtual bool ready()
const;