Skip to main content

A python package for designing organic Rankine cycles

Project description

orcpy

orcpy: A lightweight Python module that applies thermodynamic principles, analysing a given set of heat source and heat sink data to find the optimum design parameters of an organic Rankine cycle for waste heat recovery projects.

Table of contents

Description

orcpy is a Python package which can come to your aid to deal with Waste heat recovery (WHR) projects. This package can give you the optimum pressure level, working fluid and mass flow rate to obtain maximum power generation and heat recovery, considering the constraints of your project such as the minimum allowable temperature of the waste heat stream and condenser.

Problem definition

First step is formalization of the problem in the orcpy framework. The optimization problem which orcpy is desigend to solve is shown below:

Maximization fwork (pressure level)

sub. to:

waste heat temperature > Tdew

temperature difference in heat exchangers > $\Delta$Tmin

evaporator pressure < 0.85 Pcritical

condenser temperature > Tallowable

condenser pressure > 1 bar

Problem solution

After defining it, we want of course to solve such a problem. To this aim, the orcpy package uses a golden section search approach to find the optimum pressure level between the upper (0.85 Pcritical) and the lower (Pcondenser) boundaries. The input variables that should be given to the orcpy are as follow:

  • The inlet temperature for the waste stream (ºC) for ORC systems it is usually less than 400

  • The outlet temperature for the waste stream (ºC) for flue gas it is usually more than 70

  • The power of the waste stream (kW)

  • The heat capacity of the waste stream (kJ / kgºC) for water it is 4.186 and for air (flue gas) it is about 1

  • The minimum temperature of the condenser (ºC) for ORC systems it is usually more than 40

  • The minimum temperature difference (ºC) 10 is a typical value for this parameter

  • Isentropic efficiencies of turbine and pump (%)

    knowing these parameter, orcpy will give you optimum design parameters of the ORC system.

Dependencies and installation

orcpy requires numpy, pandas, CoolProp, pina, plotly. The code is tested for Python 3, while compatibility of Python 2 is not guaranteed anymore. It can be installed using pip or directly from the source code.

Installing via PIP

To install the package just type:

> pip install orcpy

To uninstall the package:

> pip uninstall orcpy

Examples and Tutorials

To use orcpy after installation of requierd packages just type:

> from orcpy import design
Results, figure = design.ORC.cycle("all")

Next, the orcpy will ask you input variables. instead of "all" you can input a list of working fluids you want to analyze. You can also use orcpy as a function:

> from orcpy import design
Results, figure = design.ORC.model (400, 100,40, 4, 90, 90, 10, 40, "all")
   #model (inlet temperature,
           #minimum allowable temperature,
           #Power of waste strean,
           #Heat capacity of waste stream,
           #turbine efficiency,
           #pump efficiency,
           #minimum temperature difference in heat exchangers,
           #minimum condenser temperature,
           #list of working fluids)

Authors and contributors

orcpy is developed and mantained by

under the supervision of Prof. Ramin Roshandel and Prof. Mohammad B. Shafii

Contact us by email for further information or questions about orcpy, or suggest pull requests. Contributions improving either the code or the documentation are welcome!

License

See the LICENSE file for license rights and limitations (MIT).

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

orcpy-0.1.2.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

orcpy-0.1.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file orcpy-0.1.2.tar.gz.

File metadata

  • Download URL: orcpy-0.1.2.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.8.5 Windows/10

File hashes

Hashes for orcpy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 66f0e1eaff8a16b723e507738f9d586cf6eba2d13284b45bc63e420ce1094cfa
MD5 5d110cad095dfcac50a0d32eddffd367
BLAKE2b-256 8adb41ac1d7ccc89fd85044c6e835171a94698ca4a825846a023bcea9589702e

See more details on using hashes here.

File details

Details for the file orcpy-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: orcpy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.8.5 Windows/10

File hashes

Hashes for orcpy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0943abbe3a11a6a7de2edbeb4e6bef79c9ec568c1bca85714bb8c1506bec8bfe
MD5 84b3c0ba3b733eb5b674e30af82974f1
BLAKE2b-256 7b90a170bf06acc62bef4d17243b925227f3740b73f04cafd12b107db99f7ddb

See more details on using hashes here.

Supported by

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