Commit Graph

4069 Commits

Author SHA1 Message Date
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
Mike Kaganski
0d39b04b4b One small tweak to Props1 (#1103)
Do not try to call possibly throwing get_parameter_index if Props1SI
already returned an error

Also, add include/cubic_fluids_schema_JSON.h to gitignore
2016-06-06 19:29:30 -06:00
Mike Kaganski
6d21a6cc65 Allow cmake properly build SMath wrapper (#1100)
* Allow cmake properly build SMath wrapper

Integrate c# project into solution; allow usual cmake --build . --config
Release to build SMath wrapper.
Remove obsolete build.bat and coolprop_wrapper.sln files:
cmake-generated solution already includes everything.
Use build subdirectory wrappers/SMath for all generated files (both by
cmake, including csproj file itself, and by build process), thus no
dirty tree anymore.

Please note: this change requires cmake version 2.8.9 (because of
include_external_msproject TYPE).

* Tentative patch for buildbot

Unfortunately, I cannot test the buildbot, neither I know about it much.
I suppose that this is a sensible patch to be able to work with previous
changes to SMath build process.

* Update SMath wrapper help
2016-06-06 08:05:46 -06:00
JonWel
a9d5c9639e Add error handling to some functions, see #1096 (#1101)
Adapt Julia Wrapper to #1097 as discussed in #1096
Also enlarge buffer size as discussed in #1093.
2016-06-06 07:53:14 -06:00
Ian Bell
324333ced2 Critical point calcs should be done with separate class; closes #1099 2016-06-05 17:50:56 -06:00
Ian Bell
a0c29bf35a Copy and update states better; closes #1050 2016-06-05 17:29:10 -06:00
Ian Bell
6a5c17335e Really fix #1091 this time... 2016-06-05 16:26:41 -06:00
Ian Bell
c48d4f7f48 Added docs for Borland compilation; closes #1092 2016-06-05 16:10:07 -06:00
Ian Bell
8c9b1a5e9b Added Helmholtz energy throughout the API as output parameter; closes #1086 2016-06-05 15:56:37 -06:00
Ian Bell
154de451fe Fix set_reference_stateD(); closes #1091
Now all inputs are molar, and the function actually works!
2016-06-05 15:16:02 -06:00
Mike Kaganski
f7ef611f50 Set error string in get_parameter_information_string() : fixes #1096 (#1097)
Set error string in get_parameter_information_string() and fix SMath wrapper : fixes #1096
2016-06-05 14:54:42 -06:00
JonWel
a858417397 Revert part of 763d4ce to solve #1077 (#1093)
* Revert part of #763d4ce to solve #974

* Addapt Julia wrapper to dfbb3a4

May be better in the future to use a second argument and insert it to the buffer, but I don't know yet how to do properly the conversion.
So for now, will always return the "long" option.

* "long" in byte array literal

* Enhance get_parameter_information_string

as discussed in #1093

I however have a strange behavior during my testing, sometimes the parameter gets correctly recognised and I have the correct output, but sometimes it answer "parameter is invalid: parametername", whereas I send the exact same commend in Julia side...

* Terminate string with 0 when instering in the buffer

As discussed in #1093

* Better error handling for get_parameter_information_string

Now there is a distinction between error in `param` or in `Output`.

* Update CoolProp.jl

Closes #1077
2016-06-03 08:36:37 -06:00
Jorrit Wronski
b67068e1ec Do not update conda files on upload 2016-06-03 10:17:02 +02:00
Ian Bell
8bdce042d5 Update docs for C# namespaces; see #1090 2016-06-02 08:45:30 -06:00
Ian Bell
758c5e0177 Merge branch 'master' of https://github.com/coolprop/coolprop 2016-06-01 20:30:05 -06:00
Ian Bell
e8c90e40e3 Fix typo in python wrapper of acentric factor; closes #1084 2016-06-01 20:29:14 -06:00
Jorrit Wronski
6d669dc607 make the manylinux scripts executable 2016-05-27 13:38:56 +02:00
Jorrit Wronski
272003fff3 Fixed a conflict of Bash variable names 2016-05-27 11:33:39 +02:00
Jorrit Wronski
972d5824e8 Added docs for working with the master.cfg to the website, see #1052 2016-05-27 11:19:23 +02:00
Jorrit Wronski
d8282e54d3 Typo in master.cfg 2016-05-27 10:27:51 +02:00
Jorrit Wronski
08fd0997aa Changed the docker scripts 2016-05-27 10:25:21 +02:00