Commit Graph

1127 Commits

Author SHA1 Message Date
Ian Bell
4b8ebd10eb Add SATTP with guesses; closes #796 2015-08-29 21:02:11 -06:00
Ian Bell
eb1c140ca9 Add access to conformal state in AbstractState; closes #799 2015-08-29 17:27:57 -06:00
Ian Bell
4f5d1a041d Add linear and Lorentz-Berthelot mixing rules; call apply_simple_mixing_rule(), then twiddle parameters
closes #798
closes #792
2015-08-29 16:38:00 -06:00
Ian Bell
2a1cae6f5a Add ability to set BIP for HEOS and REFPROP with common interface; closes #793
Serious problem remains with the setting/getting of betaT and betaV in REFPROP since asymmetry not taken into account
2015-08-28 22:59:33 -06:00
Ian Bell
3f573475a8 Fix phase resetting for mixtures 2015-08-24 00:21:15 -06:00
Ian Bell
bfbc7be967 Some cleanups to consistency plots and fixing of calculation of phases
Closes #788
2015-08-23 23:26:45 -06:00
Ian Bell
6cb6b29b81 Fix initialization of cached elements in Helmholtz terms 2015-08-23 21:27:42 -06:00
Ian Bell
07fea8aea8 Fix bug with enthalpy for dry air and fix psych script stuff
closes #783
2015-08-23 17:22:37 -06:00
Ian Bell
44ab82b474 Calculate T properly with HP inputs in two-phase; closes #762 2015-08-23 16:32:20 -06:00
Ian Bell
5c2a5188ce Merge branch 'master' of https://github.com/coolprop/coolprop 2015-08-23 16:20:28 -06:00
Ian Bell
f8af37f48c Fix initialization of xmin for PT tables; closes #777 2015-08-23 16:19:42 -06:00
Ian Bell
9b3ac795e4 Fix the ambiguous overload 2015-08-21 22:26:17 -06:00
Ian Bell
133b19ca8a Implement viscosity for toluene; closes #785 2015-08-21 22:03:02 -06:00
Ian Bell
e4adbb1003 Only shorten names with Scilab 2015-08-21 19:42:53 -06:00
Ian Bell
f167f55de6 One more time for scilab 2015-08-21 19:28:20 -06:00
Ian Bell
3a5d0fceba Rename some things to make scilab build more reliably 2015-08-21 19:02:51 -06:00
Ian Bell
c169e12ae0 Clear the Helmholtz cache; closes #770 2015-08-20 16:28:57 -05:00
Ian Bell
3c44b016f0 Merge branch 'master' of https://github.com/coolprop/coolprop 2015-08-20 15:57:34 -05:00
Ian Bell
9f0fa0e47c Added docs for configuration keys, and functions to C++ and python to make this possible; closes #761 2015-08-20 15:57:21 -05:00
Ian Bell
8b214acf3e Switch evaluation of bicubic output to bivariate Horner's scheme 2015-08-20 13:33:02 -05:00
Ian Bell
eec3e1a0d3 Add a SimpleState fill() function and use it
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-08-20 13:30:45 -05:00
JonWel
356f003826 Fix error message formatting; see #777 2015-08-17 09:41:55 +02:00
Ian Bell
f02e95c7a4 Catch exceptions properly for critical point routines; silence output 2015-08-16 20:04:59 -06:00
Ian Bell
d9a2dc61f4 Fix error message formatting; see #777 2015-08-16 19:58:34 -06:00
Ian Bell
381f613164 Merge pull request #778 from CoolProp/mixture_derivs
Mixture derivs
2015-08-16 17:44:42 -06:00
Ian Bell
30c5abc35c Fully switch over to analytic derivatives; add an IPython notebook to check derivative of determinant 2015-08-16 17:04:01 -06:00
Ian Bell
1283143e64 Fix bug in adjugate function and fix tests thereof 2015-08-16 16:56:27 -06:00
Ian Bell
ba7d5a9c97 Two very minor typos 2015-08-14 23:27:50 -06:00
Ian Bell
a4bba46955 Fix docs for IF97 backend; closes #776 2015-08-14 22:58:41 -06:00
Ian Bell
c127f46474 Allow for calculation of critical points for mixtures using new routines developed by Bell; closes #649
All of these work:

```
double Dc1 = PropsSI("rhomolar_critical","",0,"",0,"HEOS::R245fa[0.375]&R134a[0.625]");
double Dc2 = PropsSI("rhomolar_critical","",0,"",0,"REFPROP::R245fa[0.375]&R134a[0.625]");
double Tc1 = PropsSI("T_critical","",0,"",0,"HEOS::R245fa[0.375]&R134a[0.625]");
double Tc2 = PropsSI("T_critical","",0,"",0,"REFPROP::R245fa[0.375]&R134a[0.625]");
double pc1 = PropsSI("p_critical","",0,"",0,"HEOS::R245fa[0.375]&R134a[0.625]");
double pc2 = PropsSI("p_critical","",0,"",0,"REFPROP::R245fa[0.375]&R134a[0.625]");
```
2015-08-14 22:50:30 -06:00
Ian Bell
8d6edb2535 Add speed of sound for tabular backends; closes #764
Probably could optimize both speed and accuracy.
2015-08-14 22:29:47 -06:00
Ian Bell
ffbdbb9ce9 Small updates to calculation of critical points; analytic derivatives not fully working 2015-08-14 22:06:41 -06:00
Ian Bell
78d799ee75 And the changes to the header 2015-08-14 18:24:29 -06:00
Ian Bell
045ef05c9d Fix a bunch of little things with mixture derivatives; most tests pass now 2015-08-14 18:24:05 -06:00
Ian Bell
a714857bb0 Fix derivatives for xxdelta 2015-08-14 08:30:18 -06:00
Ian Bell
14b1bb829e Fix tau derivative of n2Aijk 2015-08-12 23:42:46 -06:00
Ian Bell
ad643aff7e Add the rest of the mixture derivatives for the critical point calculations - implemented but something is not quite right. 2015-08-11 23:58:45 -06:00
Ian Bell
a9af0df612 Cache derivative values of helmholtz energy for individual components; see #726 2015-08-06 12:58:22 -04:00
Ian Bell
b585bc744b Fix first criticality condition line solver; closes #768 2015-08-06 10:08:41 -04:00
Ian Bell
66153844cc Implement all the derivatives needed for analytic second derivative in 1D solve for L1* = 0 2015-08-06 10:06:01 -04:00
Ian Bell
f9a7059ef5 Small tidying up to tracer 2015-08-03 22:34:52 -06:00
Ian Bell
fed41d4518 First implementation of critical point solver (much slower than on windows?)
``` C++
    std::vector<std::string> names; names.push_back("Methane"); names.push_back("H2S");
    shared_ptr<CoolProp::HelmholtzEOSMixtureBackend> mix(new CoolProp::HelmholtzEOSMixtureBackend(names));
    mix->specify_phase(iphase_gas);
    std::vector<CoolPropDbl> z(2,0);
    for (double x0 = 0.01; x0 < 0.5; x0 += 0.01)
    {
        z[0] = x0; z[1] = 1-x0;
        mix->set_mole_fractions(z);
        std::vector<CoolProp::SimpleState> critpts = mix->find_all_critical_points();
        int rr = 4;
    }
```
2015-08-03 22:04:44 -06:00
Ian Bell
a0ebb5f96c Implement surface_tension for tabular backends; closes #760 2015-08-02 18:10:26 -06:00
Ian Bell
e4fe7f1c67 Call the right renamed functions 2015-08-01 23:02:56 -06:00
Ian Bell
4e87cd8bef Rename flash routine to reflect its current handling of inputs 2015-08-01 22:59:59 -06:00
Ian Bell
39cb12054a Speed up DP inputs using more sensible starting values; closes #751
See also #411
2015-08-01 22:53:01 -06:00
Ian Bell
ffce66a561 Added values for speed of sound and isentropic exponent for humid air; see #693
Tested, seem correct.
2015-08-01 21:06:31 -06:00
Ian Bell
dfa3e11cb2 Allow for PT and P+Y inputs for p < ptriple; closes #757 2015-08-01 20:36:28 -06:00
Ian Bell
0afd230706 Use max of Tmin and Ttriple to build tables; closes #738 2015-08-01 20:07:20 -06:00
Ian Bell
55143c0ebf Fix HAPropsSI bug; closes #740 2015-08-01 19:56:15 -06:00