Commit Graph

4297 Commits

Author SHA1 Message Date
Ian Bell
b889cc5883 Now errors if T < Tmin and p > ptriple; closes #1165 2016-10-22 17:38:43 -06:00
Ian Bell
365bcb7e18 Update pybind11 wrapper code and build files 2016-10-22 17:22:17 -06:00
Ian Bell
d818019411 Add ability to add HEOS fluids as JSON at runtime; closes #1281 2016-10-22 16:33:23 -06:00
Ian Bell
4fa33ecd89 apply_simple_mixing_rule now takes fluid names as alternative to CAS number 2016-10-21 19:58:16 -06:00
Ian Bell
2bbb6d068c Also add high-level interface to pybind11 interface 2016-10-21 19:42:23 -06:00
Ian Bell
49c6932fda Add preprocessor macro around pybind11 module instantiation to protect it 2016-10-21 18:51:42 -06:00
Ian Bell
d05d39e992 Two tiny things that compilers don't like 2016-10-21 18:47:37 -06:00
Ian Bell
94242e224b Add a pybind11 wrapper interface file for low-level interface 2016-10-21 18:46:59 -06:00
Ian Bell
5425dfbdf0 Bump IF97 revision to fix warning about switch 2016-10-21 17:44:47 -06:00
Ian Bell
6818e91dff Try to update FORTRAN examples - something funny going on 2016-10-20 08:47:33 -06:00
Ian Bell
4626602237 Fix plus symbols 2016-10-18 20:47:11 -06:00
JonWel
ba0829b9f3 Remove possible division by 0, closes #1270 (#1271)
* Remove possible division by 0, closes #1270
2016-10-18 20:41:51 -06:00
Jorrit Wronski
a27200e766 Formatted the docs 2016-10-18 22:22:58 +02:00
Jorrit Wronski
07f0b67c70 Fixed typos and changed the binary directory for the installer from "installer" to "Installers", modifies the link posted in #1237 2016-10-18 22:08:41 +02:00
Jorrit Wronski
6f33115a20 Made some more changes to finally close #1237 2016-10-18 20:54:35 +02:00
Jorrit Wronski
7b2429dc43 Added more docs for #1237 and fixed the Excel builder 2016-10-18 20:06:36 +02:00
Jorrit Wronski
13625dc040 Merge branch 'integrate_excel_installer' 2016-10-18 17:16:41 +02:00
Ian Bell
0dbd096a56 Fix logic for Helmholtz evaluation 2016-10-17 21:45:04 -06:00
JonWel
1fd55c9eef Solves a bug in VTPR (#1272)
The value of lnGammag was not cleared, this was creating a sort of caching issue.
(@ibell this solves the issue I was had in Paper1, I finally got it)
2016-10-17 20:07:11 -06:00
Ian Bell
156b3e5cb9 Export spinodal curves in DLL; closes #1273 2016-10-17 20:06:08 -06:00
Ian Bell
ffbba512da Fix indent 2016-10-17 19:56:08 -06:00
Ian Bell
91704a450b Export critical points in DLL; closes #1274 2016-10-17 19:55:25 -06:00
Ian Bell
797f500307 Use powInt instead of pow(double,int) - seems to save about 30% in speed 2016-10-16 13:13:22 -06:00
JonWel
d8225753fe SatL and SatV of type VTPR too (#1269)
The copy was previously creating PengRobinson instances for SatV and SatL, thus calls like "QT_INPUTS" were giving identical results as PR for mixtures.
2016-10-15 18:45:50 -06:00
Ian Bell
521cfc6d78 One more try with the alpha function copying 2016-10-14 23:08:08 -06:00
Ian Bell
afb04bc5fa Set alpha (properly) in SatL and SatV in cubics; closes #1267 2016-10-14 22:51:18 -06:00
Ian Bell
94d2a7a4b7 Calculate molar mass with the VTPR backend too 2016-10-14 20:36:48 -06:00
Ian Bell
d5641856cc Grabbing some bits from #1266
Sorry @JonWel, can't do the fix you propose, so I just took 2/3 of your PR
2016-10-14 20:25:27 -06:00
Ian Bell
06bd66a23c Implement fluid_names for cubic backend; closes #1268 2016-10-14 20:19:24 -06:00
Ian Bell
ec141962f9 Set alpha in SatL and SatV in cubics; closes #1267 2016-10-14 20:09:15 -06:00
Jorrit Wronski
930debd741 Added some docs for #1237 and removed a duplicate rst for Excel 2016-10-14 15:07:28 +02:00
Ian Bell
9149341821 Make psi_plus public; closes #1240 2016-10-13 21:15:30 -06:00
Ian Bell
7893a7f7d9 Make spinodal accessible to python
See plot:

```
import CoolProp, numpy as np, matplotlib.pyplot as plt
CP = CoolProp.CoolProp
AS = CP.AbstractState('HEOS','Methane&Ethane')
AS.set_mole_fractions([0.5,0.5])

# The spinodal
AS.build_spinodal()
sp = AS.get_spinodal_data()
plt.plot(sp.tau, sp.delta, label='spinodal')

# The phase envelope
AS.build_phase_envelope("none")
pe = AS.get_phase_envelope_data()
plt.plot(AS.T_reducing()/np.array(pe.T), np.array(pe.rhomolar_vap)/AS.rhomolar_reducing(), label='phase envelope')

plt.show()
```
2016-10-13 20:48:10 -06:00
Ian Bell
a4a8eaa5ae Rename SpinodalValues to SpinodalData to mirror phase envelope 2016-10-13 20:30:25 -06:00
Ian Bell
b948f44dd8 Implement in C++ the calculation of the spinodal 2016-10-13 20:18:28 -06:00
Ian Bell
18b4316d6c Update initialization for VTPR; closes #1264 2016-10-13 19:38:21 -06:00
Ian Bell
c929e92b3d Build/retrieve phase envelope through high-level DLL; closes #1158 2016-10-13 19:35:36 -06:00
Jorrit Wronski
1ca6bc57e1 Removed the double compilation of the cdecl dll, make Excel use the standard dlls, added the vba code to source control 2016-10-13 18:46:49 +02:00
Ian Bell
92f4c58525 Set alpha function in JSON (#1262)
* First cut at adding the ability to set alpha function from external code

Quite a bit of refactoring...

* First cut at adding the ability to set alpha function from external code

Quite a bit of refactoring...

* Fix setting of alpha function for VTPR
2016-10-12 22:44:37 -06:00
mmoelle1
3b8040f43d Update CMakeLists.txt (#1261)
Fixed bug with missing CMAKE_DL_LIBS variable under Mac OSX.
2016-10-12 21:35:27 -06:00
JonWel
1fb9925baa Solves a bug with cubic and mixtures (#1258)
The transient_pure_state has no mole fractions when created, this was triggering a CoolProp: `Mole fractions must be set` error.

I guess it's because that transient state is supposed to be pure, but this fix allows to get the answer.
Is there something more elegant to do?
2016-10-11 12:59:19 -06:00
Babak Samareh
146710677d Update iPhone compilation docs (#1257) 2016-10-11 12:51:33 -06:00
Jorrit Wronski
89fd68abaf Modified CMakeLists.txt to include other files in the installer 2016-10-07 14:49:49 +02:00
Jorrit Wronski
8719b795b5 Merge branch 'master' into integrate_excel_installer 2016-10-07 14:23:11 +02:00
Ian Bell
09ec50fa4e Try to help compilation on OSX; see #1248 2016-10-05 22:13:42 -06:00
Ian Bell
7071bf5923 Set all parameters in one shot ( a bit faster ) 2016-10-05 21:36:35 -06:00
Ian Bell
c3184a67f5 Implement set_double_array2D; closes #1252 2016-10-05 21:33:04 -06:00
Ian Bell
a4d54687fe Implement coefficient derivatives of dYr_dxi in reducing function; closes #1250 2016-10-04 23:16:32 -06:00
Ian Bell
e8c7eb6a0c Try to fix the 7zipping of example for Java and C# ; fixed sphinx builds? 2016-10-02 17:20:39 -06:00
Ian Bell
f90e75c1af Add docs for using CoolProp on OSX in Excel; closes #989 2016-10-01 20:41:42 -06:00