Commit Graph

1086 Commits

Author SHA1 Message Date
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
Ian Bell
350004f1c4 Refactored tables to remove nearly all the copying of data
Some bugs remain still
2015-06-27 20:57:12 -06:00
Ian Bell
59f2b0da88 Add code for tabular data management 2015-06-26 22:07:27 -06:00
Ian Bell
b369728912 Fix loading of tables (unsigned char to char copy) 2015-06-18 00:20:28 -06:00
Ian Bell
bb786f1b0a Build tables up to 1.5*Tmax; closes #680 2015-06-11 21:00:54 -06:00
Ian Bell
9b1e881f32 A better error message for setting reference state with T or p out of bounds; closes #695 2015-06-11 18:49:03 -06:00
Ian Bell
90a043bd56 Update include for PhaseEnvelopeRoutines.h
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-06-11 18:18:04 -06:00
Ian Bell
8a37930a8e Make the get function for tables yield a reference, not a copy (huge speedup) 2015-06-11 18:15:23 -06:00