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
Ian Bell
2396477816
fixed check for solution in name string
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-09 11:06:29 +02:00
Ian Bell
41b97875b8
Updated macros in CoolProp.cpp for deeper debugging of PropsSI function
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-07 17:12:32 +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
31c47875ef
Added #ifndef PROPSI_NO_ERROR_CATCH to PropsSI to disable error catching to close https://github.com/CoolProp/CoolProp/issues/84
...
This is done so that debuggers can halt at the error for easier introspection.
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-06 09:41:21 +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
afd0b90c4d
Changed string handling for molar fractions and incompressibles - this should yield better performance and more straightforward to understand the program flow
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-04 15:10:39 +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
a2f45e29da
Added functionality for trivial outputs
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-03 18:55:52 +02:00
Ian Bell
412504a4d9
When changing reference state, hs_anchor is updated, and ancillary curves still work!! woohoo
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-01 10:50:47 +02:00