Skip to content

Tool to convert DEXPI-P&ID-Flowsheets into GraphML-graphs!

License

Notifications You must be signed in to change notification settings

jonasoei/DEXPI2graphML

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEXPI2graphML-Converter

Tool to convert DEXPI-P&ID-Flowsheets into GraphML-graphs, which can be processed in ML/DL-applications via python (e.g. pytorch, keras etc.)

  • DEXPI (specification [1]) provides machine-readable plant topology data
  • Availability for application in artificial intelligence
  • Conversion via a graphical user interface

SelfHTML-Logo

Figure 1. Idea of converting a DEXPI Piping- and Instrumentation Diagram (P&ID) into a graphML graph representation.

Note:

The skript was tested with P&ID-flowsheets (DEXPI-xml) created with the software PlantEngineer developed by X-Visual Technologies. It is important, that the connection of all MS Visio shapes are correctly connected by the user. Otherwise the tool will not achieve the desired output because of mission topology information of the DEXPI files.

Install:

The converter is available as an application well as for Python. A application for Windows 10 will be available soon.

Python installation

  1. Install Python (anaconda) from https://www.anaconda.com/products/individual
  2. Load the following python libraries
  3. Download the folder dexpi2graph_python.
  4. Running the script dexpi2graphML.py starts the converter.

How to Use:

The DEXPI2graphML converter consists a graphical user interface (GUI) shown in Figure 2. On the upper left side you find a bar to browse the input folder, which containts the DEXPI-P&IDs you want to convert. On the left handside a console shows the output as well as the error log of the conversion process. On the left handside you will find a plot window which shows the converted plots.

dexpi2graph GUI

Figure 2. GUI of the DEXPI2graphML converter.

Example P&ID files:

The folder DEXPI_examples containts two different DEXPI P&IDs:

References:

[1] DEXPI Initiative, DEXPI specification 1.3, https://dexpi.org/specifications/, accessed on 25.08.2021
[2] NetworkX developers, online documentation, https://networkx.org/, accessed on 09.03.2022
[3] Matplotlib development team, online documentation, https://matplotlib.org/, accessed on 09.03.2022
[4] Pandas development team, online documentation, https://pandas.pydata.org/, accessed on 09.03.2022
[5] NLTK project, online documentation, https://www.nltk.org/, accessed on 09.03.2022
[6] Alex Clark and contributors, online documentation, https://pillow.readthedocs.io/en/stable/, accessed on 09.03.2022
[7] PySimpleGUI, online documentation, https://pysimplegui.readthedocs.io/en/latest/, accessed on 09.03.2022
[8] lxml development team, online documentation, https://lxml.de/, accessed on 09.03.2022
[9] Oeing, J., Neuendorf, L.M., Bittorf, L., Krieger, W. and Kockmann, N. (2021), Flooding Prevention in Distillation and Extraction Columns with Aid of Machine Learning Approaches. Chem. Ing. Tech., 93: 1917-1929. https://doi.org/10.1002/cite.202100051
[10] Baerns, M., Behr, A., Brehm, A., Gmehling, J., Hinrichsen, K.-O., Hofmann, H., & Onken, U., Palkovits, R., Renken, A. (2013). Technische Chemie. Wiley-VCH, Weinheim.

About

Tool to convert DEXPI-P&ID-Flowsheets into GraphML-graphs!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%