Commit Graph

1093 Commits

Author SHA1 Message Date
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
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
JonWel
d08c9ebfa3 Add calc_rhomolar_critical closes #748 2015-07-27 11:13:15 +02: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
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
0bd20b8798 Implement access to dipole moment from REFPROP; closes #725 2015-07-26 12:05:08 -06:00
Ian Bell
d1c8e77dd6 Updates to flash routines for speed and reliability
Closes #656
Closes #741
Closes #742
2015-07-26 11:45:35 -06:00
Ian Bell
8adb159a0e Unspecify the phase when using Halley's method with P+Y flash 2015-07-22 00:43:48 -06:00
Ian Bell
2149643575 P + H,S,U is now ~2 times faster in single-phase regions. Not sure about stability 2015-07-22 00:02:36 -06:00
Ian Bell
7a0140e76c Fix most of the bugs in #739 2015-07-21 21:50:46 -06:00
Ian Bell
5ba74b5e80 Fix bug in phase specification 2015-07-21 01:09:56 -06:00
Ian Bell
96178b7ec8 For pure fluids, only use one saturation pressure curve, pS, instead of pL and pV in json files; closes #711 2015-07-20 20:34:26 -06:00
Ian Bell
fb10d74f7b Don't crash if binary mixture cannot be loaded; closes #710 2015-07-20 20:15:10 -06:00
Ian Bell
2d8b672e25 Fix getting of F parameter for binary pairs for docs; closes #734 2015-07-20 19:54:13 -06:00
Ian Bell
0b9cbadf04 when wet bulb is given and dry air, decrease max temperature in solver; closes #727 2015-07-20 19:28:59 -06:00
Ian
26d7b263b2 Clean up includes; closes #705
Also clean up some more clang warnings
2015-07-19 23:49:24 -06:00
Ian
b14b5b68a2 Bunch of small changes to code to make Xcode happier 2015-07-19 22:39:55 -06:00
Ian Bell
2be9b2ea82 Implemented internal energy and cv at outputs to HAPropsSI; see #693 2015-07-14 20:52:09 -06:00
Ian Bell
a52dfea7f2 Fix HAPropsSI bugs
Closes #702
Closes #703
2015-07-14 20:34:42 -06:00
Ian Bell
a6382478f1 Fix bug with predefined mixtures; closes #722 2015-07-14 19:33:31 -06:00
Ian Bell
3c0fc7e0b4 Fix access to Gibbs function; closes #724 2015-07-13 18:54:06 -06:00
Ian Bell
b6b73192f9 Expose saturation derivatives through PropsSI; closes #712 2015-07-07 22:37:36 -06:00
Ian Bell
11417d3589 Fix saturation calls for tabular backends for PQ and QT inputs; closes #713 2015-07-07 22:19:37 -06:00
Ian Bell
a53f3cd7cb Fix isobaric_expansion_coefficient; closes #714
Also implement missing python implementation
2015-07-07 21:56:16 -06:00
Ian Bell
111371df98 Implement fugacity through low-level interface; closes #699 2015-06-30 22:04:08 -06:00
Ian Bell
074b6ec242 Get Tsat working again in a not so super nice way. 2015-06-30 19:34:06 -06:00
Ian Bell
89c7100c54 Fixed second_saturation_deriv names; closes #691
I hope this fixes it finally
2015-06-28 19:00:00 -06:00
Ian Bell
514ecef023 Implement some things for bicubic backend 2015-06-28 17:39:34 -06:00
Ian Bell
fa1720e512 Don't fail if tables need to be built 2015-06-28 13:48:19 -06:00
Ian Bell
c0f230e5d5 Move bicubic coefficients into the tabular dataset as well in order to remove copying and control memory required. 2015-06-28 13:25:18 -06:00
Ian Bell
ef929fcd2a Fix cp0 for tabular backends; closes #696 2015-06-28 12:31:09 -06:00