Skip to main content

Power cycle sizing and analysis package

Project description

About

Version:

0.1

Author:

Momar Hughes

Contact:

momar.hughes@unsw.edu.au

Topic:

Thermodynamic power cycle sizing and analysis

Licence:

Apache License 2.0

Requires:

numpy, scipy, matplotlib, CoolProp

MCycle is a Python3 module for 1-dimensional analysis and sizing of thermodynamic heat cycles, particularly the organic Rankine cycle. Sizing methods are based on empirical and theoretical correlations. Users may analyse cycles consisting of components including heaters, coolers, compressors, expanders and heat exchangers. The two main modes for analysing cycles or components are:

  • size : calculates a component characteristic/dimension required to satisfy a desired component outlet flow state/cycle flow states. This mode is used for sizing components.

  • run : calculates working fluid cycle flow states/ component outlet flow state based on user-defined characteristics/dimensions of the components.

The Github project page can be found at https://github.com/momargoh/MCycle. The documentation is hosted at https://mcycle.readthedocs.io or can be built using Sphinx (using Python3).

Installation

Requirements:

sudo apt install build-essential python3 python3-dev python3-pip python3-tk cython3 git
pip3 install numpy
pip3 install scipy
pip3 install matplotlib

MCycle also requires CoolProp, a free and open-source thermodynamic properties library. It is recommended to manually install the latest version of CoolProp before installing MCycle (rather than installing from pip which is not the latest version). Refer to their guide on manual installation, summarised below.:

cd PATH/TO/CLONE/FOLDER
git clone https://github.com/CoolProp/CoolProp.git --recursive
cd wrappers/Python
sudo python3 setup.py install

MCycle should now be ready to be installed. For the latest updates, clone/download the source code from the Github page and run:

python3 setup.py install

For the latest stable release, MCycle is available from pip by running:

pip3 install mcycle

Contributions towards the project source code will be gratefully received. Feel free to contact the author via email or GitHub with any queries.

Quick start

Have a look through mcycle/examples to get a feel for how to use the module (link to documentaion). These examples can be easily copied to your local directory and modified to get you started.

Notes on installing CoolProp from source for Python3

Once, the installation failed because /usr/local/lib/python3.6/dist-packages did not exist, thus I ran:

sudo mkdir -p /usr/local/lib/python3.6/dist-packages

Another time, I had to rename the original cloned CoolProp folder to stop Python3 finding it when importing:

sudo mv PATH/TO/CLONE/FOLDER/CoolProp PATH/TO/CLONE/FOLDER/_CoolProp-master

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcycle-0.1.3.tar.gz (55.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcycle-0.1.3-py3-none-any.whl (88.7 kB view details)

Uploaded Python 3

File details

Details for the file mcycle-0.1.3.tar.gz.

File metadata

  • Download URL: mcycle-0.1.3.tar.gz
  • Upload date:
  • Size: 55.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mcycle-0.1.3.tar.gz
Algorithm Hash digest
SHA256 65865870b1363eb31b9bf4d679119a55a55661afeea347c5e55c73c96c7c0339
MD5 c7989d8953b255b76c25affb987bf701
BLAKE2b-256 bcced66bb9ac845a5be89dd0a30f23ce03ba0bc045718b11685d522c7489d104

See more details on using hashes here.

File details

Details for the file mcycle-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mcycle-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 359863d6a24886b51cfd0f7a0ceb8d8ae1532f8944e6cad40e93d4174ce3b30a
MD5 f2668060c97fc90bf7cf6ad363050ee7
BLAKE2b-256 71731312d83e3f73ab55d9db5b8df1bd9544aec7775209a8b578e068b9523331

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page