mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-02-02 09:55:27 -05:00
Fix problem with pmin
Closes https://github.com/CoolProp/CoolProp/issues/189 Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -172,6 +172,9 @@ double AbstractState::trivial_keyed_output(int key)
|
||||
return Tmax();
|
||||
case iP_max:
|
||||
return pmax();
|
||||
case iP_min:
|
||||
case iP_triple:
|
||||
return this->p_triple();
|
||||
case iT_reducing:
|
||||
return get_reducing_state().T;
|
||||
case irhomolar_reducing:
|
||||
@@ -184,8 +187,7 @@ double AbstractState::trivial_keyed_output(int key)
|
||||
return this->rhomolar_critical();
|
||||
case irhomass_critical:
|
||||
return this->rhomolar_critical()*molar_mass();
|
||||
case iP_triple:
|
||||
return this->p_triple();
|
||||
|
||||
default:
|
||||
throw ValueError(format("This input [%d: \"%s\"] is not valid for trivial_keyed_output",key,get_parameter_information(key,"short").c_str()));
|
||||
}
|
||||
|
||||
@@ -126,6 +126,7 @@ public:
|
||||
index_map.insert(std::pair<std::string, int>("Tmin", iT_min));
|
||||
index_map.insert(std::pair<std::string, int>("Tmax", iT_max));
|
||||
index_map.insert(std::pair<std::string, int>("pmax", iP_max));
|
||||
index_map.insert(std::pair<std::string, int>("pmin", iP_min));
|
||||
index_map.insert(std::pair<std::string, int>("molemass", imolar_mass));
|
||||
index_map.insert(std::pair<std::string, int>("A", ispeed_sound));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user