mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[Input] Fix reference pressure on constant cp thermo created from YAML
Also make 298.15 the default reference temperature
This commit is contained in:
@@ -292,7 +292,8 @@ static SpeciesThermoInterpType* newConstCpThermoFromXML(XML_Node& f)
|
||||
|
||||
void setupConstCp(ConstCpPoly& thermo, const AnyMap& node)
|
||||
{
|
||||
double T0 = node.convert("T0", "K");
|
||||
setupSpeciesThermo(thermo, node);
|
||||
double T0 = node.convert("T0", "K", 298.15);
|
||||
double h0 = node.convert("h0", "J/kmol", 0.0);
|
||||
double s0 = node.convert("s0", "J/kmol/K", 0.0);
|
||||
double cp0 = node.convert("cp0", "J/kmol/K", 0.0);
|
||||
|
||||
Reference in New Issue
Block a user