Commit Graph

10 Commits

Author SHA1 Message Date
Ian Bell
86f52bdf4e Phase Envelope calculations now include Tsat_max and psat_max, along with indices thereof.
The Tsat_max and psat_max values are calculated using exact solution based on finding dT/dP and dp/dT equaling zero by a 1D solution in rhov.

See also https://github.com/CoolProp/CoolProp/issues/133

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-10 15:17:19 +02:00
Ian Bell
af03189c5b Fixed a lot of little things to get multi-component phase envelopes to build.
Testing of mixture derivatives entirely refactored - much cleaner

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-07 21:56:34 +02:00
Ian Bell
295f963a45 Phase envelope construction is working - some edge cases to deal with, but looking good overall
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-07 15:18:20 +02:00
Ian Bell
e9297e8dc5 Calculate enthalpy and entropy as part of phase envelope
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-06 19:56:54 +02:00
Ian Bell
46135f69b6 Broke up the critical determination term for easier debugging
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-06 19:03:02 +02:00
Ian Bell
b8b4187d49 Interpolation for phase envelopes is based on *new* value for rhomolar_vap - much better
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-06 18:27:05 +02:00
Ian Bell
354c924ca6 Excess is header only completion
Fixed bug with init of Q for phase envelope construction

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-06 16:10:12 +02:00
Ian Bell
8fdd1fddaf Refactor of mixing parameters successful
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-06 15:41:33 +02:00
Ian Bell
f7d639db51 Phase envelope construction working now for Ethane/Propane for a range of mole fractions
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-05 12:03:52 +01:00
Ian Bell
905fec810d Phase envelope code and data structures set up
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-05 10:09:36 +01:00