Home¶
What does this package do?¶
aspen-pysys is an unofficial Python API (application programming interface) for Aspen HYSYS, which allows for convenient bidirectional data flow between your Python code and HYSYS.
In other words, this API enables users to programmatically obtain and update values on the Aspen HYSYS app through a highly abstracted Python layer.
It also strongly employs statically typed code to help your IDE look out for type misalignment and prevent runtime errors. Consequently, there are several types to represent different HYSYS data, ranging from simulation cases to heat exchangers.
Retrieving names of feeds attached to a HYSYS Separator model
Why did you make this?¶
As a student who had to use Aspen HYSYS for their final year project, this enabled me to quickly retrieve information within a few lines as opposed to spending significantly more time by repeatedly dragging windows to where I could see them on my screen (iykyk).
I've also used it for other use cases such as but not limited to:
- optimising distillation columns by changing feed locations to get minimum loads,
- flagging out mixed-phase flows where there shouldn't be,
- and flagging out minimum temperature difference violations in heat exchangers.
Also, comment from a nice Redditor:
This is actually sick.
The “dragging windows around to see values” line is painfully real. Aspen/HYSYS has this special ability to make you feel like half the work is engineering and half the work is negotiating with the UI.
I'd like to learn more!¶
- Feel free to go through the quickstart page for, well, a quick start into the API.
- Or if you'd like to learn through examples, there's a page for that too.
- If you want to get into the nitty-gritty, the API reference offers a bigger picture into what this API has to offer.
- Other resources you might find useful:
| Link | Description |
|---|---|
| edgarsmdn/Aspen_HYSYS_Python | I was inspired by this Aspen HYSYS Python interface to build my own. |
| YouMayCallMeJesus/AspenPlus-Python-Interface | Found this Python interface if you're looking to interact with Aspen Plus instead. |
