Python Unit Operation

A CAPE-OPEN based Unit Operation where the modelling instructions are given in Python

Moderator: jasper

Python Unit Operation

Postby jasper » 05 May 2021, 06:18

A new, CAPE-OPEN based, Python Unit Operation PMC is available from here:

https://www.amsterchem.com/pythonunitoperation.html

The Python Unit Operation can be used in CAPE-OPEN 1.1 and 1.2 compliant PMEs. In 32-bit (x86) PMEs, a 32-bit Python Unit Operation will require a 32-bit Python installation. For 64-bit (x64) PMEs, a 64-bit Python Unit Operation will require a 64-bit Python installation. The unit operation has a rich GUI, based on the Scintilla editor control:

editwindow.png
editwindow.png (97.34 KiB) Viewed 15626 times


A Configure function is defined that allows for creation of material-, energy- and information ports, for real-, integer-, boolean-, string- and real-array parameters, text reports, and even image reports:

profileplot.png
profileplot.png (42.38 KiB) Viewed 15626 times


Instructions in the form of examples are provided here:

https://www.amsterchem.com/pythonunitoperationexample.html

A reference on the provided API is here:

https://www.amsterchem.com/pythonunitoperationhelp.html

The unit operation is free for academic use.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Return to Python Unit Operation (AmsterCHEM)

Who is online

Users browsing this forum: No registered users and 1 guest

cron