Giter Club home page Giter Club logo

hensad's Introduction

HENSAD

This HENSAD (Heat-Exchanger Network Synthesis Analysis and Design) software implementation is nothing more than a "port" of the previous version developed by Dr. Turton at West Virginia University.

Why the update if there is already a working software?

Well, I have used the first version of the sofware, and even though it works just fine, it does not have the best user experience to it (due the year it was developed in 2001).

This is just an update, made by me, to the user experience of the previous software with minor enhancements (e.g. I have included the Heat-Exchanger Network cost calculations using the updated procedures from the same book, etc.), and a minor bug correction in the EAOC calculation. Everything else, is basically the same with a new GUI.

Also, there is a pure python package module under the src folder that can be used by anyone who knows the basics of Python, NumPy and Pandas in more "bare" calculations.

Installation

There are two ways of installation:

  1. Download the binaries from the releases page and run the application. Simple as that. No need to install python or any other package. This is Windows OS only though.

  2. For those who know their way around Python and its packages:

    1. clone the repository to your machine;
    2. create a python virtual environment of your choice;
    3. install the dependencies through the pip install -r requirements.txt command;

    From now on, you can:

    1. Simply import/copy the hensad module under the src folder to use the HENSAD functions programmatically in your calculations;
    2. Initialize the GUI by running the command python path/to/mainwindow.py. The mainwindow.py file is located under the gui folder in the src directory.

GUI Usage

We are going to redo the example from the Chapter 15 on Pinch technology of the Analysis, Synthesis and Design of Chemical Processes book.

  1. We start by filling the thermal data from the process streams on both hot and cold sides.

    Thermal data input

    As soon the data is filled and a minimum temperature approach is chosen you will see the results summary at the bottom table with the amount of intervals and the enthalpy transfer quantities between the intervals. On the right of the results table you can see pinch intervals, its values, if there are any, and the minimum number of heat exchangers needed.

    If you want to know the heat exchanger network (HEN) areas, you will need to input the heat transfer coefficient data aswell.

    Thermal data input complete

    On the top right you can choose the units, and which information/graph you wish to extract from the stream data you supplied.

    Thermal data input complete

  2. Temperature interval diagram: just press the button and a new dialog will pop up on your screen.

    Temperature interval diagram

    The slider at the top of the dialog is linked to the minimum temperature approach value. If you wish to see different temperature interval scenarios, you simply need to move the slider.

  3. Cascade diagram: same thing as the temperature interval diagram. Press the button. Same logic applies to the slider in the dialog.

    Cascade diagram

  4. Design above and below pinch interval: In order to design your heat-exchanger networks above and below pinch you will need the heat transfer coefficient data of the streams. Then you can click on the "Design Tool" button. This will open another dialog.

    In this dialog you can add either process or utility heat-exchangers. To add a process stream heat-exchanger you have to click and hold on a "source" stream and drag the mouse to the "destination" stream.

    Design tool

    After this, you will be prompted to enter the heat-exchanger data required.

    Process heat exchanger input

    Process heat exchanger input filled

    If everything goes accordingly, this will be the result:

    Process heat exchanger added

    The end result of adding all the process heat-exchangers above the pinch will look like this:

    Above pinch added

    When adding an utility heat exchanger, you have to right-click which stream you want to insert the equipment.

    Utility heat exchanger click

    Then you fill the equipment data form:

    Utility heat exchanger filled

    The end result for the network above the pinch will look like this:

    Utility heat exchanger filled

    Design below the pinch:

    Since you need to split a cold stream, you must right-click the stream and "split". A new dialog will pop up asking you the number of streams to split into and the mass flowrate for each split:

    Stream split right click

    Stream split input dialog

    Stream split finished

    The we proceed the same way as the design above the pinch:

    Here we change the type of heat exchanger to Double pipe with conventional tube arrangement!

    Cold utility heat exchanger input

    This is the final design for above and below the pinch:

    Design completed

  5. The composite temperature-enthalpy diagram: Same thing as the cascade and temperature interval diagrams. Press the button and change the slider.

    Composite temperature-enthalpy diagram

  6. Equivalent annual operating cost (EAOC): Here you simply provide the minimum temperature approach range and the type of heat-exchanger parameters. Then you plot the EAOC and heat-exchanger network area curves.

    EAOC and HEN area

Contributions and status

Right now I can't keep maintaining this project due time constraints. However feel free to open issues, pull request or any comment kind of feedback. I will try to respond as soons as I can. :)

hensad's People

Contributors

feslima avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.