Commit Graph

611 Commits

Author SHA1 Message Date
Ian Bell
b1f28712e8 Fixed uint64_t on visual studio
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-23 22:58:53 -07:00
Ian Bell
fe396aa3f5 Windows uses wstring, *nix uses string
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-23 22:46:49 -07:00
Ian Bell
518502145d Fixed string conversions 2015-02-23 22:41:20 -07:00
Ian Bell
280e9afc78 Fixed function pointer
string and wstring versions

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-23 22:36:55 -07:00
Ian Bell
b93a8e0106 Added directory size functions
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-23 22:24:47 -07:00
mikekaganski
1068b724c3 CoolPropDbl
Introduce CoolPropDbl to replace long doubles. This may help to overcome
possible portability problems, and test for efficiency and precision.
2015-02-24 13:24:51 +10:00
mikekaganski
f8bb1c0044 Avoid copying parameters 2015-02-24 09:26:11 +10:00
Ian Bell
bea9f8ad6b Merge branch 'master' into tabular 2015-02-22 23:34:39 -07:00
Ian Bell
aff594bb25 Fix reducing state access for REFPROP; closes #487
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-22 23:11:40 -07:00
Ian Bell
a43693de58 Single-phase HmolarP_INPUTS are working with TTSE 2015-02-22 21:08:32 -07:00
Ian Bell
58519d5fbf Good progress on tabular interpolation code - single-phase tables can be constructed and written to file and then reloaded 2015-02-22 02:27:13 -07:00
Ian Bell
aef97f9755 Lots of little changes to squelch warnings
Closes #484
Closes #483

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-21 14:39:25 -07:00
Jorrit Wronski
9738503e0c Moved reference state from fluid to state object, incompressibles do internal caching now. 2015-02-11 14:48:04 +01:00
Jorrit Wronski
c9c29eadd1 Added partial derivatives for incompressible fluids. Tests need to be updated and the docs are outdated... 2015-02-10 16:43:29 +01:00
Ian Bell
183868dee2 Implement acentric factor through AbstractState and Props1SI; closes #448
Fix all instances of accentric->acentric in fluid files and codebase.

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-03 17:37:53 -05:00
Ian Bell
b2018a4abc Do not evaluate flash call if inputs are all in outputs; see #409
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-02 20:20:43 -05:00
Ian Bell
f9223dd30d Merge branch 'master' into two_phase_derivatives_and_splines 2015-02-02 12:23:12 -05:00
Ian Bell
2495df75ed Catch exceptions in High-Level API; Closes #441
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-30 05:00:31 -07:00
Jorrit Wronski
792c466c3d I hope this is the last commit to fix #429 and to fix #413 2015-01-27 20:44:05 +01:00
Jorrit Wronski
104175dfa1 Trying to fix #413 2015-01-20 11:01:34 +01:00
Ian Bell
02dc2fa860 Fix bug with inserter
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-19 19:41:54 -07:00
Ian Bell
4ebe23ed95 Comment out the HAPropsSI code consistency test
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-19 17:28:54 -07:00
Ian Bell
e8b7c7da8e Merge branch 'master' into two_phase_derivatives_and_splines 2015-01-07 15:41:59 -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
ad978bf294 Expose second derivatives through AbstractState and add test (passes)
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-04 00:34:45 -05:00
Ian Bell
9e5c3d6035 Preliminary work on two-phase derivatives and splines
Added two-phase derivative, works!
Spline for drho/dh|p works
Spline for drho/dh|p NOT WORKING

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-01 22:58:05 -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
733cf60b31 Call clear() in instantiator for AbstractState
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 23:04:03 -05:00
Ian Bell
f8576b1d49 PropsSImulti is integrated into Python wrapper; extract_fractions is exported
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 20:08:35 -05:00
Ian Bell
97124b1481 Fixed EES builder and expose extract_backend
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 18:03:23 -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
9c05e93fd6 Refactor AbstractState::factory to take vector of strings
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 16:06:07 -05:00
Ian Bell
323eed808c Merge branch 'master' into vectorize_PropsSI 2014-12-30 14:32:11 -05:00
Ian Bell
287208b972 Use numerical differentiation by default to build the Jacobian for Newton ND
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-27 12:22:56 -05:00
Ian Bell
6dc00552e4 Implement the Prandtl number. Closes #372
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-27 00:38:37 -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
2285e3b8c9 Removed some more functions
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-26 22:23:01 -05:00
Ian Bell
c9ad1f7e59 Removed unneeded overloads of PropsSI function, leaving only PropsSI and PropsSImulti
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-26 01:45:03 -05:00
Ian Bell
a40fee3bbe Add PropsSImulti which allows for vectorization of input values and output keys
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-26 00:28:21 -05:00
Ian Bell
c2047e4162 Define get_mixture_binary_pair_data as extern in DataStructures.h in order to allow linking CoolProp and PDSim
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-24 11:17:14 -05:00
Ian Bell
1310af00bd Allow access to gas constant through PropsSI/Props1SI; Closes #366
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-22 15:30:17 -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
d064baf230 Fix bug with PhaseSI function (at DLL level) taking Output parameter as first parameter
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-18 18:18:45 -06: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
Jorrit Wronski
9708284c60 cleaned up and added some gitignore files 2014-12-17 10:39:16 +01:00
Ian Bell
7cdf05cb32 Hide getter/setter from SWIG as well.
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-12 18:51:11 -05:00
Ian Bell
93726173b8 Try to hide rapidjson header to swig for some wrappers that get confused
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 23:39:17 -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
6b312b7fa7 Expose the configuration functions through SWIG - closes #326
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 01:25:43 -05:00