Commit Graph

54 Commits

Author SHA1 Message Date
Ian Bell
ddaf0eee65 Move HmolarP to TabularBackend 2015-12-06 16:49:09 -07:00
Ian Bell
8afb9efe60 Move PQ and QT inputs into the base tabular update function 2015-12-06 15:18:05 -07:00
Jorrit Wronski
8a4b760816 Simplify debugging and remove cache variable definition from the loop, related to #879 ? 2015-11-25 11:37:23 +01:00
Ian Bell
df10ea7a9f Fix umass for tabular backend by noting that u = h - pv; see #871 2015-11-16 19:13:26 -07:00
JonWel
d7cddad83c Supress the outputs when genrating tables, close #865
Outputs are now only generated thanks to debug_level.
2015-11-11 23:23:22 +01:00
Ian Bell
aebe9015b9 Implement ALTERNATIVE_TABLES_DIRECTORY configuration variable; closes #838 2015-10-17 14:21:55 +02:00
Ian Bell
867b9731f1 implement calc_saturated_liquid_keyed_output and calc_saturated_vapor_keyed_output for tabular backends; closes #814 2015-09-17 22:17:02 -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
0afd230706 Use max of Tmin and Ttriple to build tables; closes #738 2015-08-01 20:07:20 -06:00
Ian Bell
7a0140e76c Fix most of the bugs in #739 2015-07-21 21:50:46 -06:00
Ian
b14b5b68a2 Bunch of small changes to code to make Xcode happier 2015-07-19 22:39:55 -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
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
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
0f801bf934 Lots of improvements for tabular backends with mixtures
Turn off info about table loading
Fix saturation calls with tabular backends and mixtures
2015-06-11 17:01:02 -06:00
Ian Bell
8c82c82ada Add some useful diagnostic messages 2015-06-07 23:18:11 -06:00
Ian Bell
44bf43a65f Get tabular backends working with consistency plots; closes #675
Fixed a bunch of bugs with the Tabular methods
2015-05-16 20:48:41 -06:00
Ian Bell
4271f00f4f Fixed S,T and D,T for BICUBIC; closes #660 2015-05-16 01:26:55 -06:00
Ian Bell
cbc8aebb05 Implement P,H, P,S, P,U for BICUBIC backend (plus test) 2015-05-16 00:15:00 -06:00
Ian Bell
4010e59e48 Fixed mass-based saturation derivatives; closes #673 2015-05-14 18:24:44 -06:00
Ian Bell
05abba2dda Fixed a bunch of coverity warnings; still quite a few to go 2015-05-12 20:23:28 -06:00
Ian Bell
a20824b5df Support mass and molar inputs to TTSE and BICUBIC; see #634
Added test as well
2015-05-05 20:02:32 -06:00
Ian Bell
5958e05682 Implemented two_phase_deriv for TTSE and BICUBIC and updated tests (pass); closes #644 2015-05-03 19:33:05 -06:00
Ian Bell
8c7e47c83d Add derivative along saturation curve for Tabular backends; closes #635 2015-05-03 18:14:57 -06:00
Ian Bell
86569f4be8 If fluid has no transport properties, still calculate saturation tables; closes #602 2015-04-20 21:31:38 -06:00
Ian Bell
260f4dfde0 Bicubic tables "working" for mixtures with REFPROP
Interpolated values are not quite correct, seems like a problem with PHIOdll in REFPROP
2015-04-19 19:30:13 -06:00
Ian Bell
b4d0420ef1 Building tables for mixtures working now with REFPROP. 2015-04-19 14:15:01 -06:00
Ian Bell
7fffb04413 Build phase envelopes for mixtures with tabular backends and copy data 2015-04-19 11:19:14 -06:00
Ian Bell
129dc5fc05 format fractions to string properly; closes #584 2015-04-09 20:13:56 -06:00
Ian Bell
86ff2ce973 Fixed bugs with Bicubic and TTSE backends (load once, and at instantiation if possible) 2015-04-06 23:12:14 -06:00
Ian Bell
d0814665e7 Some progress towards #556
* Use mole fractions in the fluid name for the tables
* I think we need to use phase envelopes though, and perhaps the low-level tables need to actually be a phase envelope structure
2015-04-03 22:10:33 -06:00
Ian Bell
0fc326b886 Derivatives work for both TTSE and BICUBIC, as do cv and cp 2015-03-21 20:44:43 -06:00
Ian Bell
380dff9093 Rebuild tables when limits change; closes #537 2015-03-18 22:33:23 -06:00
Ian Bell
091cc43f27 Fix transport properties for bicubic and TTSE; closes #520
Also implement PQ inputs
2015-03-15 00:45:20 -06:00
Ian Bell
098f24d4d3 Transport properties are implemented for BICUBIC and TTSE; See #520
Basically works for Bicubic and TTSE but quite limited, you must not be too close to saturation curves or limits of the tables

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-03-10 23:06:17 -06:00
Ian Bell
c984702f9e Tabular files are in fact compressed to z and read as z; Closes #516 2015-03-03 23:06:20 -07:00
Ian Bell
8832b4475a Allow tabular backends to be disabled by setting NO_TABULAR_BACKENDS macro; closes #507
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-03-02 21:27:46 -07:00
Ian Bell
526a241ccc Updated docs for Tabular Interpolation; fixed bugs in interpolation code
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-28 15:54:27 -07:00
Ian Bell
1ac08f5c10 Refactor TTSE to remove duplication in single-phase evaluation
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-27 20:36:28 -07:00
Ian Bell
11d226b965 TTSE working for single- and two-phase inputs in p,h 2015-02-25 19:47:45 -07:00
Ian Bell
fcf4287b82 Progress on two-phase with TTSE, not working yet though
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-25 08:07:14 -07:00
Ian Bell
c054523d40 Removed mistaken input pair; refactored table building function 2015-02-24 21:16:24 -07:00
Ian Bell
716c5a34d0 Merge branch 'master' into tabular
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-24 20:20:00 -07:00
mikekaganski
1068b724c3 CoolPropDbl
Introduce CoolPropDbl to replace long doubles. This may help to overcome
possible portability problems, and test for efficiency and precision.
2015-02-24 13:24:51 +10:00
Ian Bell
a43693de58 Single-phase HmolarP_INPUTS are working with TTSE 2015-02-22 21:08:32 -07:00
Ian Bell
58519d5fbf Good progress on tabular interpolation code - single-phase tables can be constructed and written to file and then reloaded 2015-02-22 02:27:13 -07:00