mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-10 22:48:05 -05:00
Added 'name' output to HEOS fluid_param_string
This commit is contained in:
@@ -201,7 +201,10 @@ void HelmholtzEOSMixtureBackend::recalculate_singlephase_phase()
|
||||
std::string HelmholtzEOSMixtureBackend::fluid_param_string(const std::string &ParamName)
|
||||
{
|
||||
CoolProp::CoolPropFluid cpfluid = get_components()[0];
|
||||
if (!ParamName.compare("aliases")){
|
||||
if (!ParamName.compare("name")) {
|
||||
return cpfluid.name;
|
||||
}
|
||||
else if (!ParamName.compare("aliases")){
|
||||
return strjoin(cpfluid.aliases, ", ");
|
||||
}
|
||||
else if (!ParamName.compare("CAS") || !ParamName.compare("CAS_number")){
|
||||
|
||||
Reference in New Issue
Block a user