Commit Graph

449 Commits

Author SHA1 Message Date
Ian Bell
16b15a395e Finished documenting reducing functions
Closes https://github.com/CoolProp/CoolProp/issues/112

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-03 13:15:55 +02:00
Ian Bell
b98d24892d Oops, forgot CoolProp.cpp
See also 2f6b083aff

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-02 17:02:54 +02:00
Ian Bell
9f04472cef Small docs modifications
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-02 17:01:33 +02:00
Ian Bell
2f6b083aff Expose BibTeX all the way back to python wrapper
Closes https://github.com/CoolProp/CoolProp/issues/164

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-02 14:21:15 +02:00
Ian Bell
70f737c55d Predefined mixtures are added, can be accessed with a fluid name like R410A.mix
Closes https://github.com/CoolProp/CoolProp/issues/153

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-02 09:57:01 +02:00
Ian Bell
2e190f1a9d PropsSI and Props function docs
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-27 18:18:47 +02:00
Ian Bell
ef95b824d5 Don't use enthalpy/entropy ancillaries if they don't exist
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-27 18:03:04 +02:00
Ian Bell
1c18190ca6 moved flag for critical region splines to Configuration
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-27 18:01:49 +02:00
Ian Bell
1a82468c68 Expose mixture binary pair data all the way through python
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-25 13:43:29 +02:00
Ian Bell
07cd616c38 Implemented access to mixture binary pairs in get_global_param_string
See https://github.com/CoolProp/CoolProp/issues/152

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-24 16:53:51 +02:00
Jorrit Wronski
85b2443be3 Fixed the broken reference state setter function 2014-09-24 10:42:38 +02:00
Jorrit Wronski
580fbd15d8 Updated some reference state functions, does not work properly at the moment. 2014-09-24 10:42:38 +02:00
Jorrit Wronski
c98365c580 Fixes #136 and the latexcodec issues 2014-09-23 16:50:30 +02:00
Ian Bell
3bc62f50a6 Added "A" backwards compatibility alias for speed of sound
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-18 19:32:39 +02:00
Ian Bell
5dcf810f0b Added cp0 and dpdT|rho for REFPROP backend for use in PDSim
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-18 19:16:52 +02:00
Ian Bell
b433dde061 Actually return the value from the PropsSI function
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-18 18:48:18 +02:00
Ian Bell
f11a1f0b5c Removed PHSU debug commands
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-16 17:17:42 +02:00
Ian Bell
c5ae49e072 Added documentation of reducing function derivatives
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-16 15:41:54 +02:00
Ian Bell
40e5fe5366 Merge branch 'master' of https://github.com/CoolProp/CoolProp 2014-09-15 19:16:29 +02:00
Ian Bell
ea724a4693 Added some more debug output to PropsSI 2014-09-15 19:12:09 +02:00
Ian Bell
b2eccfdba8 Find Tmax and pmax indices right at the end - much simpler
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-15 18:02:12 +02:00
Ian Bell
731bd0f345 If a non-liquid liquid solution is found, bump up the liquid density and try again
Ok, this isn't perfect, but it seems to work pretty well.

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-15 16:18:40 +02:00
Ian Bell
c0157c0814 Added the ability to set/unset the phase for the abstract state class
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-15 16:17:01 +02:00
Ian Bell
5f723ce585 Added refinement of the phase envelope, PQ and TQ work for saturation
See https://github.com/CoolProp/CoolProp/issues/133

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

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-15 14:19:22 +02:00
Ian Bell
d47ba92acf Added docs for saturation routines
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-14 22:46:00 +02:00
Ian Bell
20e55df16e Added solver for mixtures with vapor quality set and one of P or T. Q no longer needs to be 0 or 1
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-14 22:11:59 +02:00
Ian Bell
260512b90f saturation p and saturation T work with Q = 0 for mixtures with phase envelopes
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-13 23:25:06 +02:00
Ian Bell
cabe7a8a22 QT calculations using phase envelope work for Q = 1
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-13 21:42:31 +02:00
Ian Bell
8c843bbf18 PQ using phase envelope for Q = 1 works
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-13 21:03:15 +02:00
Ian Bell
67e26391b0 Killed off doxygen errors
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-13 15:57:57 +02:00
Ian Bell
71427c73cc Added first cut at PT and P&HSU solvers - much work to be done, currently only good in gas phase.
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-12 21:01:53 +02:00
Ian Bell
af8691d0c5 Both xN independent and dependent are now tested in mixture derivative code.
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-12 20:59:41 +02:00
Ian Bell
ed1d7a41a6 Fixes to Mixture Parameters
If F_ij is zero, put in a dummy departure function
If pair is invalid, throw error rather than crash

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-11 13:00:53 +02:00
Ian Bell
a5b7b6f8b7 Implemented phase identification parameter
Closes https://github.com/CoolProp/CoolProp/issues/139

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-11 10:22:01 +02:00
Ian Bell
20cae192b0 Added necessary code to get sat_p working for dewpoint calculations, phase envelopes build for R32/R125 - was getting bad density roots
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-11 02:15:19 +02:00
Ian Bell
58556c6e14 Expose mole fractions of liquid and vapor through python
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-11 02:12:44 +02:00
Ian Bell
3844f281fd Maximum temp for PY flash is now 1.5*Tmax
Closes https://github.com/CoolProp/CoolProp/issues/137

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-10 16:24:36 +02:00
Ian Bell
a2a2c80323 Renamed normalization flag
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-10 15:53:57 +02:00
Ian Bell
d64889965b Removed old-style gas constant normalization
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-10 15:46:18 +02:00
Ian Bell
883b7a3f09 Implemented new gas constant normalization method - seems to work well and doesn't touch pure fluid properties
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-10 15:44:01 +02:00
Ian Bell
86f52bdf4e Phase Envelope calculations now include Tsat_max and psat_max, along with indices thereof.
The Tsat_max and psat_max values are calculated using exact solution based on finding dT/dP and dp/dT equaling zero by a 1D solution in rhov.

See also https://github.com/CoolProp/CoolProp/issues/133

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-10 15:17:19 +02:00
Ian Bell
7bf4216240 Repaired humid air properties. Validation runs now
Closes https://github.com/CoolProp/CoolProp/issues/125

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-10 10:14:29 +02:00
Ian Bell
95d402d635 Helmholtz backend can take name directly as string
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-10 10:13:22 +02:00
Ian Bell
4acec3807b Added backwards compatibility layer for REFPROP- and REFPROP-MIX: from version 4 and passing test
Closes https://github.com/CoolProp/CoolProp/issues/135

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-09 14:48:25 +02:00
Ian Bell
92299092a4 Updated python wrappers of both Abstract State and old kSI based state class
Fixed cp0
Works again with PDSim
Closes https://github.com/CoolProp/CoolProp/issues/134

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-09 14:30:42 +02:00
Ian Bell
7757311a48 Added failing tests for minimum pressure of melting curves
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-09 00:21:02 +02:00
Ian Bell
494c27fa8b Fixed mixture derivative tests - all pass now
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-08 21:49:29 +02:00
Ian Bell
865aee0a6a Updated REFPROP aliases for all fluids + test to close https://github.com/CoolProp/CoolProp/issues/130
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-08 20:48:01 +02:00
Ian Bell
853228f847 Reverted gas constant normalization - implemented constant R_u for mixtures with no other changes
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-08 19:31:07 +02:00
Ian Bell
edf39c7387 Finished normalization of the gas constants
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-08 17:34:05 +02:00