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. It has been tested in the COCO simulator.
Matlab version 5.3 (32-bits) or higher, or Matlab version 7.1 (64-bits) or higher must be installed and running at your system. The Matlab CAPE-OPEN unit operation has been tested with Matlab versions 5.3, 6.1, 7.7, 7.8, 7.9, 7.10, 7.11, 7.12, 7.13, 7.14, 8.0, 8.1 and 8.2.
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). Commerical license fee is € 400,- (if you are outside the European union or inside Spain, VAT of 21% is applicable).
For obtaining a free non-commerical registration number, fill in the following form:
For obtaining a commerical license and registration number, fill in the following form:
For other forms of licenses, please contain mailto:info@amsterchem.com.
Please see the Downloads page for downloading the Matlab CAPE-OPEN Unit Operation.
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