mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Set the departure function in both ij and ji pairs
This commit is contained in:
@@ -315,6 +315,7 @@ double HelmholtzEOSMixtureBackend::get_binary_interaction_double(const std::size
|
||||
void HelmholtzEOSMixtureBackend::set_binary_interaction_string(const std::size_t i, const std::size_t j, const std::string ¶meter, const std::string & value){
|
||||
if (parameter == "function"){
|
||||
residual_helmholtz->Excess.DepartureFunctionMatrix[i][j].reset(get_departure_function(value));
|
||||
residual_helmholtz->Excess.DepartureFunctionMatrix[j][i].reset(get_departure_function(value));
|
||||
}
|
||||
else{
|
||||
throw ValueError(format("Cannot process this string parameter [%s] in set_binary_interaction_string", parameter.c_str()));
|
||||
|
||||
Reference in New Issue
Block a user