656 Commits

Author SHA1 Message Date
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
Ian Bell
c9ad1f7e59 Removed unneeded overloads of PropsSI function, leaving only PropsSI and PropsSImulti
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-26 01:45:03 -05:00
Ian Bell
a40fee3bbe Add PropsSImulti which allows for vectorization of input values and output keys
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-26 00:28:21 -05:00
Ian Bell
7deaf1ad8e Dmass is now a valid input to get_dT_drho_second_derivatives
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-24 14:23:18 -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
1310af00bd Allow access to gas constant through PropsSI/Props1SI; Closes #366
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-22 15:30:17 -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
Ian Bell
132b0ab5dd Fix RPVersion function call again
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-19 17:20:36 -06:00
Jorrit Wronski
c945055ec6 Merge branch 'develop' 2014-12-19 11:33:16 +01:00
Jorrit Wronski
ae36828ea1 Fixed the header handling, closes #362 and partly covers the issues named in #354. 2014-12-19 11:31:21 +01:00
Jorrit Wronski
2e4341c6d9 Merge branch 'develop' into feature/REFPROP-headers 2014-12-19 10:22:39 +01:00
Ian Bell
cbad60e752 Pseudo-pure throw error properly if T > Tmaxsat; Closes #308
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-18 20:24:09 -06:00
Ian Bell
f86952109b Implement calc_melting_line for incompressibles; closes #347
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-18 20:05:16 -06:00
Ian Bell
d064baf230 Fix bug with PhaseSI function (at DLL level) taking Output parameter as first parameter
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-18 18:18:45 -06:00
Ian Bell
6f245cfd4d Increase length of string passed to RPversion function
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-18 16:31:36 -06:00
Ian Bell
9bc5a78d97 Merge branch 'master' into asan_rpversion 2014-12-18 16:10:31 -06:00
Ian Bell
71e59e3410 Disable the clearing of FPU exceptions on platforms that do not support it
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-18 16:03:27 -06:00
Ian Bell
b4e8dad1f3 On gcc/clang, always turn on FPU clearing; See #353
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-18 15:16:19 -06:00
Ian Bell
c1b193fc5a hide some more enums, but only to MATLAB
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-18 10:16:30 -06:00
Ian Bell
e2230c00c0 ignore some more enums in SWIG
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-18 10:12:42 -06:00
Ian Bell
ecfa3227ea Hide some enums to get MSVC to compile the MATLAB wrapper
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-18 10:01:49 -06:00
Jorrit Wronski
a1d2a2a9be Added the external REFPROP header and removed the constants from the cpp file, replaced tabs with 4 spaces 2014-12-18 11:28:23 +01:00