Commit Graph

403 Commits

Author SHA1 Message Date
Ian Bell
d1ca808ca7 Fixed weird bug with long<0 in REFPROP wrapper; Closes #401 2015-01-13 04:55:40 +01:00
Ian Bell
6d004a90a8 Fixed bug in REFPROP debug output
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-12 19:35:54 -07:00
Ian Bell
658f467e26 More debug for fluid loading
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-12 19:20:17 -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
Ian Bell
be0e9aafbb Better initialization error message
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-31 20:29:07 -05:00
Ian Bell
50b611bd4a Move predefined mixture parsing to HelmholtzEOS initializer function; Closes #373
Renamed functions for Helmholtz backend for getting const or non-const reference to mole fractions

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-31 18:06:12 -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
23bdb6d979 Fixed broken incompressible tests
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 17:34:07 -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
323eed808c Merge branch 'master' into vectorize_PropsSI 2014-12-30 14:32:11 -05:00
Ian Bell
b0ecf02491 One more bug to squash with saturated state
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-26 23:00:39 -05:00
Ian Bell
6c7c658226 Clean up handling of saturated states
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-26 22:55:01 -05:00
Ian Bell
a8375c3912 Added saturated_liquid_keyed_output and saturated_vapor_keyed_output functions to get access to internals for saturation state
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-26 22:24:25 -05:00
Ian Bell
1658fac547 Fix incompressible tests for removed PropsSI overloads
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-26 22:21:02 -05:00
Ian Bell
db24acf6c7 For pure fluids, QT_flash always yields the mean saturation pressure; Closes #364
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-24 12:15:31 -05:00
Ian Bell
884a3ff8ff Implemented second saturation derivatives with respect to p; Closes #238
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-19 17:39:47 -06:00
Ian Bell
132b0ab5dd Fix RPVersion function call again
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-19 17:20:36 -06:00
Jorrit Wronski
c945055ec6 Merge branch 'develop' 2014-12-19 11:33:16 +01:00
Jorrit Wronski
ae36828ea1 Fixed the header handling, closes #362 and partly covers the issues named in #354. 2014-12-19 11:31:21 +01:00
Ian Bell
cbad60e752 Pseudo-pure throw error properly if T > Tmaxsat; Closes #308
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-18 20:24:09 -06:00
Ian Bell
f86952109b Implement calc_melting_line for incompressibles; closes #347
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-18 20:05:16 -06:00
Ian Bell
6f245cfd4d Increase length of string passed to RPversion function
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-18 16:31:36 -06:00
Ian Bell
9bc5a78d97 Merge branch 'master' into asan_rpversion 2014-12-18 16:10:31 -06:00
Jorrit Wronski
a1d2a2a9be Added the external REFPROP header and removed the constants from the cpp file, replaced tabs with 4 spaces 2014-12-18 11:28:23 +01:00
Jorrit Wronski
04c26a7ebe New reference state calculations seem to work fine and employ fewer calls to property functions 2014-12-17 13:08:21 +01:00
Jorrit Wronski
f594136451 Fixed the docs, changed the calculation of the reference state, we are half - does not work properly 2014-12-17 11:23:43 +01:00
Ian Bell
9e95f0bd4f Merge branch 'master' of https://github.com/coolprop/coolprop 2014-12-12 18:25:55 -05:00
Ian Bell
0e766ab75a REFPROP now silently ignores warning on loading fluids.
Closes #342

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-12 17:15:16 -05:00
Ian Bell
bc71cc8f11 Fix bug with RPVersion function call
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-12 01:27:22 -05:00
Ian Bell
bf3cd4a614 Update the ECS solver, all transport tests pass
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 23:00:28 -05:00
Ian Bell
28c7b1dccd ECS ESRR need to be updated after conformal state solver - closes #337
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 17:00:58 -05:00
Ian Bell
4f52e5242a handle name mangling properly in REFPROP shared library
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 12:13:01 -05:00
Ian Bell
33d420b942 Chomp variable names using the power of XMacros - currently windows only
Removed almost 1000 lines of code!

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 11:50:00 -05:00
Ian Bell
e7afcdbe7b Remove all the *_NAME macros
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 09:59:08 -05:00
Ian Bell
1fc2fda58e Converted REFPROP to use REDXdll to get reducing state (thanks to email from Eric Lemmon)
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 00:54:03 -05:00
Ian Bell
19353c764c Merge branch 'master' into refprop_derivative_support
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 00:39:00 -05:00
Ian Bell
751a92232a Implemented second partial derivatives in the AbstractState class
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 00:37:04 -05:00
Ian Bell
fe1e41f0eb Expose fluid names through the AbstractState. Closes #322
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 00:05:55 -05:00
Ian Bell
0b1a978fcf Temporarily disable PHI0 until discrepancies can be resolved
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-09 22:27:03 -05:00
Ian Bell
1a9f0a4e32 Derivatives are working, seems like a bug in REFPROP PHI0dll function is the only remaining problem
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-09 18:55:52 -05:00
Ian Bell
0115553119 Allow user to specify the REFPROP root path for fluids and mixtures
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-09 12:21:32 -05:00
Ian Bell
61c2f88470 Properly disable TH and TU inputs, at least for now. Closes #319
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-09 09:49:46 -05:00
Ian Bell
57afce4ce4 Remove the (char *) casts and take const char *
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-08 22:12:23 -05:00
Ian Bell
058ca162d2 Added a function to check RPVersion - closes https://github.com/CoolProp/CoolProp/issues/305
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-08 22:08:10 -05:00
Ian Bell
16c70f91bc Fix backwards logic in PD test
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-06 16:59:50 -05:00
Ian Bell
495418ddda Fix bug in access to rhomolar variable
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-06 16:28:49 -05:00
Ian Bell
1fc5e43a34 Fixes two-phase states for PHSU_D_flash
Closes https://github.com/CoolProp/CoolProp/issues/289

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-06 14:27:02 -05:00
Ian Bell
43c24d66c0 Implemented first saturation derivatives
See https://github.com/CoolProp/CoolProp/issues/238

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-05 17:59:20 -05:00
Ian Bell
e84274367d Add a better error message if fluid does not have thermal conductivity or viscosity model
See https://github.com/CoolProp/CoolProp/issues/285

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-05 14:22:48 -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