Commit Graph

1714 Commits

Author SHA1 Message Date
Ian Bell
73b0b15878 Fix REFPROP phase envelope with predefined mixtures; closes #1629 2018-01-06 17:11:41 -07:00
Ian Bell
7980378001 Predefined mixture can now have uppercase .MIX; closes #1630 2018-01-06 16:46:39 -07:00
Ian Bell
2435739d8b Fix const method on ODE class 2018-01-01 12:19:24 -07:00
Ian Bell
6042f2a4eb Add ability to retrieve the list of cubic fluids that are loaded 2017-12-14 15:38:12 -07:00
Ian Bell
dadf8857c2 Fix has_melting_line for REFPROP backend 2017-12-14 10:42:43 -07:00
Ian Bell
7ea50a832f Implement calc_name and calc_fluid_names for tabular backends; closes #1616 2017-12-12 20:43:38 -07:00
Ian Bell
d2a142a4e3 Add some residual pass-through convenience functions 2017-12-03 17:57:56 -07:00
Jeff Henning
b8abf167b3 Patch PT_flash() to update _phase with imposed phase, in case it changed (#1606)
Also makes phase_lookup_string(phases Phase) available through CoolProp.h header for use in debug, warning, and error messages.
2017-12-03 18:02:36 -05:00
Ian Bell
614834abb9 Add residual versions of psi derivatives 2017-12-02 13:24:20 -07:00
Ian Bell
9a604420e3 First step of reducing the number of calls for alpha0 2017-12-02 12:42:59 -07:00
Ian Bell
1bb6fccec5 Pre-calcaulate common exp(theta[i]*tau) terms 2017-12-02 11:00:35 -07:00
Jorrit Wronski
a5309a3ecb Added 'name' output to HEOS fluid_param_string 2017-11-22 14:13:01 +01:00
Ian Bell
3b40b6f00c Add GuessesStructure to pybind11 interface 2017-11-20 22:04:25 -07:00
Ian Bell
71a0723e1e Fix ideal curves in pybind11 interface 2017-11-19 22:26:42 -07:00
Ian Bell
c065cacd8a Set the departure function in both ij and ji pairs 2017-11-17 21:24:20 -07:00
Jeff Henning
52efc9b5b4 Fix slight memory leak when replacing fluid jSON. (#1596) 2017-11-17 17:45:25 -05:00
Ian Bell
51b38ddd21 Add hybrid exponential + gaussian departure terms 2017-11-14 22:17:51 -07:00
xoviat
0e934e842e [msgpack] update dependency (#1587)
* [msgpack] update

* [tabularBackends] fix msgpack convert

* [tabularBackends] fix convert

* [tabularBackend] fix

* [tabularBackends] fix
2017-11-07 08:37:25 -07:00
Jeff Henning
6e64f8cfd1 Fixes out-of-sync fluids map when replacing a JSON fluid. (#1562)
* Fixes out-of-sync fluids map when replacing a JSON fluid.

* Pop name_vector when replacing JSON fluid to keep it from growing

* Copious commenting on fluid_map add/replace behavior in add_one().
2017-11-05 18:08:58 -07:00
Ian Bell
0d20f03beb Reset the reducing function when the mole fractions are set 2017-09-19 23:32:57 -06:00
Howard Cheung
b547a8858b Solve cmake build error: include\catch.hpp(1938): error C2678: binary '<<': no operator found which takes a left-hand operand of type 'std::ostringstream' (#1535)
* Change variable passing method

* Change & to .str()
2017-08-07 20:33:27 -06:00
Howard Cheung
59421bc2dd Calculation of first-order derivatives of isochoric specific heat, isobaric specific heat and speed of sound (#1528)
* Add derivative formula for cp and cv

* Add derivative formula for speed of sound

* Correct dwdT equation

* Validate Cv derivative calculation

* Fix errors in derivative calcualtion for Cp and speed of sound
2017-08-07 08:15:07 -06:00
Ian Bell
b0f38a40ab Fixed inconsistent alpha0 derivatives for pure fluids; closes #1509 2017-08-06 20:41:12 -06:00
Ian Bell
d56cea1d21 Hack to get Catch tests to run properly. See #1530. Not the right solution... 2017-08-06 19:16:15 -06:00
Ian Bell
8c3ea5bff2 Fix reducing state for REFPROP backend; closes #1532 2017-07-29 12:32:51 -06:00
Ian Bell
ebff6162ab Fix setting of Q in UNIFAC of VTPR
Repairs the pure-fluid limit of the excess Gibbs term - Q was not getting reset in unique_groups
2017-06-18 16:10:45 -06:00
Ian Bell
b36119ed9a Cache the reducing state if T_reducing or rhomolar_reducing is called 2017-06-03 11:59:39 -06:00
Ian Bell
47f3fe100c Clear alpha0 just like alphar 2017-06-02 21:33:27 -06:00
Ian Bell
0f1ab3a870 Remove additional slash from VTPR path 2017-06-02 21:33:09 -06:00
Ian Bell
76a91b4412 Refactor the helmholtz evaluations 2017-06-02 21:31:05 -06:00
Ian Bell
2e1300e52e Vtpr change q (#1495)
* Add function to change Q in VTPR

* Add missing declaration of set_Q_k
2017-05-15 15:09:06 -06:00
Ian Bell
17586fdb26 Fix backend name for VTPR backend (#1493) 2017-05-13 12:02:47 -06:00
Ian Bell
2d1df4853c Check if alpha0 is available (for cubics mostly). If not, don't evaluate the enthalpies (#1491) 2017-05-11 22:55:24 -06:00
Ian Bell
8146e980d8 Fix REFPROP mole fraction iterator (#1490) 2017-05-11 22:54:33 -06:00
Bell, Ian (Fed)
8e5aae60df Implement the much faster VTPR fugacity coefficient 2017-05-10 13:53:05 -06:00
Ian Bell
a06b69839e Fix static initialization? Thanks to Tobias Loew (#1488) 2017-05-10 10:46:03 -06:00
Ian Bell
7194db34a7 Add ability to get parameters from the VTPR backend (#1486)
Also set the populated flag (should have been done before)
2017-05-09 19:47:54 -06:00
Ian Bell
d4d36ebd1f Fix alpha0 for VTPR; needed for isochoric thermodynamics (#1484) 2017-05-03 14:23:54 -06:00
Ian Bell
17612bbdef Configuration variable for assuming that the critical points is stable and skipping stability analysis (#1485) 2017-05-03 14:23:47 -06:00
Jorrit Wronski
1fe0b73c2f Typo in length check 2017-04-21 20:18:14 +02:00
Jorrit Wronski
a2d23bffba Fix coverity/143807 2017-04-21 20:10:42 +02:00
Jorrit Wronski
79ebd3f8e9 Initialize index variable to fix coverity/143811 2017-04-21 19:45:20 +02:00
Jorrit Wronski
f5fd54537d Fixed a typo introduced with the REFPROP path changes 2017-04-21 16:03:28 +02:00
Jorrit Wronski
4efe01d593 Feature/refprop paths (#1477)
Explicitly specify a REFPROP library and some convenience functions to handle paths on different platforms.
2017-04-21 12:28:25 +02:00
Ian Bell
dbf729af17 Roll back somewhat to get compilation to work for MSVC2008 2017-04-21 00:32:49 -06:00
Ian Bell
27778abafe Avoid the double-free by a convenience class that is statically initialized that passes the generator 2017-04-17 22:53:10 -06:00
Ian Bell
6641efba59 Switch backend registration to the use of static generators added to a backend library
Allows for easier removal of backends by just not adding their source files
2017-04-17 21:35:42 -06:00
Ian Bell
ac96aa48c8 Fix mass density in REFPROP for vapor phase; closes #1466 2017-03-31 18:26:39 -06:00
Ian Bell
95ae6173f0 Fix a few REFPROP functions; closes #1422 (#1464) 2017-03-26 17:40:09 -06:00
Ian Bell
eb297d3171 Greatly improve the stability of REFPROP mixture calls at saturation by calling SATT and SATP functions (#1460) 2017-03-18 18:39:55 -06:00