Skip to main content

Tools for performing exergo-economic and exergo-environmental analysis

Project description

3ETool

3ETool contains some useful tools developed by the SERG research group of the University of Florence for performing exergo-economic and exergo environmental analysis. The user manual can be downloaded here. Moreover, some youtube tutorials have been uploaded in order to help the user in compiling the excel file.

!!! NEW DRAG & DROP FUNCTIONALITY 🥳🎉!!!

With the new drag & drop functionality, the user can simply define the topology using a graphical interface and then run the calculation starting from there. to use this feature, the user has to run the following command:

from EEETools import run_drag_drop_server
run_drag_drop_server()

This will run a server on the localhost, and the user can access it using the following link http://localhost:8002

1 - Calculation process 🤔⚙

The beta version can be downloaded using PIP:

pip install 3ETool

Once the installation has been completed the user can import the tool, and paste to a desired location the user manual, the components documentation or the default excel file, as in the matlab version of the app.

import EEETools

EEETools.paste_user_manual()
EEETools.paste_components_documentation()
EEETools.paste_default_excel_file()

Finally, once the Excel file has been compiled, the calculation can be initialized trough this command:

import EEETools

EEETools.calculate()

calculation options and user defined excel path can be passed to the function as well (default values are true); in case user does not pass the path, the app will automatically open a filedialog window so that it can be selected manually

import EEETools

EEETools.calculate(
    
    excel_path="your_excel_file.xlsx",
    calculate_on_pf_diagram = True, 
    loss_cost_is_zero = True, 
    valve_is_dissipative = True, 
    condenser_is_dissipative = True

)

2 - Debugging tools 👨‍💻🔍

Excel file can be debugged using some specific tools that can be launched using the following command (please select the Excel file that you want to debug on program request):

import EEETools
EEETools.launch_connection_debug()

Another possible way of debugging the code is to ask the program to export the debug information on the Excel file:

import EEETools
EEETools.export_debug_information()

Finally, topology can be displayed using:

import EEETools
EEETools.launch_network_display()

3 - Sankey Diagrams 📈📊

Sankey diagram can be plotted using the following command:

import EEETools
EEETools.plot_sankey(
    
    generate_on_pf_diagram=True,
    display_costs=True,

)
  • generate_on_pf_diagram can be omitted and is True by default:

    • if False the connections are defined according to the physical topology of the plant
    • if True the connections are based on the product-fuel definition
  • display_costs can be omitted and is False by default:

    • if False the thickness of the connection in the sankey diagram is proportional to the exergy flux between the components (in kW)

    • if True the thickness of the connection in the sankey diagram is proportional to the economic (or environmental) flux between the components (in €/s or in Pts/s). In addition, for each connection, the color intensity is proportional to the relative cost of the stream (in €/kJ or in Pts/kJ)

4 - Code Structure 📁

The application code is divided into 3 main folders:

MainModules directory contains Base modules such as Block, Connection, ArrayHandler and Drawer Classes.
Block Sublcasses contains a Block subclass for each component type (e.g. expander, compressor etc.)
Tools contains different APIs needed for the program to run (e.g. the cost correlation handler, the EES code generator, and the importer and exporter for both Excel and xml files)

5 - Important Information ⚠

-------------------------- !!! THIS IS A BETA VERSION !!! --------------------------

please report any bug or problems in the installation to pietro.ungar@unifi.it
for further information visit: https://tinyurl.com/SERG-3ETool

-------------------------------- !!! HOW TO CITE !!! --------------------------------

The following reference can be used to cite the tool in publications:

Fiaschi, D., Manfrida, G., Ungar, P., Talluri, L. 

Development of an exergo-economic and exergo-environmental tool for power plant assessment: 
evaluation of a geothermal case study.

https://doi.org/10.52202/062738-0003

Project details


Release history Release notifications | RSS feed

This version

0.9.4

Download files

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

Source Distribution

3ETool-0.9.4.tar.gz (22.7 MB view details)

Uploaded Source

File details

Details for the file 3ETool-0.9.4.tar.gz.

File metadata

  • Download URL: 3ETool-0.9.4.tar.gz
  • Upload date:
  • Size: 22.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.13

File hashes

Hashes for 3ETool-0.9.4.tar.gz
Algorithm Hash digest
SHA256 acc442aeaed93619d948a61ffefaefc7225dc843842d5ead61944024d644bfcc
MD5 0ee5f7b853bc65cb041eb539be465479
BLAKE2b-256 01b08c2460f7130cc33f11506a32bd77b65f55fdff08856461bf76a45bfe11c8

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