Commit Graph

677 Commits

Author SHA1 Message Date
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
Ian Bell
233de91417 Merge branch 'master' of https://github.com/coolprop/coolprop 2015-01-26 19:00:25 -07:00
Ian Bell
29bd12f94d Add humid air properties back to the SWIG wrapper; Closes #430
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-26 18:59:46 -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
4ebe23ed95 Comment out the HAPropsSI code consistency test
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-19 17:28:54 -07:00
Ian Bell
de2105fafb Add tests for HAPropsSI
Also, if an output is the same as the input, return the input directly

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-19 16:34:24 -07: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
df9bd25145 Evidently I did not commit the changes to HAPropsSI. Oops.
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-15 19:55:19 -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
0bb60b6ed9 Refactored HAPropsSI to handle better weird inputs
Closes #400
Closes #398
Closes #403

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-12 23:38:29 -07:00
Ian Bell
5208b32995 Fixed bug with different output for different order of inputs to HAPropsSI; Closes #399
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-12 21:58:40 -07:00
Ian Bell
12db11cbde Merge branch 'master' into HaPropsSI_bugs 2015-01-12 21:49:29 -07: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
02987937ef Clean up HAPropsSI
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-11 20:07:57 -07:00
Ian Bell
f7cb65305a Fix bug with humid air properties; Closes #389
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-07 14:02:34 -07:00
Ian Bell
082f365416 If all outputs are trivial, never do a state update in internal routines; closes #395
Added Catch test for this configuration

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-07 13:28:21 -07:00
Ian Bell
2ea0bb020d Merge branch 'master' of https://github.com/coolprop/coolprop
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-07 13:09:33 -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
Jorrit Wronski
5ff28fc302 Clears the cached transport properties and fixes #394 2015-01-07 12:16:00 +01:00
Ian Bell
ea3686abdb Changes to CoolProp.cpp were missed in prior commit
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-31 20:32:22 -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
281704e5eb If one input and one output to PropsSI, bubble error cleanly; closes #375 2014-12-31 13:14:25 -05:00
Ian Bell
6dd8399436 Fix error message for Brent's method when it doesn't get a solution 2014-12-31 12:30:25 -05:00
Ian Bell
6cc81601ac Fix tests for parameters
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 22:11:58 -05:00
Ian Bell
413078cf00 Throw an error if no successful outputs from _PropsSI_outputs
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 22:11:34 -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
f5de4d363f Fixed initialization to remove copy and remove allocation error
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 20:38:49 -05:00
Ian Bell
f8576b1d49 PropsSImulti is integrated into Python wrapper; extract_fractions is exported
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 20:08:35 -05:00
Ian Bell
f3fe64b486 Make the datastructures test pass
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 18:55:26 -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
04af215f52 Fix fraction formatting in PropsSI error message
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 17:20:29 -05:00
Ian Bell
f4a960abdc Undefine min and max macros. Thanks for nothing MS
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 17:05:12 -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
9c05e93fd6 Refactor AbstractState::factory to take vector of strings
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 16:06:07 -05:00
Ian Bell
323eed808c Merge branch 'master' into vectorize_PropsSI 2014-12-30 14:32:11 -05:00
Ian Bell
3717f9ba72 Update the step for NR properly
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-27 12:26:09 -05:00
Ian Bell
287208b972 Use numerical differentiation by default to build the Jacobian for Newton ND
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-27 12:22:56 -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
2285e3b8c9 Removed some more functions
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-26 22:23:01 -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