Commit Graph

141 Commits

Author SHA1 Message Date
Ian Bell
de24be02dd And remove the condition on the additional spaces 2016-04-04 20:33:56 -06:00
Ian Bell
51767587f8 Add a few more spaces 2016-04-04 20:32:17 -06:00
Ian Bell
130c6ed456 Add ability to use GERG in REFPROP; closes #923 2016-04-04 20:06:01 -06:00
Ian Bell
2c64bdaadf Add chemical potential as abstract state method
For example:

```
auto fluids = strsplit("Methane&Ethane", '&');
auto x = { 0.6,0.4 };

shared_ptr<CoolProp::AbstractState> RP(CoolProp::AbstractState::factory("HEOS", fluids));
RP->set_mole_fractions(x);
RP->update(PT_INPUTS, 101325, 300);
auto mu1 = RP->chemical_potential(0);

RP.reset(CoolProp::AbstractState::factory("REFPROP", fluids));
RP->set_mole_fractions(x);
RP->update(PT_INPUTS, 101325, 300);
auto mu2 = RP->chemical_potential(0);
```
2016-03-30 22:10:57 -06:00
Ian Bell
b333996d1e Removed unused variables 2016-03-24 09:28:34 -06:00
Ian Bell
8a03d2bd55 Move error string into solver class; see #985 2016-03-19 22:40:14 -07:00
Ian Bell
137a850b49 Where possible, remove include paths
Can't do so for Eigen.

closes #994
2016-03-19 21:08:30 -07:00
Ian Bell
f5d9862b33 More sensible error message when using inappropriate version of REFPROP for phase envelope construction 2016-03-12 20:26:00 -07:00
Ian Bell
250feab6fb For REFPROP, get/set BIP for mixture with indices 2016-02-22 21:37:56 -07:00
Ian Bell
3f64776aa2 Fix order of parameter getting/setting for real this time 2016-02-22 21:13:09 -07:00
Ian Bell
41160dd33e Fix order of getting/setting parameters 2016-02-22 20:54:14 -07:00
Jorrit Wronski
3bc286b8f9 Eliminated some more warnings regarding missing return values 2016-02-22 15:38:26 +01:00
Jorrit Wronski
6b664b9127 Added the cahced saturation densities to the keyed outputs for REFPROP and Helmholtz, see #977 2016-02-22 15:30:18 +01:00
Ian Bell
76b68ebe42 Add Fij getter/setter for REFPROP backend 2016-01-27 21:50:48 -07:00
Ian Bell
9e946c0f19 Fix error message for p_triple calculation; closes #941
We didn't check the returned error code before.
2016-01-23 20:20:05 -07:00
Ian Bell
163b217b83 Fix call to strstrip 2016-01-21 22:33:56 -07:00
Ian Bell
15184c5751 Add ability to retrieve REFPROP version; closes #937 2016-01-21 22:26:03 -07:00
Ian Bell
b5e22ebf4d Fix a few very minor issues; unused variables and the like 2016-01-08 16:34:24 -07:00
Ian Bell
3665be23ee Fix default path for HMX.BNC for OSX/linux 2016-01-07 07:52:22 -07:00
Ian Bell
17d0a95d9f Also load shared library from the ALTERNATIVE_REFPROP_PATH if provide, otherwise use default logic 2016-01-06 23:51:01 -07:00
Ian Bell
7aed0ccf30 One more try at #886 with absolute paths 2016-01-06 23:26:15 -07:00
Ian Bell
ebf32a8b94 Fix typo in REFPROP path munging 2015-12-21 23:01:35 -07:00
Ian Bell
4da92882a5 Some more work on #886 2015-12-21 22:52:19 -07:00
Ian Bell
ac122890d1 Fix speed of sound for XXX&REFPROP backends for mixtures; see #899 2015-12-17 22:57:12 -07:00
Ian Bell
4f0b5ca06a Implement cp,cv,mu,cond for mixture tabular backends based on REFPROP; closes #871 2015-12-13 13:52:51 -07:00
Jorrit Wronski
b86c7c86d1 Removed annoying conversion warning for REFPROP code 2015-12-13 13:36:05 +01:00
Ian Bell
116cafcd8a Fixed a few things that coverity didn't like 2015-12-12 13:29:01 -07:00
Ian Bell
61e36b3e02 Fix bug and a typo 2015-12-11 23:13:01 -07:00
Ian Bell
8478a0036c Fixed a lot of small bugs that coverity didn't like. Perhaps that fixes some other problems? 2015-12-11 22:48:21 -07:00
Ian Bell
ffd2e971b3 Small changes for REFPROP; see #886
I think this *might* fix the REFPROP path issues in the low-level interface, but I'm not 100% sure until you test
2015-12-01 21:48:27 -07:00
Ian Bell
d1684a674d Fix some small bugs identified by clang static analyzer 2015-12-01 21:40:52 -07:00
Ian Bell
ca3bcbe6b4 Update a few tests to hopefully make them pass 2015-11-14 21:27:39 -07:00
Ian Bell
c9abf1707c Fix code for setting REFPROP path; see #759 2015-11-14 20:28:07 -07:00
Ian Bell
261e61f03e Fix p_triple and p_min for REFPROP backend 2015-11-14 19:43:03 -07:00
Ian Bell
108f3c4289 Added get_mass_fractions function to AbstractState; see #812
Also added get_mass_fractions to python wrapper
2015-10-23 12:22:45 +02:00
Ian Bell
607f829fc3 Fix hmolar and smolar for REFPROP phase envelopes; closes #826 2015-10-08 10:42:37 +02:00
Ian Bell
721dc68fac Fix CAS parsing for REFPROP strings 2015-09-03 22:40:38 -06:00
Ian Bell
34ed28987c Add REFPROP_DONT_ESTIMATE_INTERACTION_PARAMETERS config variable and implement; closes #804 2015-09-01 18:45:41 -06:00
Ian Bell
4b8ebd10eb Add SATTP with guesses; closes #796 2015-08-29 21:02:11 -06:00
Ian Bell
2a1cae6f5a Add ability to set BIP for HEOS and REFPROP with common interface; closes #793
Serious problem remains with the setting/getting of betaT and betaV in REFPROP since asymmetry not taken into account
2015-08-28 22:59:33 -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
0bd20b8798 Implement access to dipole moment from REFPROP; closes #725 2015-07-26 12:05:08 -06:00
Ian
b14b5b68a2 Bunch of small changes to code to make Xcode happier 2015-07-19 22:39:55 -06:00
Ian Bell
3c0fc7e0b4 Fix access to Gibbs function; closes #724 2015-07-13 18:54:06 -06:00
Ian Bell
111371df98 Implement fugacity through low-level interface; closes #699 2015-06-30 22:04:08 -06:00
Ian Bell
f0bf0cf9fc Implemented ideal curves up through python; closes #654 2015-06-03 00:05:04 -06:00
Ian Bell
e511169d49 Fixes bug with PQ for mixtures; closes #681 2015-05-27 22:23:28 -06:00
Ian Bell
437c84befb Fix some more coverity warnings 2015-05-12 22:19:22 -06:00
Ian Bell
6168b05379 Fall back to SATP or SATT for QT and PQ inputs when saturated; closes #663 2015-05-12 19:58:32 -06:00