mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-02-09 05:15:45 -05:00
Added REFPROP names for all fluids - renovated get_fluid_param_string
This commit is contained in:
@@ -791,6 +791,12 @@ public:
|
||||
fluid.name = fluid_json["NAME"].GetString(); name_vector.push_back(fluid.name);
|
||||
// CAS number
|
||||
fluid.CAS = fluid_json["CAS"].GetString();
|
||||
if (!fluid_json.HasMember("REFPROP_NAME"))
|
||||
{
|
||||
std::cout << fluid.name << std::endl;
|
||||
}
|
||||
// REFPROP alias
|
||||
fluid.REFPROPname = fluid_json["REFPROP_NAME"].GetString();
|
||||
// Critical state
|
||||
parse_crit_state(fluid_json["CRITICAL"], fluid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user