Commit Graph

437 Commits

Author SHA1 Message Date
Jorrit Wronski
5ae43f32a9 Minor adjustments in Python plots and snippet that fixes #482 2015-02-21 18:09:32 +01:00
Jorrit Wronski
49a609ebcc Added more tests for the incompressible backend 2015-02-11 15:18:47 +01:00
Jorrit Wronski
2ad7381f2c Normal update does not change the reference state 2015-02-11 14:52:19 +01:00
Jorrit Wronski
9738503e0c Moved reference state from fluid to state object, incompressibles do internal caching now. 2015-02-11 14:48:04 +01:00
Ian Bell
f2b31faffc Fail appropriately when two-phase inputs are given for pseudo-pure; Closes #459
Fix is_pure() function

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-10 18:55:24 -07:00
Ian Bell
102e2a8cb4 Merge branch 'master' of https://github.com/coolprop/coolprop 2015-02-10 18:04:15 -07:00
Ian Bell
8ae3205f68 Fixed bug with getting output quality for REFPROP flashes; Closes #460
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-10 18:03:39 -07:00
Jorrit Wronski
de5d7a46f0 Fixed tests and docs to handle #454 properly 2015-02-10 17:52:34 +01:00
Jorrit Wronski
c9c29eadd1 Added partial derivatives for incompressible fluids. Tests need to be updated and the docs are outdated... 2015-02-10 16:43:29 +01:00
Ian Bell
a02d973aad Mixtures can have two zero mole fractions; Closes #452
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-09 21:16:02 -07:00
Ian Bell
e8b02d48a6 REFPROP abstract state classes work properly again; Closes #431
Probably quite a bit slower since it always has to check if fluid is the same as the one loaded in REFPROP

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-09 19:30:12 -07:00
Ian Bell
d7bb83d8ae More useful error message when conformal state solver fails for some reason; Closes #450
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-09 18:28:25 -07:00
Ian Bell
183868dee2 Implement acentric factor through AbstractState and Props1SI; closes #448
Fix all instances of accentric->acentric in fluid files and codebase.

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-03 17:37:53 -05:00
Ian Bell
62808e6434 Check REFPROP trivial inputs; Closes #409
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-02 20:31:04 -05:00
Ian Bell
6c1e1ca1c0 Merge branch 'master' of https://github.com/coolprop/coolprop 2015-02-02 14:01:41 -05:00
Ian Bell
23912165fc Added highly approximate methods for conductivity and viscosity for mixtures; Closes #307
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-02 14:01:12 -05:00
Ian Bell
2a7165f9af Remove some stdout for splines
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-02 13:23:56 -05:00
Ian Bell
f9223dd30d Merge branch 'master' into two_phase_derivatives_and_splines 2015-02-02 12:23:12 -05:00
Ian Bell
3886850095 Use updated VLE values; Progress on #434
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-30 12:45:45 -06:00
Ian Bell
f5739e3354 Fixed bug with 3 character long fluid names
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-28 19:34:04 -07:00
Ian Bell
575643938c Fix predefined mixtures in REFPROP; Closes #437
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-28 18:52:18 -07:00
Jorrit Wronski
792c466c3d I hope this is the last commit to fix #429 and to fix #413 2015-01-27 20:44:05 +01:00
Ian Bell
f39763f056 Do not require fluid files to be in c:\Program Files\REFPROP on windows; Closes #428
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-26 19:30:17 -07:00
Jorrit Wronski
33d9e2e833 More stupid mistakes in the incompressibles fixed, thanks to Luke Erickson for reporting #429, which is fixed now. 2015-01-26 22:00:41 +01:00
Jorrit Wronski
9ac0426f9a Added a default concentration of 0.0 for incomperssible pure fluids. 2015-01-20 18:41:15 +01:00
Jorrit Wronski
2a325ab6e6 still issues with #413 2015-01-20 12:36:26 +01:00
Jorrit Wronski
104175dfa1 Trying to fix #413 2015-01-20 11:01:34 +01:00
Ian Bell
9140325926 Merge branch 'master' of https://github.com/coolprop/coolprop
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-15 20:04:43 -07:00
Ian Bell
41982f7e63 Phase envelope should only be able to build for pure fluids; closes #410
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-15 19:53:49 -07:00
Jorrit Wronski
3102ec9656 Fixes #406 , just a typo. 2015-01-15 17:54:57 +01:00
Ian Bell
d1ca808ca7 Fixed weird bug with long<0 in REFPROP wrapper; Closes #401 2015-01-13 04:55:40 +01:00
Ian Bell
6d004a90a8 Fixed bug in REFPROP debug output
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-12 19:35:54 -07:00
Ian Bell
658f467e26 More debug for fluid loading
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-12 19:20:17 -07:00
Ian Bell
bdd46a3f4c Some work on derivatives, drho/dp|h doesn't seem to work
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-07 20:18:02 -07:00
Ian Bell
e8b7c7da8e Merge branch 'master' into two_phase_derivatives_and_splines 2015-01-07 15:41:59 -07:00
Ian Bell
fe48c7e403 Fixed bugs with bad departure function names and better error message; Closes #396
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-07 13:05:39 -07:00
Ian Bell
ad978bf294 Expose second derivatives through AbstractState and add test (passes)
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-04 00:34:45 -05:00
Ian Bell
9e5c3d6035 Preliminary work on two-phase derivatives and splines
Added two-phase derivative, works!
Spline for drho/dh|p works
Spline for drho/dh|p NOT WORKING

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-01 22:58:05 -05:00
Ian Bell
be0e9aafbb Better initialization error message
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-31 20:29:07 -05:00
Ian Bell
50b611bd4a Move predefined mixture parsing to HelmholtzEOS initializer function; Closes #373
Renamed functions for Helmholtz backend for getting const or non-const reference to mole fractions

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-31 18:06:12 -05:00
Ian Bell
b99d868f36 Repaired failing incompressible tests - string parsing had to be repaired
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 21:42:57 -05:00
Ian Bell
23bdb6d979 Fixed broken incompressible tests
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 17:34:07 -05:00
Ian Bell
6b601adb10 PropsSImulti takes vector of strings as inputs
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 16:07:19 -05:00
Ian Bell
323eed808c Merge branch 'master' into vectorize_PropsSI 2014-12-30 14:32:11 -05:00
Ian Bell
b0ecf02491 One more bug to squash with saturated state
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-26 23:00:39 -05:00
Ian Bell
6c7c658226 Clean up handling of saturated states
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-26 22:55:01 -05:00
Ian Bell
a8375c3912 Added saturated_liquid_keyed_output and saturated_vapor_keyed_output functions to get access to internals for saturation state
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-26 22:24:25 -05:00
Ian Bell
1658fac547 Fix incompressible tests for removed PropsSI overloads
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-26 22:21:02 -05:00
Ian Bell
db24acf6c7 For pure fluids, QT_flash always yields the mean saturation pressure; Closes #364
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-24 12:15:31 -05:00
Ian Bell
884a3ff8ff Implemented second saturation derivatives with respect to p; Closes #238
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-19 17:39:47 -06:00