Implemented PQ for pseudo-pure to close https://github.com/CoolProp/CoolProp/issues/92

* As a consequence, made update function take CoolProp::input_pairs enum as first input (thanks @jowr for the idea)
* Decoupled the pre_update and post_update functions in order to allow for more creative update functions using guess values, etc.

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-08-20 21:44:13 +02:00
parent 1fea8bed8c
commit 0dcdf7ef5d
13 changed files with 78 additions and 29 deletions

View File

@@ -386,7 +386,7 @@ double _PropsSI(const std::string &Output, const std::string &Name1, double Prop
}
// Obtain the input pair
long pair = generate_update_pair(iName1, Prop1, iName2, Prop2, x1, x2);
CoolProp::input_pairs pair = generate_update_pair(iName1, Prop1, iName2, Prop2, x1, x2);
// Update the state
State->update(pair, x1, x2);