Commit Graph

4089 Commits

Author SHA1 Message Date
Jorrit Wronski
68d646166e Fixed the last (?) viscosity factor 2016-07-16 00:16:20 +02:00
Ian Bell
ab744e1c0d Add evaluation of excess properties in python; closes #1071 2016-07-12 19:46:05 -06:00
Ian Bell
e2a16a300b Implemented excess properties in C++; see #1071 2016-07-12 19:31:35 -06:00
JonWel
7d4c0e4673 Clearer error message, 1147 (#1151) 2016-07-12 18:37:17 -06:00
Jorrit Wronski
b8a0f48d30 Started to work on #1045 2016-07-12 20:11:57 +02:00
Jorrit Wronski
89cac55f86 Removing a single unused import fixes #1094 2016-07-12 16:32:40 +02:00
Ian Bell
658b9662e5 Update states for MDM 2016-07-09 19:30:49 -06:00
Ian Bell
7b0815d847 Update reference for MDM EOS 2016-07-09 19:29:38 -06:00
Ian Bell
cb6251110d Add new EOS for MDM from Thol et al.
Also script for converting FLD file to EOS
2016-07-09 19:26:58 -06:00
Ian Bell
ccc4568cbd Re-implement fundamental derivative of gas dynamics; closes #1145 2016-07-09 17:13:44 -06:00
Ian Bell
dee097d147 Re-enable MATLAB 32-bit build on windows; closes #1146 2016-07-06 22:32:32 -06:00
Ian Bell
c5f0d076c8 Fix speed issues with PQ and QT for cubics; disable spinodal calcs (slow)
closes #1144
closes #1142
2016-07-05 21:44:25 -06:00
Ian Bell
f5e4e3faea Add viscosity for the xylenes; closes #1068 2016-07-04 00:09:03 -06:00
Ian Bell
549f21a168 Try to enable exception catching in JS; see #1122 2016-07-02 20:36:59 -06:00
Ian Bell
4e6db55c7d Update name and CAS for dichloroethane; closes #1141 2016-07-02 19:48:06 -06:00
Ian Bell
44170d13b6 Setting Twu coefficients works again 2016-06-28 21:41:30 -06:00
Ian Bell
90bf3ea781 Add ability to set Twu coefficients too throught the AbstractCubicBackend 2016-06-28 21:02:22 -06:00
Ian Bell
d6443aa66f First cut at Twu alpha function implementation 2016-06-28 20:01:53 -06:00
JonWel
61146d02bc Update CoolPropLib.def (#1135)
* Update CoolPropLib.def

* Update julia wrapper
Correct type specification for Array inputs.

* Update Julia wrapper
Improves type possibilities for Array functions.
It is interesting to notice that the wrapper makes use of the linear indexing feature. Matrices can be send, and will simply be processed as a vector.
2016-06-24 17:08:48 -06:00
JonWel
579bba98c4 Export specify_phase() to the library, closes #1133 (#1134)
* Cubic calc_molar_mass, closes #1124

* Add simplified update and output functions
This allows simpler use of the low level interface by using the strings name instead of the parameter number.
The parameter number version stays and will be faster for more than one call with the same parameter.

* Add AbstractState_update_and_1_out

* Export specify_phase() to the library

* small correction
Safer to only accept an array of real numbers here.

* Small correction
Specifying the type of the array to avoid any convertion
2016-06-22 21:57:13 -06:00
JonWel
2315c274c8 Cubic calc_molar_mass, closes #1124 (#1132) 2016-06-22 07:18:06 -06:00
JonWel
0d3d1592fe Close #1128 and #1130 (#1131)
* Correct vector size in the cubic backend

* Closes #1128 

* Closes #1130

Quality is not reset any more at the end of PQ and QT updates.
Add possibility to output mass density to saturated keyed output and enhance error message
2016-06-21 21:57:15 -06:00
Mike Kaganski
1f1bf52f77 Change names of dlls copied to SMath wrapper: use underscore instead of dot (#1113)
This is required in order to remove ".dll" extension from the library
name in .NET DllImport. And that, in turn, is intended to enable
cross-platform use of SMath wrapper on other OSes, like Linux (that is
supported by both CoolProp and SMath).
As explained at
http://www.mono-project.com/docs/advanced/pinvoke/, it's recommended to
omit the library extension to allow mono to find native libraries.
2016-06-21 08:31:43 -06:00
JonWel
4d679c05f1 Correct vector size in the cubic backend (#1129) 2016-06-21 08:23:31 -06:00
Ian Bell
5eba323c09 Add thermal conductivity for methanol; closes #1067 2016-06-19 18:24:06 -06:00
Ian Bell
84f7eff363 Drastically improve stability of QT for cubics through the use of spinodal pressures 2016-06-15 23:34:26 -06:00
Ian Bell
48f4244e6b Fix bug in init of mole fractions for cubic backends; closes #1125 2016-06-15 07:37:39 -06:00
Ian Bell
2c93978581 Also use a bounded secant solver; see #1123 2016-06-13 20:57:12 -06:00
Ian Bell
e9477e7079 Add sympy derivation; see #1123 2016-06-13 20:07:23 -06:00
Ian Bell
40902d4e71 Switch cubics to the use of rho as independent variable; closes #1123 2016-06-13 20:05:51 -06:00
Ian Bell
b44d02576b Update sympy code for cubic EOS solver rho(T,p) 2016-06-13 19:29:39 -06:00
Jorrit Wronski
63c6c184e5 Solved #1120 with C++11 constructors, moving back to C++98 2016-06-10 12:58:01 +02:00
Jorrit Wronski
94bcee472f introduced backend enumerations, I hope this fixes #1120 reliably 2016-06-10 12:19:18 +02:00
Jorrit Wronski
3632f76e9a handling of the critical point for the plots seems to done, closes #1118 2016-06-09 16:45:51 +02:00
Jorrit Wronski
209474a7e2 Bug in the copy operation for mixtures 2016-06-09 16:18:39 +02:00
Jorrit Wronski
af5104a830 Bug in the copy operation for mixtures 2016-06-09 16:18:38 +02:00
Jorrit Wronski
1a0259a744 Change the factory method to accept more strings, closes #1120 2016-06-09 16:18:38 +02:00
Jorrit Wronski
7c0d3ebe37 Included a manual copy of the abstract state object and exposed the backend name to Python 2016-06-09 16:18:38 +02:00
Jorrit Wronski
809998aecb Added a real state object for the critical state 2016-06-09 16:18:38 +02:00
JonWel
87fd90af84 Correct AbstractState_set_binary_interaction_double in shared library (#1117)
* Correct AbstractState_set_binary_interaction_double

Convert `i` and `j` to `size_t` when calling `AbstractState_set_binary_interaction_double`

* Addapt Julia wrapper to c16a4b6

Now `AbstractState_set_binary_interaction_double` needs `long` for `i` and `j`
2016-06-09 07:51:49 -06:00
Ian Bell
4bb21ac03c Mathias copeman (#1116)
* Add ability to set Mathias-Copeman constants in cubic backends

* Add some docs
2016-06-08 10:41:27 -06:00
Ian Bell
c16a4b64f5 Fix integer types in #1114 2016-06-08 07:30:28 -06:00
JonWel
afeca6a8b2 Export set_binary_interaction_double + Julia wrapper improvement (#1114)
* Precompiling of Julia Wrapper only for Julia 0.4+
Should allow to keep compatibility with Julia 0.3

* Export set_binary_interaction_double
to the shared library and add it to Julia Wrapper

* Correct comment in previous commit

* Change tab to spaces in precendent commit

* Add update_and_*_out functions

Add `AbstractState_update_and_common_out` and `AbstractState_update_and_5_out` to the wrapper

* Update .gitignore
2016-06-08 07:19:14 -06:00
Mike Kaganski
0f1749acce Allow conditionally build SMath in source tree (#1107)
Allow conditional build of SMath in source tree (fixes #1110)
2016-06-07 19:38:39 -06:00
Mike Kaganski
9a0851c5dd Improvements to SMath wrapper error handling and some small tweaks (#1111)
* Improve SMath wrapper error handling

1. Make CoolProp errors visible to SMath immediately, calling
get_global_param_string("errstring").
2. Use System.Exception with message instead of SMath own exceptions
where possible (to show the required message instead of irrelevant SMath
unconfigurable one); only retain SMath exceptions where it's necessary.

* Remove redundant text from release_readme.rst.txt; fixes #1105
2016-06-07 19:34:23 -06:00
Davide Carpi
569a4152ad Update AssemblyInfo.cs.template (#1109)
Copyright year updated #1108
2016-06-07 08:43:23 -06:00
Jorrit Wronski
b98718b174 Every release should get its own README.rst.txt - should solve #1105 2016-06-07 09:53:33 +02:00
Ian Bell
ffddbce6b1 Attempt to fix CMake build system 2016-06-06 22:00:27 -06:00
Ian Bell
5e9a809332 Fix typo in cubic code, add M-C setter; see #1104 2016-06-06 19:58:48 -06:00
Ian Bell
c3dba419ce Update code for cubics; closes #1104 2016-06-06 19:48:18 -06:00