mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
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:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user