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
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
15755c8ef5
Updated tests
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-12-10 16:59:24 -05:00
Ian Bell
438693962f
Added (failing) tests for transport of xylenes
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-12-10 16:20:11 -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
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
c62ae83c38
TD flash goes back to checking for quality < 0 and > 1 for single phase solution
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-12-02 22:14:46 -05:00
Ian Bell
7fd8c5ffc4
One more try at PT two-phase
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-12-02 15:42:20 -05:00
Ian Bell
b0b66800cb
Another try at PT sat
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-12-02 13:51:16 -05:00
Ian Bell
1c7512a318
Relax the PT tolerance again for two-phase
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-12-02 12:17:45 -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
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
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
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
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
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
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
23c1a38b4d
Add tests for the references state for enthalpy and entropy
...
Closes https://github.com/CoolProp/CoolProp/issues/77
Closes https://github.com/CoolProp/CoolProp/issues/76
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-10-28 18:59:39 -04:00
Ian Bell
c8fedbbf30
mass based derivatives (I think) plus test
...
referenced in https://github.com/CoolProp/CoolProp/issues/177
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-10-15 23:09:13 +02:00
Jorrit Wronski
85b2443be3
Fixed the broken reference state setter function
2014-09-24 10:42:38 +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
865aee0a6a
Updated REFPROP aliases for all fluids + test to close https://github.com/CoolProp/CoolProp/issues/130
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-09-08 20:48:01 +02:00
Ian Bell
fca950907f
Implemented benzene viscosity correlation of Avgeri et al. from JPCRD, 2014
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-09-02 14:56:04 +01:00
Ian Bell
dafa165dd8
Add note for methanol
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-26 23:15:04 +02:00
Ian Bell
bbc97ac230
Added methanol viscosity correlation to close https://github.com/CoolProp/CoolProp/issues/82
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-26 23:12:16 +02:00
Ian Bell
648c01aee8
Fixed CoolProp-Tests.cpp to not require CoolPropLib.cpp
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-26 15:17:47 +02:00
Ian Bell
c398ea91a7
Added more tests for second derivatives
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-24 20:45:07 +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
4b082029c4
Finally repaired flash routines.
...
Some edge cases remain
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-24 13:40:46 +02:00
Ian Bell
d3261395bf
Replaced all fabs() with std::abs()
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-23 14:56:07 +02:00
Ian Bell
b12042bd8c
Added (failing) tests to check triple point pressures
...
Closes https://github.com/CoolProp/CoolProp/issues/78
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-23 13:27:09 +02:00
Ian Bell
cd8ee9eb52
Added code and tests for saturation ancillaries (p, rho', rho'')
...
Closes https://github.com/CoolProp/CoolProp/issues/75
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-23 13:01:56 +02:00
Ian Bell
b4ff7a8cc5
Implemented viscosity for cyclohexane from Tariq, 2014.
...
Added unit tests, reformulated initial density term
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-21 00:50:57 +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
e5055d195a
Added conductivity for R134a and test to close https://github.com/CoolProp/CoolProp/issues/101
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-20 17:16:51 +02:00
Ian Bell
b506fb5d26
Tidied up derivative tests
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-19 00:36:08 +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
99da465b06
Unspecify the phase after the HP solver with Brent - test added
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-18 18:52:06 +02:00
Ian Bell
61bc24e7b1
phases is now an enum, added (non-working) critical region VLE solver
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-15 17:13:00 +02:00
Ian Bell
b7bd58d986
More work on flash routines, number of failures is rapidly decreasing - still have problems for low pressure sat_p calcs
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-12 11:21:12 +02:00
Ian Bell
36d601490f
Lots more work on melting curves, can now make pretty phase diagram for water including the melting line
2014-08-10 19:28:04 +02:00
Ian Bell
5ee295f639
cleaned up whitespace
2014-08-09 15:12:31 +02:00
Ian Bell
c3cc696080
P,Y now works if P > pc
...
Add supercritical_gas and supercritical_liquid phase flags for a bit finer granularity
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-09 15:10:09 +02:00
Ian Bell
ba8c97d925
Added test for supercritical PY - not passing currently
2014-08-09 12:41:57 +02:00
Ian Bell
faf530d588
Fixed melting curves, PY flash works for subcritical cases
2014-08-09 11:07:21 +02:00