mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-23 12:58:03 -05:00
phases is now an enum, added (non-working) critical region VLE solver
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "Backends/Helmholtz/HelmholtzEOSBackend.h"
|
||||
#include "Backends/Incompressible/IncompressibleBackend.h"
|
||||
#include "Backends/Helmholtz/Fluids/FluidLibrary.h"
|
||||
#include "Backends/Tabular/TabularBackends.h"
|
||||
|
||||
namespace CoolProp {
|
||||
|
||||
@@ -46,9 +47,11 @@ AbstractState * AbstractState::factory(const std::string &backend, const std::st
|
||||
{
|
||||
return new IncompressibleBackend(fluid_string);
|
||||
}
|
||||
else if (!backend.compare("BRINE"))
|
||||
else if (backend.find("TTSE&") == 0)
|
||||
{
|
||||
throw ValueError("BRINE backend not yet implemented");
|
||||
// Will throw if there is a problem with this backend
|
||||
shared_ptr<AbstractState> AS(factory(backend.substr(5), fluid_string));
|
||||
return new TTSEBackend(*AS.get());
|
||||
}
|
||||
else if (!backend.compare("TREND"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user