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

@@ -736,7 +736,7 @@ void REFPROPMixtureBackend::calc_phase_envelope(const std::string &type)
if (ierr > 0) { throw ValueError(format("%s",herr).c_str()); }
}
void REFPROPMixtureBackend::update(long input_pair, double value1, double value2)
void REFPROPMixtureBackend::update(CoolProp::input_pairs input_pair, double value1, double value2)
{
double rho_mol_L=_HUGE, rhoLmol_L=_HUGE, rhoVmol_L=_HUGE,
hmol=_HUGE,emol=_HUGE,smol=_HUGE,cvmol=_HUGE,cpmol=_HUGE,

View File

@@ -46,7 +46,7 @@ public:
@param value1 First input value
@param value2 Second input value
*/
void update(long input_pair,
void update(CoolProp::input_pairs,
double value1,
double value2
);