Helmholtz backend can take name directly as string

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-09-10 10:13:22 +02:00
parent 4acec3807b
commit 95d402d635

View File

@@ -10,6 +10,7 @@
#include <vector>
#include "HelmholtzEOSMixtureBackend.h"
#include "Fluids/FluidLibrary.h"
namespace CoolProp {
@@ -17,6 +18,7 @@ class HelmholtzEOSBackend : public HelmholtzEOSMixtureBackend {
public:
HelmholtzEOSBackend();
HelmholtzEOSBackend(CoolPropFluid *pFluid){set_components(std::vector<CoolPropFluid*>(1,pFluid));};
HelmholtzEOSBackend(const std::string &name){set_components(std::vector<CoolPropFluid*>(1,&(get_library().get(name))));};
virtual ~HelmholtzEOSBackend(){};
};