| 56 | } |
| 57 | |
| 58 | inline 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 | |
| 68 | std::shared_ptr<CoolProp::AbstractState> get_critical_point(const std::shared_ptr<CoolProp::AbstractState>& state) { |
| 69 | CoolProp::CriticalState crit_state; |
no test coverage detected