This is a Python package for AspenPlus manipulating. It contains basic operation like read stream data, block data, get the equipment sizing data. Additionally, it include some function for connecting the data from AspenPlus file to MS Visio file, but it have to built the Visio file first.
It is a very time-consuming procedure for copying the data from the AspenFile to VisioFile and optimization the process hand by hand. I want to build the program can automatic do these kind of things.
After installing the pyAspenPlus package, the package should be imported:
import pyAspenPlus
and you have to built the Aspen instance and give the AspenFile path to them:
Aspen = pyAspenPlus.AP(path)
You can start to use this package now!!!
The later part will let you now how to get the data from AspnFile.
If you want to know the temperature of stream FF, you should:
Aspen.Stream.getTemperature('FF')
If you want to know the unit of this data:
Aspen.Stream.getTemperature('FF', get_unit=True)
- Could get the stream data like moleflow, molefraction, temperature... etc.
- Could get the distillation column data like total number of stages, diameter, height... etc.
- Could get the decanter data like diameter, height, volume.
- Could get the extractor data like total number of stages, diameter, height.
- Could get the heater data like area, heat transfer duty.
To-do list:
- TAC calculation
- Automatically optimization procedure.
Project is: in progress.
In the future, it may add a new feature of TAC calculation and
automatically optimization function.
These code are based on the AspenPlus V10 user guide and MS Visio VBA reference.
This project is licensed under the MIT License - see the LICENSE.md file for details
Created by @Shen, Shiau-Jeng - feel free to contact me!