Commit Graph

111 Commits

Author SHA1 Message Date
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
Ian Bell
3c9b02bba1 Merge branch 'master' of https://github.com/coolprop/coolprop 2014-07-25 11:06:58 -04:00
Ian Bell
dc75fa8fea Fixed typo in CoolProp.cpp
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-07-25 11:06:28 -04:00
jowr
6360e84a54 Added some new functions to handle volume fractions, hope this does not cause any trouble other places 2014-07-22 17:29:01 +02:00
jowr
e946d84dec Incompressible library and backend work, still need to convert the coefficients from v4. 2014-07-16 13:18:45 +02:00
jowr
ee04ef05dc Many C++ things are done, working on the Python parts 2014-07-14 16:53:22 +02:00
jowr
79beb6fddc The incompressibles pass the first tests and concentration inputs are read properly 2014-07-14 14:54:09 +02:00
Ian Bell
67d85f72e1 Added csv parameter listing to get_global_parameter
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-07-07 20:08:51 +02:00
Ian Bell
d545376efd Got Javascript wrapper working again - required changing all std::tr1::shared_ptr to shared_ptr
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-06-03 21:59:41 +02:00
Ian Bell
cb497b443c Added crossplatform_shared_ptr to allow shared_ptr cleanly on all architectures without needing variable namespace definition 2014-06-03 20:58:24 +02:00
Ian Bell
5accf645d9 IIR HS references set for real this time
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-06-02 13:21:06 +02:00