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

Function get_fluid_param_string

src/CoolProp.cpp:1134–1139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1132};
1133#endif
1134std::string get_fluid_param_string(const std::string& FluidName, const std::string& ParamName) {
1135 std::string backend, fluid;
1136 extract_backend(FluidName, backend, fluid);
1137 shared_ptr<CoolProp::AbstractState> AS(CoolProp::AbstractState::factory(backend, fluid));
1138 return AS->fluid_param_string(ParamName);
1139}
1140#if defined(ENABLE_CATCH)
1141TEST_CASE("Check inputs to get_fluid_param_string", "[get_fluid_param_string]") {
1142 const int num_good_inputs = 10;

Calls 3

extract_backendFunction · 0.85
factoryFunction · 0.70
fluid_param_stringMethod · 0.45

Tested by

no test coverage detected