Commit Graph

1029 Commits

Author SHA1 Message Date
Ian Bell
a25022e596 Interpolation functions take in std::size_t instead of int
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-06 20:05:07 +02:00
Ian Bell
e9297e8dc5 Calculate enthalpy and entropy as part of phase envelope
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-06 19:56:54 +02:00
Ian Bell
46135f69b6 Broke up the critical determination term for easier debugging
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-06 19:03:02 +02:00
Ian Bell
b8b4187d49 Interpolation for phase envelopes is based on *new* value for rhomolar_vap - much better
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-06 18:27:05 +02:00
Ian Bell
73c90b4b01 Gas constants are now all set to CODATA 2010 value and terms n_i in residual terms are multiplied by R_u_old/R_u_new
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-06 18:09:01 +02:00
Ian Bell
05e29c85ae Added value for ideal gas constant from CODATA 2010 for use with normalization of ideal gas constants with mixtures
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-06 18:01:55 +02:00
Ian Bell
047f63861d Provide a body for the function that MSVC doesn't like
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-06 18:01:06 +02:00
Ian Bell
ea4bc07273 FlashRoutines uses parameters instead of int for other parameter
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-06 18:00:41 +02:00
Ian Bell
354c924ca6 Excess is header only completion
Fixed bug with init of Q for phase envelope construction

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-06 16:10:12 +02:00
Ian Bell
ee6d6ecadc Excess is now header-only
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-06 15:47:46 +02:00
Ian Bell
8fdd1fddaf Refactor of mixing parameters successful
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-06 15:41:33 +02:00
Ian Bell
8294acb71e Updated generate_headers.py for the new structure of reducing and departure functions
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-05 16:46:45 +01:00
Ian Bell
c0ea8e82d7 Finished refactor of reducing parameters at the level of JSON
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-05 16:39:17 +01:00
Ian Bell
a2c318f7df First step of refactoring of reducing and departure functions
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-05 16:34:56 +01:00
Ian Bell
f7d639db51 Phase envelope construction working now for Ethane/Propane for a range of mole fractions
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-05 12:03:52 +01:00
Ian Bell
905fec810d Phase envelope code and data structures set up
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-05 10:09:36 +01:00
Ian Bell
ee83f066e7 Merge branch 'master' of https://github.com/coolprop/coolprop 2014-09-03 18:32:53 +01:00
Ian Bell
f5ad4c9595 Updated flash routines at low temperature to close https://github.com/CoolProp/CoolProp/issues/124
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-03 18:32:42 +01:00
Ian Bell
b7b502ef81 Changed the cast for benzene higher-order viscosity
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-03 17:39:02 +01:00
Ian Bell
0c38f2600c Remove std::size_t cast in ReducingFunctions
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-03 17:38:13 +01:00
Ian Bell
f021e422e6 Add min_abs_value function
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-03 17:36:55 +01:00
Ian Bell
0cd7b88139 More useful error message for critical spline
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-03 17:36:29 +01:00
Ian Bell
d07afc3b3a Updated doxygen config file
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-03 17:32:17 +01:00
Ian Bell
9b211f2145 Updated saturation spline curves
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-03 17:31:04 +01:00
Ian Bell
025f641b14 Created Excel wrapper file 2014-09-03 14:10:25 +01: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
5e470617c9 Newton-raphson works for mixtures
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-30 19:19:10 +02:00
Ian Bell
d539f5cde8 Yes!! Composition derivatives working almost entirely. 2014-08-28 21:52:25 +02:00
Ian Bell
e7aa3df917 Implemented the x_N dependent form of the composition derivatives. Mostly working but derivatives with respect to x_N DO NOT work
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-28 01:22:10 +02:00
Ian Bell
b518684404 Squashed MSVC errors about pow functions
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-27 16:33:02 +02:00
Ian Bell
c82a168585 Merge branch 'master' of https://github.com/coolprop/coolprop 2014-08-26 23:20:41 +02:00
Ian Bell
e062e0dbf6 Ancillary saturation solver works a bit better, still some issues.
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-26 23:20:24 +02:00
Ian Bell
928a0df8b5 Pressures in Pa for genetic ancillary fitter
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-26 23:18:51 +02:00
Ian Bell
fa8a22feb5 Update TTD.txt 2014-08-26 23:16:57 +02: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
29170cd44c Tidy derivatives
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-26 23:13:55 +02:00
Ian Bell
8b388f65a4 Updated ancillaries for R245fa
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-26 23:13:20 +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
229552ff93 Removed debugging commands
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-26 21:01:24 +02:00
Ian Bell
5316a1fd93 Added a bunch of mixture derivative tests (all passing).
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-26 21:00:45 +02:00
Ian Bell
28eb696660 Merge branch 'master' of https://github.com/coolprop/coolprop 2014-08-26 19:57:07 +02:00
Ian Bell
2233e68d50 Some updates to the docs
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-26 19:56:47 +02:00
Ian Bell
a99654c972 Updated docs for generation of documentation 2014-08-26 19:47:41 +02:00
Ian Bell
05f4c64049 Potentially fixed critical spline code for linear and quadratic "splines". Closes https://github.com/CoolProp/CoolProp/issues/111
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-26 19:31:25 +02:00
Ian Bell
5fea309764 Fixed R11 ancillaries
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-26 18:39:42 +02:00
Ian Bell
90702038b8 Added PROPERTIES for windows matlab builds
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-26 17:05:05 +02:00
Ian Bell
70c06b26d2 Do not install .lib files for mex libraries on windows
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-26 16:42:59 +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
7b17d579b6 Updated eigen submodule
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-26 15:05:42 +02:00
Ian Bell
0e3f10e0e6 Added mixture derivatives files to codelite project
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-26 14:57:11 +02:00