Commit Graph

972 Commits

Author SHA1 Message Date
Jorrit Wronski
e2b7043ce4 Make Ttriple aware of mixtures, but disable it because it is not part of REFPROP. 2015-05-01 16:49:36 +02:00
Jorrit Wronski
7ac318b094 Fixed triple point from REFPROP, should improve #411 and fixes #642 2015-05-01 11:36:48 +02:00
Ian Bell
3f0a495a99 Throw the correct error when inputs are not two-phase to two_phase_deriv; closes #639 2015-04-30 18:14:39 -06:00
Ian Bell
e6f3acf318 QT inputs should only be valid for pseudo-pure if Q=0 or Q=1; closes #636 2015-04-30 17:49:08 -06:00
Ian Bell
a431b2f6bf Use IF97 to do all the flash calls for Humid air properties 2015-04-28 22:40:44 -06:00
Ian Bell
b51465bc0f Finished methane conductivity; closes #631
Added a few tests
2015-04-28 21:43:36 -06:00
Ian Bell
2da100b29b Allow temperature to QT_INPUTS to be slightly below Tmin
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-04-28 20:58:08 -06:00
Ian Bell
d29818aa19 Methane conductivity almost working; see #631
Seems like there might be a bug in Friend paper?
2015-04-27 23:19:02 -06:00
Ian Bell
5aa27d0e52 Fixed TTSE backend around the saturated liquid line; closes #622 2015-04-27 20:34:39 -06:00
Ian Bell
ae1f033e5c Fix W = 0 for HAPropsSI; closes #628 2015-04-27 19:02:27 -06:00
Ian Bell
df312e3c69 Remove unused variables and relax acceptable tests 2015-04-26 18:21:42 -06:00
Ian Bell
415a13dae2 More skipping of impossible reference states 2015-04-26 18:09:58 -06:00
Ian Bell
679de3517f Skip more impossible reference states 2015-04-26 17:51:56 -06:00
Ian Bell
c771c6900e Skip impossible reference states in testing 2015-04-26 17:49:34 -06:00
Ian Bell
ea8ae30000 Remove unneeded HS testing code 2015-04-26 17:37:00 -06:00
Ian Bell
d5cbbe0c1e Don't evaluate exactly at the critical point to help out with Water and CO2 reference state setting 2015-04-26 17:36:27 -06:00
Ian Bell
08676c31e9 HS inputs work more reliably now. Much slower, but fewer failures. Closes #455 2015-04-26 16:46:10 -06:00
Ian Bell
2fbf598e0f Fixed DH, DS, DU in two-phase zone (typo) 2015-04-26 14:42:30 -06:00
Ian Bell
14cfd28d9f Resolved issues with Dmolar,T in subcooled liquid zone without resorting to saturation call; see #624
More work remains for some of other two-phase flashes
2015-04-26 14:20:11 -06:00
Ian Bell
da0d318d6b Fixed Helmholtz derivatives 2015-04-26 13:06:57 -06:00
Ian Bell
58e79b65f2 Refactor NonAnalytic derivatives to yield proper values at delta=1, tau != 1 2015-04-25 18:26:44 -06:00
Ian Bell
3e35bc87e6 Fixed bugs with viscosity and conductivity for tabular backends; closes #621 2015-04-25 16:10:57 -06:00
Ian Bell
97fad5263b Initialize quality to -1000 for tabular backends; closes #620 2015-04-25 15:28:11 -06:00
Ian Bell
cf105f07c0 Merge branch 'master' of https://github.com/CoolProp/CoolProp 2015-04-25 14:21:56 -06:00
Jorrit Wronski
b9bd08bc93 Update Solvers.cpp
A tiny typo in the new solver
2015-04-25 10:31:48 +02:00
Ian Bell
bec1f60475 Typo in disabling of 4th derivatives of SAFT term 2015-04-24 23:37:55 -06:00
Ian Bell
6bceccf1d6 Skip tests on 4th order SAFT derivatives 2015-04-24 22:26:02 -06:00
Ian Bell
cab60b632b Don't test Water or CO2 AT the critical point 2015-04-24 22:09:00 -06:00
Ian Bell
5d8c1fafe0 Limit critical region based on DELTA, not delta, in critical region 2015-04-24 22:02:50 -06:00
Ian Bell
7a72e68389 Significantly reduce the zone where D, T requires a call to saturation routines; helps #411 2015-04-24 21:21:19 -06:00
Ian Bell
5a4bf85432 Should be absolute value of error in comparison for backwards steps
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-04-24 19:32:55 -06:00
Ian Bell
7367e6a326 Implemented Halley's method for liquid states - works great; see #411 2015-04-24 19:24:22 -06:00
Ian Bell
6696e34c1d Fixed pseudo-pures in the critical vicinity; closes #481 2015-04-24 18:54:56 -06:00
Ian Bell
de24996c92 Tightened up convergence criterion for saturation and added relaxation for water; closes #615 2015-04-24 18:00:08 -06:00
Ian Bell
0f449b3043 Move include to remove CRT secure warning in CoolProp.cpp 2015-04-23 14:34:47 -06:00
Ian Bell
d8a09a4fb4 Merge branch 'master' of https://github.com/CoolProp/CoolProp 2015-04-23 10:07:26 -06:00
Ian Bell
8f9817b1ae Export up to 4th order derivatives of the residual Helmholtz energy term 2015-04-23 10:05:11 -06:00
Ian Bell
48c757e229 Implement the updated Generalized Exponential derivative term 2015-04-23 10:03:57 -06:00
Ian Bell
0658ec082d Merge pull request #614 from postmath/typos-in-parameter-descriptions
Typos in parameter descriptions.
2015-04-22 21:49:19 -06:00
Erik Postma
678db27dc6 Typos in parameter descriptions. 2015-04-22 13:47:52 -04:00
Jorrit Wronski
601ee5a6bc Added the DEF file to export the same symbols as cdecl and stdcall dll on Windows 2015-04-22 11:52:02 +02:00
Ian Bell
4697b33a6d Throw error if Q out of range for first_two_phase_deriv_splined; closes #611 2015-04-21 19:24:08 -06:00
Ian Bell
86569f4be8 If fluid has no transport properties, still calculate saturation tables; closes #602 2015-04-20 21:31:38 -06:00
Jorrit Wronski
78b7a14585 Still playing with Python config, hopefully fixes an OSX bug (PhaseEnvelope import) as well. 2015-04-20 21:46:57 +02:00
Ian Bell
2acfa38744 Do not rebuild the coefficients every time - 5us/call with BICUBIC 2015-04-19 22:01:04 -06:00
Ian Bell
2056c1ee8c tau and delta should be based on reducing temperature and density, not critical values
Also fix definition of PHI0 in REFPROP wrapper
2015-04-19 21:12:58 -06:00
Ian Bell
260f4dfde0 Bicubic tables "working" for mixtures with REFPROP
Interpolated values are not quite correct, seems like a problem with PHIOdll in REFPROP
2015-04-19 19:30:13 -06:00
Ian Bell
b4d0420ef1 Building tables for mixtures working now with REFPROP. 2015-04-19 14:15:01 -06:00
Ian Bell
7fffb04413 Build phase envelopes for mixtures with tabular backends and copy data 2015-04-19 11:19:14 -06:00
Ian Bell
73c7fc6bad Switch MATLAB+OSX to libstdc++; see #596 2015-04-17 17:25:52 -06:00