Example #1
0
void EdgePhase::setParametersFromXML(const XML_Node& eosdata)
{
    eosdata._require("model","Edge");
    doublereal n = getFloat(eosdata, "site_density", "toSI");
    if (n <= 0.0)
        throw CanteraError("EdgePhase::setParametersFromXML",
                           "missing or negative site density");
    m_n0 = n;
    m_logn0 = log(m_n0);
}
Example #2
0
 void LatticeSolidPhase::setParametersFromXML(const XML_Node& eosdata) {
     eosdata._require("model","LatticeSolid");
     XML_Node& la = eosdata.child("LatticeArray");
     vector<XML_Node*> lattices;
     la.getChildren("phase",lattices);
     int n;
     int nl = lattices.size();
     m_nlattice = nl;
     for (n = 0; n < nl; n++) {
         XML_Node& i = *lattices[n];
         m_lattice.push_back((LatticePhase*)newPhase(i));
     }
 }
Example #3
0
void WaterSSTP::setParametersFromXML(const XML_Node& eosdata)
{
    eosdata._require("model","PureLiquidWater");
}
void LatticePhase::setParametersFromXML(const XML_Node& eosdata)
{
    eosdata._require("model", "Lattice");
    m_site_density = getFloat(eosdata, "site_density", "toSI");
    m_vacancy = getChildValue(eosdata, "vacancy_species");
}
Example #5
0
 void ConstDensityThermo::setParametersFromXML(const XML_Node& eosdata) {
     eosdata._require("model","Incompressible");
     doublereal rho = getFloat(eosdata, "density", "toSI");
     setDensity(rho);
 }
Example #6
0
void StoichSubstance::setParametersFromXML(const XML_Node& eosdata)
{
    eosdata._require("model","StoichSubstance");
    doublereal rho = getFloat(eosdata, "density", "toSI");
    setDensity(rho);
}