656 Commits

Author SHA1 Message Date
Ian Bell
55c0e89609 Clear FPU bits for non-MSVC compilers; See #353 2014-12-18 00:47:15 +01:00
Jorrit Wronski
04c26a7ebe New reference state calculations seem to work fine and employ fewer calls to property functions 2014-12-17 13:08:21 +01:00
Jorrit Wronski
f594136451 Fixed the docs, changed the calculation of the reference state, we are half - does not work properly 2014-12-17 11:23:43 +01:00
Ian Bell
77d019076f Merge pull request #348 from CoolProp/hide_rapidjson
Hide rapidjson header in SWIG wrappers
2014-12-13 01:02:42 +01:00
Ian Bell
5f4574fb5c try to define SWIG macro before including Configuration.h
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-12 18:58:20 -05:00
Ian Bell
9e95f0bd4f Merge branch 'master' of https://github.com/coolprop/coolprop 2014-12-12 18:25:55 -05:00
Ian Bell
0e766ab75a REFPROP now silently ignores warning on loading fluids.
Closes #342

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-12 17:15:16 -05:00
Ian Bell
bc71cc8f11 Fix bug with RPVersion function call
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-12 01:27:22 -05:00
Ian Bell
bf3cd4a614 Update the ECS solver, all transport tests pass
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 23:00:28 -05:00
Ian Bell
4a76cb1d4b Merge branch 'master' into xylene_transport 2014-12-10 17:06:41 -05:00
Ian Bell
28c7b1dccd ECS ESRR need to be updated after conformal state solver - closes #337
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 17:00:58 -05:00
Ian Bell
15755c8ef5 Updated tests
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 16:59:24 -05:00
Ian Bell
438693962f Added (failing) tests for transport of xylenes
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 16:20:11 -05:00
Ian Bell
4c82aca6df First cut at conductivity for xylenes
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 15:47:02 -05:00
Ian Bell
4f52e5242a handle name mangling properly in REFPROP shared library
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 12:13:01 -05:00
Ian Bell
33d420b942 Chomp variable names using the power of XMacros - currently windows only
Removed almost 1000 lines of code!

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 11:50:00 -05:00
Ian Bell
e7afcdbe7b Remove all the *_NAME macros
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 09:59:08 -05:00
Ian Bell
6b312b7fa7 Expose the configuration functions through SWIG - closes #326
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 01:25:43 -05:00
Ian Bell
1fc2fda58e Converted REFPROP to use REDXdll to get reducing state (thanks to email from Eric Lemmon)
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 00:54:03 -05:00
Ian Bell
19353c764c Merge branch 'master' into refprop_derivative_support
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 00:39:00 -05:00
Ian Bell
751a92232a Implemented second partial derivatives in the AbstractState class
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 00:37:04 -05:00
Ian Bell
fe1e41f0eb Expose fluid names through the AbstractState. Closes #322
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 00:05:55 -05:00
Ian Bell
0b1a978fcf Temporarily disable PHI0 until discrepancies can be resolved
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-09 22:27:03 -05:00
Ian Bell
1a9f0a4e32 Derivatives are working, seems like a bug in REFPROP PHI0dll function is the only remaining problem
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-09 18:55:52 -05:00
Ian Bell
0115553119 Allow user to specify the REFPROP root path for fluids and mixtures
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-09 12:21:32 -05:00
Ian Bell
16ffbed7b0 Fixed bug when relative humidity was input, but T not provided. Closed #320
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-09 11:16:27 -05:00
Ian Bell
61c2f88470 Properly disable TH and TU inputs, at least for now. Closes #319
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-09 09:49:46 -05:00
Ian Bell
e0e2591d73 Fixed problems with HAPropsSI when wetbulb is an input by converting call to Brent. Slow but steady.
Closes https://github.com/CoolProp/CoolProp/issues/311

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-09 00:08:27 -05:00
Ian Bell
57afce4ce4 Remove the (char *) casts and take const char *
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-08 22:12:23 -05:00
Ian Bell
058ca162d2 Added a function to check RPVersion - closes https://github.com/CoolProp/CoolProp/issues/305
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-08 22:08:10 -05:00
Ian Bell
32fa56108d Implemented rhomass_critical function in AbstractState. Closes https://github.com/CoolProp/CoolProp/issues/303
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-08 18:22:01 -05:00
Ian Bell
16c70f91bc Fix backwards logic in PD test
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-06 16:59:50 -05:00
Ian Bell
4a59d578aa Only check FPU bits with MSVC compiler
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-06 16:48:03 -05:00
Ian Bell
495418ddda Fix bug in access to rhomolar variable
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-06 16:28:49 -05:00
Ian Bell
2ae3445810 Resolved bizarre FPU exception error on windows with visual studio
Resetting the FPU flags seems to make Excel not error out randomly.  This is sort of a bug in Excel.

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-06 16:14:22 -05:00
Ian Bell
1fc5e43a34 Fixes two-phase states for PHSU_D_flash
Closes https://github.com/CoolProp/CoolProp/issues/289

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-06 14:27:02 -05:00
Ian Bell
43c24d66c0 Implemented first saturation derivatives
See https://github.com/CoolProp/CoolProp/issues/238

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-05 17:59:20 -05:00
Ian Bell
e84274367d Add a better error message if fluid does not have thermal conductivity or viscosity model
See https://github.com/CoolProp/CoolProp/issues/285

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-05 14:22:48 -05:00
Ian Bell
0cb02a3e2f Predefined mixtures working in PropsSI now
Added Catch test

``` python
In [1]: import CoolProp

In [2]: CoolProp.CoolProp.PropsSI('D','P',101325,'T',300,'Air.mix')
Out[2]: 1.1766975266680577
```

Closes https://github.com/CoolProp/CoolProp/issues/287

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-05 11:24:29 -05:00
Ian Bell
32ccb78250 Disable internal error catching and allow swig to do the error catching itself
See https://github.com/CoolProp/CoolProp/issues/282

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-04 17:00:54 -05:00
Ian Bell
4960842476 A better step size in secant solver for low W
Closes https://github.com/CoolProp/CoolProp/issues/254

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-04 12:09:06 -05:00
Ian Bell
707ee4799a Brought back surface tension support
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-04 11:43:44 -05:00
Ian Bell
d7f86a806d Added tests for surface tension retrieval
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-04 11:42:29 -05:00
Ian Bell
a6f0a9e4c7 Added test for PD for T > 1.5Tc
See also https://github.com/CoolProp/CoolProp/issues/274

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-04 11:10:48 -05:00
Ian Bell
de6e95e839 Allow DY solver for single phase to go to 1.5*Tc
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-04 11:00:06 -05:00
Ian Bell
74a181645b Correctly calculate the phase flag when YD are input
Closes https://github.com/CoolProp/CoolProp/issues/273

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-04 10:35:46 -05:00
Jorrit Wronski
e85fccd040 Just a dummy commit to trigger the new builds on the bots after restoring permissions on the server. 2014-12-03 09:44:42 +01:00
Ian Bell
ca4c5b8706 Tidy docs for phase parameter
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-02 22:39:53 -05:00
Ian Bell
7a7a63f50a Gibbs is output only
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-02 22:17:04 -05:00
Ian Bell
c62ae83c38 TD flash goes back to checking for quality < 0 and > 1 for single phase solution
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-02 22:14:46 -05:00