Commit Graph

172 Commits

Author SHA1 Message Date
Ian Bell
a7ddd80d5a Much more progress on PY flash routines. Only a few edge cases that fail, otherwise all is good
Moved from bounded secant to Brent for stability

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-13 14:26:47 +02:00
Ian Bell
baf5a88a8e Added backup saturation_T routine
It actually has exactly the same form as saturation_p. Interesting.  Possibility for optimization?

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-13 12:16:14 +02:00
Ian Bell
a84edcdb57 Implemented saturation P 1D solver for low pressure for some fluids like n-Propane
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-13 11:24:27 +02:00
Ian Bell
f7c0cb0b06 Relaxed some pressure domain checks and pass state by reference
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-12 23:40:16 +02:00
Ian Bell
acd7f98b74 Fixed typo in PQ_flash
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-12 21:44:05 +02:00
Ian Bell
8f9c6ca438 Added hs_anchor test (passing) and function get_state to allow to get access to states stored in the backends
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-12 21:17:34 +02:00
Ian Bell
e4c8d3f061 Python wrapper is more or less back in action completely. Additional testing is required.
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-12 16:25:33 +02:00
Ian Bell
5726d38975 Bump up max temps for melting lines to make them valid up to the maximum pressure of EOS
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-12 12:02:56 +02:00
Ian Bell
b7bd58d986 More work on flash routines, number of failures is rapidly decreasing - still have problems for low pressure sat_p calcs
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-12 11:21:12 +02:00
Ian Bell
79eca1d58e check both versions of REFPROP on windows always
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-12 08:50:14 +02:00
Ian Bell
ce5d8a919f D(T,P) falls back to Brent if can't get good solution with other solvers
A guaranteed solution if the solution domain made wide enough

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-10 21:39:09 +02:00
Ian Bell
8bd4227f38 Added T for phase determination p calculations 2014-08-10 21:02:15 +02:00
Ian Bell
86641af670 Fixed some errors with two-phase Trho inputs
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-10 20:38:59 +02:00
Ian Bell
36d601490f Lots more work on melting curves, can now make pretty phase diagram for water including the melting line 2014-08-10 19:28:04 +02:00
Ian Bell
7203107b67 Can use pseudo-pure fluids again with REFPROP backend
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-10 16:15:43 +02:00
Ian Bell
c3cc696080 P,Y now works if P > pc
Add supercritical_gas and supercritical_liquid phase flags for a bit finer granularity

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-09 15:10:09 +02:00
Ian Bell
1a6e516eb0 Merge branch 'master' of https://github.com/coolprop/coolprop 2014-08-09 13:59:48 +02:00
Ian Bell
adc207685d First check the empty file extension in REFPROP 2014-08-09 13:57:49 +02:00
Ian Bell
a7f0c8b580 Fixed REFPROP on *nix (forgot to init ierr=0) 2014-08-09 12:57:38 +02:00
Ian Bell
0cb9923b70 More debugging output for TQ inputs with REFPROP for *nix
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-09 12:41:32 +02:00
Ian Bell
801aa61485 Implemented psat_max and Tsat_max for pseudo-pure fluids to close https://github.com/CoolProp/CoolProp/issues/89 2014-08-09 12:17:44 +02:00
Ian Bell
839a697130 added Ancillaries.cpp (oops)
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-09 11:11:55 +02:00
Ian Bell
faf530d588 Fixed melting curves, PY flash works for subcritical cases 2014-08-09 11:07:21 +02:00
Ian Bell
1aec75df85 PY subcrit superheated tests pass
There was a typo in umass() function

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-08 11:26:35 +02:00
Ian Bell
2e38caec17 Fixed TQ function for REFPROP - how did that ever compile before? 2014-08-07 19:43:56 +02:00
Ian Bell
a3bf8790a8 Added pmax_sat and Tmax_sat functions for for HEOS in order to help with saturation limits for flahses
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-07 13:30:44 +02:00
Ian Bell
53c363990f Added tests for P,Y inputs, though the solvers are not done yet
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-07 12:05:22 +02:00
Ian Bell
a5bf52b52f Basic algorithm is working for P,Y for vapor - more checking needed, but basically works
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-07 01:50:09 +02:00
Ian Bell
5dac38ec1a Fixed REFPROP on *nix?
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-06 22:23:50 +02:00
Ian Bell
2c844597c9 Calculate pressure and temperature limits for HEOS and REPFPROP backends
Closes https://github.com/CoolProp/CoolProp/issues/83

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-06 10:23:10 +02:00
Ian Bell
5df9b0fdcf EES wrapper now works/builds/debugs etc. with v5 - much better debugging enabled - see Readme.txt in wrappers/EES
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-05 11:25:37 +02:00
Ian Bell
4ee04bc716 Merge branch 'master' of https://github.com/coolprop/coolprop 2014-08-04 23:10:05 +02:00
Ian Bell
4c36b46789 Step down from 1.0 omega for saturation routines
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-04 23:09:44 +02:00
jowr
69a91f18b1 Fixed tests for incompressible fluids 2014-08-04 19:29:09 +02:00
Ian Bell
046df8efd5 Fixed bug in IncompressibleFluid.cpp
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-04 19:01:44 +02:00
Ian Bell
d5ad1e371b Merge branch 'master' of https://github.com/coolprop/coolprop 2014-08-04 18:58:30 +02:00
Ian Bell
138135f5b7 Added Tmin and Tmax
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-04 18:58:13 +02:00
jowr
d41b51cd5f Added tests to the backend 2014-08-04 18:20:00 +02:00
Ian Bell
1ca9494a1f Broke up incompressible list into pure and solutions for use in Python
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-04 17:34:25 +02:00
Ian Bell
776c13c048 Add incompressible list
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-04 16:31:02 +02:00
Ian Bell
72c9a0bcec long doubles for VLE routines
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-04 15:12:23 +02:00
Ian Bell
ffabfaa144 Updated variable names for incompressible tests to make it clear what the expected value is
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-04 15:11:15 +02:00
Ian Bell
26f1b0f859 Relaxed tolerance on sat_T
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-04 02:04:13 +02:00
Ian Bell
17458261b5 Modifications to saturation routines (work great now)
Including:
adding critical pressure parameter
Adding relaxation parameter for NR sat_T
Only evaluate correction step if not near critical temp
Fixed bug with fluids like "n-Propane" that was getting interpreted as an incompressible fluid

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-03 23:36:22 +02:00
Ian Bell
e9ac0bcc9d python wrapper work
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-03 20:43:42 +02:00
Ian Bell
1715a476e3 Killed some more warnings
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-03 19:14:30 +02:00
Ian Bell
e37a55004b Merge branch 'master' of https://github.com/coolprop/coolprop 2014-08-01 18:53:38 +02:00
jowr
9470f35928 Removed the debug level added the incompressible documentation framework 2014-08-01 17:30:06 +02:00
Ian Bell
f19aa35db4 Merge branch 'master' of https://github.com/coolprop/coolprop 2014-08-01 17:11:59 +02:00
jowr
7fa70b0bee Fixed the mass fractions! 2014-08-01 16:52:16 +02:00