Commit Graph

403 Commits

Author SHA1 Message Date
Ian Bell
432c8fe48c Exposed reference state setting function to python.
Closes https://github.com/CoolProp/CoolProp/issues/206

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-07 14:44:25 -05:00
Ian Bell
d628b1af3f Added some more docs for PhaseSI function
See https://github.com/CoolProp/CoolProp/issues/192

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-29 16:12:08 -04:00
Ian Bell
12c66d7d36 Added import tests for matplotlib and numpy at import time
Closes https://github.com/CoolProp/CoolProp/issues/160

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-28 14:56:42 -04:00
Ian Bell
9e455684c1 Reverted installation requirements - better to warn when trying to import CoolProp
See https://github.com/CoolProp/CoolProp/issues/160

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-28 14:46:27 -04:00
Ian Bell
5d6a0100ec Added python wrapper for HAProps
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-22 21:35:11 +00:00
jjgomera
991469914a Add graphic tool for psychrometric chart 2014-10-14 12:32:27 +02:00
Jorrit Wronski
d0686653a1 Added Python dependencies 2014-10-05 13:23:30 +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
642b4cc698 Using string instead of str
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-02 15:09:34 +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
2aec8babf4 run cython to generate headers
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-01 19:52:46 +02:00
Ian Bell
54b1d59a67 Generate the CPP files for PYPI
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-01 19:05:54 +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
5b2f054010 When using CMake, touch CoolProp.pyx to make sure rebuild actually happens
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-27 18:17:29 +02:00
Ian Bell
4ec1f1358f Integrated CMake into python's setup.py
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-27 12:46:59 +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
5c2bc9da00 Fixed Abstract State keyed_output function docs
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-24 18:52:22 +02:00
Ian Bell
9d7946b983 Updated python docs for doxylink purposes
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-24 16:54:53 +02:00
Jorrit Wronski
c98365c580 Fixes #136 and the latexcodec issues 2014-09-23 16:50:30 +02:00
Jorrit Wronski
9b7d47c774 Added Bibtex filter for Pybtex. That should be filed as a bug in Pybtex, footnotes for incompressibles get generated properly 2014-09-23 00:07:59 +02:00
Jorrit Wronski
2591bdd056 Added new incompressibles, cleaned the docs, and improved the log fitting procedures 2014-09-22 19:47:55 +02:00
Jorrit Wronski
9cd98548ca Cleanup in bibtexer 2014-09-21 21:41:55 +02:00
Jorrit Wronski
07e4b1f968 Commited two patches to Pybtex on launchpad, changed the BibtexParser to use the latest Pybtex. Added entry to bib file. 2014-09-21 19:59:26 +02:00
Ian Bell
978bea358d Fixed order of inputs for update_ph of state class
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-18 19:17:27 +02:00
Ian Bell
b1f8a2e8b6 old-style State class can handle mixtures mostly and phase can be set
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-18 18:46:49 +02:00
Ian Bell
1ec70ccb80 Merge branch 'master' of https://github.com/coolprop/coolprop 2014-09-17 00:48:15 +02:00
Jorrit Wronski
bead14f8e2 The Bibtexer is back 2014-09-16 18:43:39 +02:00
Ian Bell
b84187a2a7 Tidied up speed test so that it will run
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-16 17:18:27 +02:00
Jorrit Wronski
37a90176a4 Basic bibtex parsing 2014-09-16 09:03:12 +02:00
Jorrit Wronski
0ee9109ebc Revive the bibtex parser 2014-09-16 08:23:29 +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
7060cba653 Updated constants module to include also the phases enum
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-15 16:15:23 +02:00
Ian Bell
91efc95076 Updated docs and cross-linking between them
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-12 20:57:52 +02:00
Ian Bell
a43d25620d smolar added to python output of phase envelope
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-12 20:56:13 +02:00
Ian Bell
c4ea637c90 Deprecated Ph, Ts, etc. plotting functions
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-11 21:41:01 +02:00
Ian Bell
01d1996b59 Updated doxylink paths to give CoolProp:: namespace prefix
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-11 21:36:35 +02:00
Ian Bell
8609a9739c Removed printing of indices for maxima of phase envelope
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-11 13:07:22 +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
83c1737416 Set the default unit system for plots back to KSI for backwards compatibility
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-10 16:49:09 +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
1243c2af1f Psych chart updates
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-10 10:22:55 +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
37838e5f77 Merge branch 'master' of https://github.com/coolprop/coolprop 2014-09-09 14:30:59 +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
359fe8651c Merge pull request #106 from jjfPCSI1/master
Added information for Python/index.rst + Only one iterable in PropsSI calls
2014-09-09 08:43:06 +02:00
Ian Bell
ab88cea2bb Some work on python unit tests - convert or keep? Some of both probably.
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-09 01:55:26 +02:00
Ian Bell
3e7c92d5a8 Cython exposes more variables in the phase envelope
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-07 21:50:55 +02:00
Ian Bell
4fee9a154a Python wrapper can now output phase envelopes
import CoolProp
import matplotlib.pyplot as plt

HEOS = CoolProp.AbstractState('HEOS','Methane&Ethane')
for x0 in [0.2, 0.4, 0.6, 0.8]:
    HEOS.set_mole_fractions([x0, 1-x0])
    try:
        HEOS.build_phase_envelope("dummy")
    except: pass
    PE = HEOS.get_phase_envelope_data()
    plt.plot(PE.T, PE.p)

plt.xlabel('Temperature [K]')
plt.ylabel('Pressure [Pa]')
plt.tight_layout()
plt.show()
2014-09-07 00:53:45 +02:00
Jean-Julien Fleck
058bfd79c4 Forwarded *args and **kwargs from Ts, Ph, ... to PropsPlot in order to be able to use unit_system='KSI' 2014-08-27 00:05:15 +02:00
Jean-Julien Fleck
5d24d83ad6 Limits correction back in place with KSI unit system 2014-08-26 23:42:18 +02:00