16 #include "cantera/thermo/mix_defs.h"
54 throw CanteraError(
"StoichSubstanceSSTP::StoichSubstanceSSTP",
55 "Couldn't find phase name in file:" +
id);
59 std::string model = th[
"model"];
60 if (model !=
"StoichSubstance" && model !=
"StoichSubstanceSSTP") {
61 throw CanteraError(
"StoichSubstanceSSTP::StoichSubstanceSSTP",
62 "thermo model attribute must be StoichSubstance");
76 std::string idxml = xmlphase[
"id"];
78 throw CanteraError(
"StoichSubstanceSSTP::StoichSubstanceSSTP",
83 std::string model = th[
"model"];
84 if (model !=
"StoichSubstance" && model !=
"StoichSubstanceSSTP") {
85 throw CanteraError(
"StoichSubstanceSSTP::StoichSubstanceSSTP",
86 "thermo model attribute must be StoichSubstance");
108 if (&right !=
this) {
147 return cStoichSubstance;
267 for (
int i = 0; i < 6; i++) {
314 hrt[0] += presCorrect / RT;
420 "stoichiometric substances may only contain one species.");
454 if (!phaseNode.
hasChild(
"thermo")) {
455 throw CanteraError(
"StoichSubstanceSSTP::initThermoXML",
456 "no thermo XML node");
473 doublereal rho = c[0];
505 std::string model = eosdata[
"model"];
506 if (model !=
"StoichSubstance" && model !=
"StoichSubstanceSSTP") {
507 throw CanteraError(
"StoichSubstanceSSTP::setParametersFromXML",
508 "thermo model attribute must be StoichSubstance");
542 throw CanteraError(
"electrodeElectron::electrodeElectron",
543 "Couldn't find phase name in file:" +
id);
547 std::string model = th[
"model"];
548 if (model !=
"electrodeElectron") {
549 throw CanteraError(
"electrodeElectron::electrodeElectron",
550 "thermo model attribute must be electrodeElectron");
564 std::string idxml = xmlphase[
"id"];
566 throw CanteraError(
"electrodeElectron::electrodeElectron",
571 std::string model = th[
"model"];
572 if (model !=
"electrodeElectron") {
573 throw CanteraError(
"electrodeElectron::electrodeElectron",
574 "thermo model attribute must be electrodeElectron");
596 if (&right !=
this) {
612 std::string model = eosdata[
"model"];
613 if (model !=
"electrodeElectron") {
614 throw CanteraError(
"electrodeElectron::setParametersFromXML",
615 "thermo model attribute must be electrodeElectron");
621 doublereal rho = 10.0;
628 doublereal rho = 10.0;