Commit Graph

80 Commits

Author SHA1 Message Date
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
281704e5eb If one input and one output to PropsSI, bubble error cleanly; closes #375 2014-12-31 13:14:25 -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
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
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
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
0cb02a3e2f Predefined mixtures working in PropsSI now
Added Catch test

``` python
In [1]: import CoolProp

In [2]: CoolProp.CoolProp.PropsSI('D','P',101325,'T',300,'Air.mix')
Out[2]: 1.1766975266680577
```

Closes https://github.com/CoolProp/CoolProp/issues/287

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-05 11:24:29 -05:00
Ian Bell
32ccb78250 Disable internal error catching and allow swig to do the error catching itself
See https://github.com/CoolProp/CoolProp/issues/282

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-04 17:00:54 -05:00
Ian Bell
8e6b5a7f2b Change the logic of DEF and RESET for set_reference_stateS; RESET removes entirely all the offset terms
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-29 22:18:01 -05:00
Ian Bell
93e5275100 Fixed bug with derivative not being handled properly to _PropsSI
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-28 22:57:58 -05:00
Ian Bell
fab9811c5c Can get long name from the incompressible fluid
Something like

rr = get_fluid_param_string("INCOMP::MEG","long_name");

Closes https://github.com/CoolProp/CoolProp/issues/244

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-26 16:41:00 -05:00
Ian Bell
a12b944a22 Melting line bibtex can be obtained again
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-24 14:40:59 -05:00
Ian Bell
ec06d7c2cc clean up CoolProp.cpp
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-24 13:20:28 -05:00
Ian Bell
41fc9b1144 saturation ancillaries are now exposed through the high-level API
Closes https://github.com/CoolProp/CoolProp/issues/225

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-24 13:06:37 -05:00
Ian Bell
71a5944f51 Added tests for global and fluid params
Closes https://github.com/CoolProp/CoolProp/issues/239

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-24 12:28:29 -05:00
Ian Bell
7963560858 Throw an error if input sizes are not the same for PropsSI
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-24 00:27:34 -05:00
Ian Bell
cf6f2f0c22 Add T_freeze as an output for incompressibles
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-23 20:43:50 -05:00
Ian Bell
be78b4b22f Fixed missing trivial parameters to Props1SI
Closes https://github.com/CoolProp/CoolProp/issues/223

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-20 14:19:48 -05:00
Ian Bell
5c3d31d011 Add function to check if fluid name is valid
Closes https://github.com/CoolProp/CoolProp/issues/204

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-20 13:31:47 -05:00
Ian Bell
09bdf671c7 Added generate_update_pair function to python
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-19 13:21:08 -05:00
Ian Bell
8327d54ea2 Replaced all tabs with spaces (finally) in C++ files
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-19 12:16:14 -05:00
Ian Bell
70e9e14226 Exported set_reference_stateD through the library
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-27 20:17:38 -04:00
Ian Bell
67bf8f528b Re-implemented set_reference_stateD
Closes https://github.com/CoolProp/CoolProp/issues/190

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-27 20:10:03 -04:00
Ian Bell
cfcd50bffc Fixed evaluation AT the critical point
Closes https://github.com/CoolProp/CoolProp/issues/178

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-16 00:12:46 +02:00
Ian Bell
c50ca39238 Flush error message in Props1SI if first call is backwards but second is good
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-14 15:22:38 +02:00
Ian Bell
199ced3f86 Implemented Phase output again
Added PhaseSI function which will return phase for given input - exposed to DLL
PropsSI can also return phase as double if "Phase" is the input

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-14 11:21:07 +02:00
Ian Bell
b98d24892d Oops, forgot CoolProp.cpp
See also 2f6b083aff

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-02 17:02:54 +02:00
Ian Bell
07cd616c38 Implemented access to mixture binary pairs in get_global_param_string
See https://github.com/CoolProp/CoolProp/issues/152

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-24 16:53:51 +02:00
Ian Bell
b433dde061 Actually return the value from the PropsSI function
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-18 18:48:18 +02:00
Ian Bell
ea724a4693 Added some more debug output to PropsSI 2014-09-15 19:12:09 +02:00
Ian Bell
4acec3807b Added backwards compatibility layer for REFPROP- and REFPROP-MIX: from version 4 and passing test
Closes https://github.com/CoolProp/CoolProp/issues/135

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-09 14:48:25 +02:00
Ian Bell
799422fe40 Implemented generalized second derivative, seems to work, implemented at PropsSI level too
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-24 17:26:46 +02:00
Ian Bell
95d73d0aa0 Fixed typo
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-23 13:02:45 +02:00
Ian Bell
0dcdf7ef5d Implemented PQ for pseudo-pure to close https://github.com/CoolProp/CoolProp/issues/92
* As a consequence, made update function take CoolProp::input_pairs enum as first input (thanks @jowr for the idea)
* Decoupled the pre_update and post_update functions in order to allow for more creative update functions using guess values, etc.

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-20 21:44:13 +02:00
Ian Bell
881a6c4616 Added handling for first partial derivative as a string - added tests - they pass
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-19 00:34:26 +02:00
Ian Bell
f8c8d104fc Added error message to PropSI output to close https://github.com/CoolProp/CoolProp/issues/95
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-13 15:09:20 +02:00
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
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
802495cad3 Last commit before rename of python module to CoolProp
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-12 15:07:57 +02:00