Added 'name' output to HEOS fluid_param_string

This commit is contained in:
Jorrit Wronski
2017-11-22 14:12:35 +01:00
parent 3b40b6f00c
commit a5309a3ecb

View File

@@ -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")){