Commit Graph

4138 Commits

Author SHA1 Message Date
Ian Bell
3e9ca1fbf4 Remove non-c types from CoolPropLib.[cpp/h]
@JonWel - watch out for the use of C++ types in C header
2016-08-21 12:45:35 -06:00
Ian Bell
57584a7254 Merge VTPR (#1195)
* Added first working version of VTPR;

* Get VTPR building hopefully

* Remove more constant iterators

* Make VTPR accessible through factory

* One last const iterator

* Fix a_alpha bug and make sqrt(2) into sqrt(2.0)

* Added analytic first derivative for VTPR

* Fix another set of sqrt(2) -> sqrt(2.0)

* Add some info on the derivatives for VTPR

Looks less hopeless than I had feared

* gE/RT needs to be multiplied by RT; closes #1161

* Added first working version of VTPR;

* Get VTPR building hopefully

* Remove more constant iterators

* Make VTPR accessible through factory

* One last const iterator

* Fix a_alpha bug and make sqrt(2) into sqrt(2.0)

* Added analytic first derivative for VTPR

* Fix another set of sqrt(2) -> sqrt(2.0)

* Add some info on the derivatives for VTPR

Looks less hopeless than I had feared

* gE/RT needs to be multiplied by RT; closes #1161

* Add VTPR code from @JonWel (#1194)

* 1rst draft to implement a simple volume translation to cubics

* A bit more of VT

* Derivatives for volume translation

* Better cm initialisation

* Solves the cubic equation with volume translation

* Correct the volume translation analytic development
Looks good now

* Update VTPR to be able to use volume translation

* Unprotect cm_term
This allows it to be used from the VTPR backend

* Update CoolPropLib.def

* Better derrivative of PI_12

The expression is simpler this way

* Solves #1176
Thanks @ibell

* Change the way the volume translation parrameter is set

* Start the bm derivatives for VTPR

* Correct one derivative

* Small bug

* Better bm derivatives for VTPR

* Add am and bm component derivatives for VTPR
@ibell I did not check yet the component derivatives of this commit, bu I checked the other ones with your code.
I'll have to addapt your code to also check these ones.

I separate the `am_term` and `bm_term` as the `am_bm_term` function was called twice. This reduce the call to the am_term part as this part ends up being called only once, and this helped writing the component derivatives.

The tau derivative is done numerically untill we find time to develop the analytical one.

The `am_bm_term` function started with a `set_temperature()`. I did not checked yet why this is needed and put this set temperature at the beginning of each of the `am_term` component derivatives.

I'll try to addapt the checking code tomorow.

* tab to spaces

* Re-writing of cubic coefficients
Introducing 3 intermediary varriables that simplify the cubic's coefficient with the volume translation.

* 1rst draft to implement a simple volume translation to cubics

* A bit more of VT

* Derivatives for volume translation

* Better cm initialisation

* Solves the cubic equation with volume translation

* Correct the volume translation analytic development
Looks good now

* Update VTPR to be able to use volume translation

* Unprotect cm_term
This allows it to be used from the VTPR backend

* Update CoolPropLib.def

* Better derrivative of PI_12

The expression is simpler this way

* Solves #1176
Thanks @ibell

* Change the way the volume translation parrameter is set

* Start the bm derivatives for VTPR

* Correct one derivative

* Small bug

* Better bm derivatives for VTPR

* Add am and bm component derivatives for VTPR
@ibell I did not check yet the component derivatives of this commit, bu I checked the other ones with your code.
I'll have to addapt your code to also check these ones.

I separate the `am_term` and `bm_term` as the `am_bm_term` function was called twice. This reduce the call to the am_term part as this part ends up being called only once, and this helped writing the component derivatives.

The tau derivative is done numerically untill we find time to develop the analytical one.

The `am_bm_term` function started with a `set_temperature()`. I did not checked yet why this is needed and put this set temperature at the beginning of each of the `am_term` component derivatives.

I'll try to addapt the checking code tomorow.

* tab to spaces

* Re-writing of cubic coefficients
Introducing 3 intermediary varriables that simplify the cubic's coefficient with the volume translation.
2016-08-21 12:34:55 -06:00
Ian Bell
d43585bcc0 Add formulas for HFO 2016-08-20 12:59:01 -06:00
Ian Bell
c5c0515a4d Add acentric factor accessor for REFPROP; closes #1193 2016-08-20 12:49:59 -06:00
Ian Bell
a0997ab875 Fix setting of parameters for linked states; closes #1191 2016-08-20 12:44:49 -06:00
Ian Bell
2024c37916 Bump revisions of IF97 and REFPROP-headers 2016-08-17 00:54:13 -06:00
Ian Bell
4e5a97aeac Removed nested enumeration warnings 2016-08-17 00:43:04 -06:00
Ian Bell
62b6ca1537 Remove the enumeration class namespace (C++11 only) 2016-08-16 23:59:15 -06:00
Ian Bell
a2b4c0927e Fixes to cubic code
closes #1188
closes #1187
2016-08-16 23:54:01 -06:00
Ian Bell
741369e0df Fixed cubic backend for PQ calls; #1189 2016-08-16 23:07:28 -06:00
Ian Bell
89c22dc67e More progress on PT for mixtures, though issues remain 2016-08-15 23:19:53 -06:00
Ian Bell
8a100b7f64 Fix typo in error thrown for negative densities 2016-08-15 20:02:52 -06:00
Ian Bell
29f229a720 Updates to PT solver and stability calculations
Needed for #1066
2016-08-14 22:32:44 -06:00
Ian Bell
4fb928904d Remove spurious stdout for table construction 2016-08-14 15:13:59 -06:00
Ian Bell
52c553eadd Add warning about T > Tmax for HS inputs; closes #1181 2016-08-14 14:49:35 -06:00
Ian Bell
12fea271d9 Add comment about the Android NDK that must be used; closes #1178 2016-08-14 14:34:37 -06:00
Ian Bell
e7fc3eb096 Add 4th order solver (Householder method) with three analytic derivatives ; closes #1185 2016-08-12 18:49:21 -06:00
Ian Bell
1e58037ba5 Update density solver in liquid phase 2016-08-12 18:13:25 -06:00
Ian Bell
5550facc03 QT/PQ inputs needs to polish with Newton-Raphson; closes #1183 2016-08-11 22:22:39 -06:00
Ian Bell
95a3cc8892 Add function to generate rapidjson instance from JSON string; closes #1182 2016-08-11 21:54:24 -06:00
Ian Bell
ee040062c7 Add 4th order alphar derivatives to python; closes #1184 2016-08-11 21:42:47 -06:00
Ian Bell
f6c979c2dc Update docs for building php module; see #1174 2016-08-10 21:48:45 -06:00
Ian Bell
2c598fe33a Add mole fractions to phase envelopes in python and C++; closes #1164 2016-08-10 19:54:20 -06:00
Ian Bell
dfb89141e6 Derivatives of vr and Tr with respect to beta and gamma! Let's fit! 2016-08-08 19:13:19 -06:00
Ian Bell
fa000b4d03 Fix broken phase envelopes in docs; closes #1064 2016-08-07 17:50:43 -06:00
Ian Bell
d01fd03662 Fix cached string for REFPROP fluids 2016-08-07 16:55:26 -06:00
Ian Bell
3efc5cfc89 PT inputs for cubics without phase specification; closes #1143 2016-08-07 16:49:12 -06:00
Ian Bell
854a105061 Only copy Reducing object if you can. 2016-08-07 16:38:06 -06:00
Ian Bell
046b5b1037 REFPROP can impose phase and call TPRHO; see #1175 2016-08-07 15:39:29 -06:00
Ian Bell
20693d9bb5 Update the copying of classes; fixes some phase envelopes (but not clear why) 2016-08-07 15:17:45 -06:00
Ian Bell
9f2a314045 Update docs for Java; closes #1172 2016-08-04 20:57:29 -06:00
Ian Bell
cf74ce383f Fix quoting of PHP flags in cmake; see #1174 2016-08-03 20:39:06 -06:00
Jeff Henning
97d536fcd9 Updates to the Excel Wrapper and Files (#1173)
* Updates to the Excel Wapper and Files

- Added README.rst with updated Installation and Build Instructions
- Fixed PhaseSI() function in CoolProp.xlam
- Removed Deprecated Props() function in CoolProp.xlam
- Added get_global_param_string() function in CoolProp.xlam
- General overhaul of the TestExcel.xlsx example file

* Minor edit to README.rst

* Unprotect Example wkbk and rename VBA to CoolProp
2016-08-02 08:00:51 -06:00
Ian Bell
576c15a1a4 Fix InChI for R114 and SF6; closes #1170 2016-07-30 17:47:58 -06:00
Ian Bell
a2a7197834 Add script for injecting InChI keys and string (and others) 2016-07-27 21:53:21 -06:00
Ian Bell
2ec60b235a Fix reference for R245ca 2016-07-27 21:50:57 -06:00
Ian Bell
f5eebdff5b Add InChI and friends to web pages; see #1069 2016-07-27 20:08:28 -06:00
Ian Bell
9bd37e7d64 Add InChI keys and string, SMILES, etc; closes #1069
See also #115
2016-07-27 19:42:31 -06:00
Ian Bell
f30095bbfa Fix order of coefficients in cp0 for R1233zd(E); closes #1166 2016-07-25 19:07:10 -06:00
JonWel
75da119182 Export set_config_string, closes #1160 (#1163) 2016-07-19 08:08:38 -06:00
Ian Bell
68ac160a43 Get critical points working again for cubics 2016-07-17 19:20:21 -06:00
Ian Bell
f967531557 Unset REFPROP path in docs
For some reason, the ipython session is kept alive, and REFPROP path kills other plotting
2016-07-17 19:06:07 -06:00
Ian Bell
f9267bd8f7 More reasonable temperature for cubics testing 2016-07-17 19:05:17 -06:00
Ian Bell
4b0fac1685 Fix plots for Tabular backend in docs 2016-07-17 18:31:27 -06:00
Jorrit Wronski
1d279031d2 Added the validation script and figure to the incompressible page, might resolve #1045 2016-07-17 12:12:49 +02:00
Jorrit Wronski
458ee9469e Added a check for the inputs to calc_Tfreeze, solves #1137 2016-07-17 01:21:41 +02:00
Jorrit Wronski
45781d942b Added a default concentration for mixtures, should help resolving #1137 2016-07-17 00:32:40 +02:00
Ian Bell
4dd63de43c Fix speed_sound and cvmass for IF97 backend; closes #1150 2016-07-15 20:33:46 -06:00
Jorrit Wronski
fe0cd37294 Started to include the transport properties for LiBr 2016-07-16 00:16:21 +02:00
Jorrit Wronski
68d646166e Fixed the last (?) viscosity factor 2016-07-16 00:16:20 +02:00