Commit Graph

548 Commits

Author SHA1 Message Date
Ian Bell
a5d94a0426 Fixed(?) REFPROP loading issues on linux 2014-12-02 17:01:20 +01:00
Ian Bell
8407dc172f Throw for PT being a two-phase state (or close to)
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-02 10:44:00 -05:00
Ian Bell
37bfd34d23 Update a few tests
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-02 01:36:43 -05:00
Ian Bell
5243dd429a Make some tests give better output
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-01 23:37:07 -05:00
Ian Bell
858e75ae5b Remove PRINT, not used
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-01 23:36:36 -05:00
Ian Bell
dcd33a426c Remove R_u_ratio, not needed in this function
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-01 23:36:11 -05:00
Ian Bell
f3dbb45249 Silence the remaining debug for Catch tests for REFPROP
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-01 23:35:35 -05:00
Ian Bell
ddbf954934 Fix bug with initialization of the ierr for REFPROP backend on linux 2014-12-02 02:37:11 +01:00
Ian Bell
c15fc9c7e1 Also output EOS value for hs anchor test 2014-12-02 02:36:37 +01:00
Ian Bell
5c28e1761c Reset loaded fluid name for REFPROP when unloading
Also, skip code when fluid is the same

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-01 18:03:26 -05:00
Ian Bell
e818d254ef Placate XCode by fixing is_inside function
Closes https://github.com/CoolProp/CoolProp/issues/261

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-01 17:22:11 -05:00
Ian Bell
89859c85ee squelch huge amount of debug output
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-01 15:10:42 -05:00
Jorrit Wronski
a707ac744f REFPROP: Added some more debugging output and changed the fluid detection. Before, setup was called like crazy... 2014-12-01 19:12:23 +01:00
Jorrit Wronski
46ee467f4c REFPROP: SETUPdll got called each time, the string was not updated. This might fix some issues. 2014-12-01 19:12:23 +01: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
f0bf588358 Relaxed some more convergence criteria
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-29 21:31:03 -05:00
Ian Bell
924a50abf5 Add is_pure function
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-29 18:39:22 -05:00
Ian Bell
ae6b5f85df Allow up to 30 tries at the saturation solver
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-29 18:38:55 -05:00
Ian Bell
e306a67f1e Relax some constraints for testing
Skip triple point tests if p < 1mPa
Relax constraint for derivative tests

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-29 18:36:34 -05:00
Ian Bell
e9c22523f7 Disable HS tests for now
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-29 16:28:09 -05:00
Ian Bell
b92d4b0536 More verbose error messages for REFPROP backwards compatibility tests
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-29 15:41:01 -05:00
Ian Bell
f3b96109fd By default, temperatures within 1 uK of the critical point will now be treated as the critical point
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-29 15:37:54 -05:00
Ian Bell
872e0a3057 Better catching of errors for refprop inputs in tests
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-29 15:13:35 -05:00
Ian Bell
e9b609055e More useful debugging message for failing REFPROP tests
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-29 11:24:56 -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
2e7309be3b Relaxed some test passing criteria
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-28 22:57:08 -05:00
Ian Bell
6b98b80d7b Relaxed convergence criterion for dewpoint.
Closes https://github.com/CoolProp/CoolProp/issues/251

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-27 14:54:01 -05:00
Ian Bell
362a84254f Squelch some compiler warnings
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-27 12:08:44 -05:00
Ian Bell
762a325c24 Fixed issues with HS solver for 2phase
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-27 10:32:34 -05:00
Ian Bell
59b80a3896 HS solver implemented for two-phase
Closes https://github.com/CoolProp/CoolProp/issues/215

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-27 10:14:29 -05:00
Ian Bell
32b2b2a332 Relaxed convergence criterion for Maxwell solver to get all pure fluids to solve all the time
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-26 18:18:53 -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
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