© 2021 Jasper van Baten, AmsterCHEM

Matlab CAPE-OPEN Unit Operation

The Matlab CAPE-OPEN Unit Operation is a unit operation implementation for which the calculations can be entered in Matlab.

To get started with the Matlab CAPE-OPEN unit operation, start your CAPE-OPEN capable simulation environment. Insert a Matlab CAPE-OPEN unit operation. Edit a unit operation. Define feed and product ports. Go back to the simulation environment and connect streams to the ports.

Now edit the unit operation again. On the Matlab tab, you can enter the Matlab calculation script. This script can obtain feed properties using the getFeedProp function. It can then do calculations, using thermo-dynamic calculations that are based on the underlying thermodynamic system of the simulation environment the unit operation is running in. It must specify all the product streams using setProduct, that takes composition and flow as well as two other properties required to specify the thermodynamic phase equilibrium.

A very simple example script would look like:

f1=getFeedProp(1,'flow') f2=getFeedProp(2,'flow') h1=getFeedProp(1,'enthalpy') h2=getFeedProp(2,'enthalpy') p1=getFeedProp(1,'pressure') p2=getFeedProp(2,'pressure') p=min(p1,p2) f=f1+f2 h=(h1*f1+h2*f2)/f totF=sum(f) setProduct(1,totF,f/totF,'pressure',p,'enthalpy',h)


The Matab unit operation will function in CAPE-OPEN compliant simulation environments that support version 1.1 thermodynamics or version 1.0 thermodynamics. It has been tested in COCO simulator, SciSci ProII, AspenPlus, Honeywell Unisim Design and other simulators.

Matlab version 7.7 or higher must be installed and running at your system. The Matlab CAPE-OPEN unit operation has been tested with Matlab versions 7.7, 7.8, 7.9, 7.10, 7.11, 7.12, 7.13, 7.14, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5, 8.6, 9.0, 9.1, 9.2, 9.3, 9.4, 9.5, 9.6, 9.7, 9.8, 9.9 and 9.10.

More information


The Matlab CAPE-OPEN Unit Operation installer is available from the Downloads Page.

The Matlab CAPE-OPEN Unit Operation is free of charge for personal and academic use.

For commercial use, a license fee must be paid. Licensing is on a per-person basis (and can be used on multiple computers). Commercial license fee is € 400,- (if you are outside the European union or inside Spain, VAT of 21% is applicable).

For other forms of licenses, please contact info@amsterchem.com.

Please see the Downloads page for downloading the Matlab CAPE-OPEN Unit Operation.

Change log

Version 1.0.5

Version 1.0.6

Version 1.0.7

Version 1.0.8

Version 1.0.9

Version 1.0.10

Version 1.0.11

Version 1.0.12

Version 1.0.13

Version 1.0.14

Version 1.0.15

Version 1.0.16

Version 1.0.17

Version 1.0.18

Version 1.0.19