Commit Graph

3206 Commits

Author SHA1 Message Date
Ian Bell
900574c34f Fix typo in REFPROP docs 2015-08-16 22:22:17 -06: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
836552f3b6 Implement reducing and critical point accessors in Python wrapper of AbstractState 2015-08-16 19:48:28 -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
57525af406 Add docs for REFPROP interfacing; see #759 2015-08-14 23:26:24 -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
f687fe5fe6 Clarify docs for Labview; closes #773 2015-08-14 22:20:30 -06:00
Ian Bell
df5ba70169 Add warning for second derivatives as well 2015-08-14 22:19:33 -06:00
Ian Bell
8708c04ad9 Improve docs for second partial derivatives; closes #769 2015-08-14 22:09:56 -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
33c8081e6e Add R13I1 equation of state & update reference 2015-08-11 22:14:25 -06:00
Ian Bell
ec4cce6b20 Add first EOS for R115 2015-08-11 21:45:41 -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
Ian Bell
d7f2c27496 Relax convergence criterion in Maxwell loop solver
See #753
See #756
2015-08-01 18:31:43 -06:00
Ian Bell
4aecdb2039 Fix failures when building tables at very low pressure; closes #750 2015-08-01 18:13:52 -06:00
Ian Bell
37e5a57876 Fix QT inputs to tables; closes #754 2015-08-01 17:02:24 -06:00
Jorrit Wronski
bccebc2592 Merge pull request #749 from JonWel/patch-1
Add `calc_rhomolar_critical` closes #748
2015-07-27 14:25:13 +02:00
JonWel
d08c9ebfa3 Add calc_rhomolar_critical closes #748 2015-07-27 11:13:15 +02:00
Ian Bell
1c0ae1828d Fix typo in first_saturation_deriv call in docs 2015-07-26 23:39:29 -06:00
Ian Bell
ce669aee6e Fix unit conversion for internal energy for HAPropsSI 2015-07-26 13:59:08 -06:00
Ian Bell
06e3149167 Error out for mixtures for dipole moment for REFPROP 2015-07-26 13:57:01 -06:00
Ian Bell
385c6677a1 Remove get_BibTeXKey, moved to fluid_param_string in Helmholtz backend 2015-07-26 13:52:02 -06:00
Ian Bell
018d5cd992 Document derivatives for saturated state for high-level interface; closes #745 2015-07-26 13:47:23 -06:00
Ian Bell
58e7edd1dc Move fluid_param_string into backends, allowing access to CAS for REFPROP; closes #678 2015-07-26 13:35:39 -06:00
Ian Bell
3ebeadbc54 Correct calculations of cv for humid air; see #693 2015-07-26 12:27:12 -06:00
Ian Bell
e2911531b1 Unit documentation for dipole moment 2015-07-26 12:06:56 -06:00
Ian Bell
0bd20b8798 Implement access to dipole moment from REFPROP; closes #725 2015-07-26 12:05:08 -06:00