saturation ancillaries are now exposed through the high-level API

Closes https://github.com/CoolProp/CoolProp/issues/225

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-11-24 13:06:37 -05:00
parent 5cc3518b31
commit 41fc9b1144
4 changed files with 47 additions and 4 deletions

View File

@@ -793,6 +793,17 @@ bool is_valid_fluid_string(std::string &input_fluid_string)
// }
//}
//
double saturation_ancillary(const std::string &fluid_name, const std::string &output, int Q, const std::string &input, double value){
// Generate the state instance
std::vector<std::string> names(1, fluid_name);
shared_ptr<CoolProp::HelmholtzEOSMixtureBackend> HEOS(new CoolProp::HelmholtzEOSMixtureBackend(names));
parameters iInput = get_parameter_index(input);
parameters iOutput = get_parameter_index(output);
return HEOS->saturation_ancillary(iOutput, Q, iInput, value);
}
void set_reference_stateS(std::string Ref, std::string reference_state)
{
shared_ptr<CoolProp::HelmholtzEOSMixtureBackend> HEOS;