Commit Graph

516 Commits

Author SHA1 Message Date
Ian Bell
cb74fb9c25 phases tests call the correct function
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-24 20:31:49 -05:00
Ian Bell
1fc6fabc54 Relax convergence criteria for comparisons with REFPROP data in Catch test
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-24 18:27:51 -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
53e0a204d9 All of the mixture derivative tests pass with mingw
See https://github.com/CoolProp/CoolProp/issues/234

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-24 14:30:23 -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
705785a1a1 Silence warning about Tmin missing for sL
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-24 10:23:23 -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
f706657072 Implemented conformal state solver for ECS
Closes https://github.com/CoolProp/CoolProp/issues/185

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-23 23:37:31 -05:00
Ian Bell
452baec77b Only use the Maxwell solver for saturation_T
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-23 20:53:22 -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
383b045bb1 Exposes values for minimum and maximum fractions for incompressibles
Closes https://github.com/CoolProp/CoolProp/issues/233

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-23 20:18:39 -05:00
Ian Bell
c69d971eec Updates to Maxwell solver - still problems at pressures < 1 uPa or so.
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-23 17:54:47 -05:00
Ian Bell
78a59ec348 Maxwell routine stops if the steps get small
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-20 19:00:29 -05:00
Ian Bell
6eb303d134 Get reducing state works properly - now virtual
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-20 18:59:59 -05:00
Ian Bell
88472b861a Add molarmass backwards compatibility alias
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-20 18:59:20 -05:00
Ian Bell
919d155602 Fixed functions in the dll export to require the length of the output string to be supplied
See https://github.com/CoolProp/CoolProp/issues/228

Should be fixed now

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-20 18:39:33 -05:00
Ian Bell
2f94572dad Fixed (?) bug with get_global_param_string always returning empty string
See https://github.com/CoolProp/CoolProp/issues/228

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-20 17:56:52 -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
3bcc83a3e4 convert assert to cassert to make VxWorks happier
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-19 22:14:16 -05:00
Ian Bell
7f0764878c Removed error variables to avoid warning
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-19 13:22:24 -05:00
Ian Bell
9d6b5a1687 Add get_phase_index function back
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-19 13:21: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
4249dc8f4a Add Maxwell solver as default saturation_T solver
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-19 12:08:36 -05:00
Ian Bell
82faac7a14 Improve docs for DLL
See https://github.com/CoolProp/CoolProp/issues/222

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-19 12:00:26 -05:00
Ian Bell
be69e81916 configuration now works with the X() macros of http://www.drdobbs.com/the-new-c-x-macros/184401387
This is a very nice solution, though a bit confusing at first.

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-19 00:11:20 -05:00
Ian Bell
6f4a4fcc93 getting/setting configuration values from python works
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-18 23:33:32 -05:00
Ian Bell
9ab6d2721e Updated configuration setting and getting - ready for json integration at the python level, finally
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-18 22:40:46 -05:00
Ian Bell
023afaa79d now update_DmolarT_direct doesn't set the quality directly
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-17 17:48:41 -05:00
Ian Bell
56abf640eb Merge branch 'master' of https://github.com/coolprop/coolprop 2014-11-14 18:41:30 -05:00
Ian Bell
d47bf0fbdc Fixed bug with PQ flash always yielding critical point
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-14 18:41:03 -05:00
Ian Bell
1b91d51ae6 Updates to make VxWorks play nicely with CMake using cross-compilation 2014-11-13 05:33:49 +01:00
Ian Bell
12ca382d8b For TY solver, increment max density until it bounds the desired solution
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-12 18:35:18 -05:00
Ian Bell
fd8d986059 Slightly more useful error message for missing limits for hs ancillaries
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-12 18:34:21 -05:00
Ian Bell
0237924576 Catch the inputs if QT is AT the critical point
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-12 18:33:51 -05:00
Ian Bell
1aa1272824 Check for being at the critical point with PQ inputs.
Closes https://github.com/CoolProp/CoolProp/issues

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-11 21:07:26 -05:00
Ian Bell
ff23d85271 HS works now, for most fluids over the entire single-phase part aside for pseudo-pures which have issues
Closes https://github.com/CoolProp/CoolProp/issues/172
Closes https://github.com/CoolProp/CoolProp/issues/121

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-11 20:47:16 -05:00
Ian Bell
692248a361 Updated ancillaries to allow for passing bounds explicitly ( for h and s for instance)
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-08 13:30:55 -05:00
Ian Bell
064a090174 Merge branch 'master' of https://github.com/coolprop/coolprop 2014-11-07 16:52:32 -05:00
Ian Bell
c69044488f Added first cut at HS solver - mostly works but some failures still
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-07 16:51:01 -05:00
Ian Bell
5ffe346327 Added info for some other input pairs
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-07 16:37:46 -05:00
Ian Bell
baf42b5dae Tmin and Tmax are loaded into ancillaries if they are set
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-07 16:36:41 -05:00
Ian Bell
1a0a7254b6 Fix T-Y phase for T > Tc
See https://github.com/CoolProp/CoolProp/issues/199
2014-11-07 16:24:10 -05:00
Ian Bell
2bc46bc7b8 Added HS skeleton and tests (most fail for now)
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-30 00:24:03 -04:00
Ian Bell
21a2e998af Added enthalpy and entropy for triple point states
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-30 00:21:29 -04:00
Ian Bell
407d41d2fd Modified get_param_index to allow access to phase keys
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-29 15:38:09 -04:00
Ian Bell
0232174d0b Fixed typo for TS,TH,TU when two-phase.
Closes https://github.com/CoolProp/CoolProp/issues/194

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-29 14:48:38 -04:00