Predefined mixtures are added, can be accessed with a fluid name like R410A.mix

Closes https://github.com/CoolProp/CoolProp/issues/153

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-10-02 09:57:01 +02:00
parent 2aec8babf4
commit 70f737c55d
6 changed files with 1151 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ AbstractState * AbstractState::factory(const std::string &backend, const std::st
if (!backend.compare("HEOS"))
{
if (fluid_string.find('&') == std::string::npos){
return new HelmholtzEOSBackend(&get_fluid(fluid_string));
return new HelmholtzEOSBackend(fluid_string);
}
else{
// Split at the '&'