Skip to main content

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).

Metadata

Release files for orcpy 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for orcpy 0.1.2
File Size Uploaded
orcpy-0.1.2.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for orcpy 0.1.2
File Interpreter ABI Platform
orcpy-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / orcpy-0.1.2.tar.gz

Download URL orcpy-0.1.2.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
66f0e1eaff8a16b723e507738f9d586cf6eba2d13284b45bc63e420ce1094cfa
BLAKE2b-256 checksum
How to use checksums
8adb41ac1d7ccc89fd85044c6e835171a94698ca4a825846a023bcea9589702e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.8.5 Windows/10

Release files / orcpy-0.1.2-py3-none-any.whl

Download URL orcpy-0.1.2-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0943abbe3a11a6a7de2edbeb4e6bef79c9ec568c1bca85714bb8c1506bec8bfe
BLAKE2b-256 checksum
How to use checksums
7b90a170bf06acc62bef4d17243b925227f3740b73f04cafd12b107db99f7ddb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.8.5 Windows/10

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page