MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / process_fluid_state

Function process_fluid_state

src/CoolPropPlot.cpp:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58inline std::shared_ptr<CoolProp::AbstractState> process_fluid_state(const std::string& fluid_ref) {
59 std::string backend;
60 std::string fluids;
61 CoolProp::extract_backend(fluid_ref, backend, fluids);
62 std::vector<double> fractions;
63 fluids = CoolProp::extract_fractions(fluids, fractions);
64
65 return std::shared_ptr<CoolProp::AbstractState>(CoolProp::AbstractState::factory(backend, fluids));
66}
67
68std::shared_ptr<CoolProp::AbstractState> get_critical_point(const std::shared_ptr<CoolProp::AbstractState>& state) {
69 CoolProp::CriticalState crit_state;

Callers 1

PropertyPlotMethod · 0.70

Calls 3

extract_backendFunction · 0.85
extract_fractionsFunction · 0.85
factoryFunction · 0.70

Tested by

no test coverage detected