16 #include "cantera/thermo/mix_defs.h"
58 "Couldn't find phase name in file:" +
id);
62 std::string model = th[
"model"];
63 if (model !=
"StoichSubstance" && model !=
"StoichSubstanceSSTP" && model !=
"FixedChemPot") {
65 "thermo model attribute must be FixedChemPot or StoichSubstance");
80 std::string idxml = xmlphase[
"id"];
87 std::string model = th[
"model"];
88 if (model !=
"StoichSubstance" && model !=
"StoichSubstanceSSTP" && model !=
"FixedChemPotSSTP") {
90 "thermo model attribute must be StoichSubstance or FixedChemPot");
94 if (model ==
"StoichSubstance" || model ==
"StoichSubstanceSSTP") {
105 std::string pname = Ename +
"Fixed";
132 std::string aaS = Ename +
":1";
133 s->addChild(
"atomArray", aaS);
134 XML_Node& tt = s->addChild(
"thermo");
135 XML_Node& ss = tt.addChild(
"Simple");
139 ss.addChild(
"t0",
"298.15");
140 ss.addChild(
"cp0",
"0.0");
141 std::string sval =
fp2str(val);
142 ss.addChild(
"h", sval);
143 ss.addChild(
"s",
"0.0");
167 if (&right !=
this) {
328 for (
int i = 0; i < 6; i++) {
507 if (!phaseNode.
hasChild(
"thermo")) {
508 throw CanteraError(
"FixedChemPotSSTP::initThermoXML",
"no thermo XML node");
511 std::string model = tnode[
"model"];
512 if (model !=
"StoichSubstance" && model !=
"FixedChemPot" && model !=
"StoichSubstanceSSTP") {
514 "thermo model attribute must be FixedChemPot or StoichSubstance or StoichSubstanceSSTP");
516 if (model ==
"FixedChemPot") {
553 std::string model = eosdata[
"model"];
554 if (model !=
"StoichSubstance" && model !=
"FixedChemPot" && model !=
"StoichSubstanceSSTP") {
555 throw CanteraError(
"FixedChemPotSSTP::setParametersFromXML",
556 "thermo model attribute must be FixedChemPot or StoichSubstance or StoichSubstanceSSTP");
558 if (model ==
"FixedChemPotSSTP") {