© 2024 Jasper van Baten, AmsterCHEM

SciLab CAPE-OPEN Unit Operation

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

To get started with the SciLab CAPE-OPEN unit operation, start your CAPE-OPEN capable simulation environment. Insert a SciLab 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 SciLab tab you can enter the SciLab 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)

Requirements

The SciLab unit operation will function in CAPE-OPEN compliant simulation environments that support version 1.1 thermodynamics. It has been tested in the COCO simulator and ProSimPlus 3.

The 32-bit version of SciLab 5.02 (or higher) or the 64-bit version of SciLab 5.4 (or higher) must be installed and running at your system. You can obtain a copy of SciLab from http://www.SciLab.org/.

COCO/CAPE-OPEN Compliant
CAPE-OPEN/COCO
Compliant

More information

Availability

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

The SciLab 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 for a perpetual license is € 150,- (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 SciLab CAPE-OPEN Unit Operation.

Example

This membrane separator SciLab CAPE-OPEN unit operation was provided by Torbjørn Pettersen - Thermos AS - Norway:

SciLab CAPE-OPEN unit operation example

The example is set up in COFE and is available for download:

FSDBioGasSeparationScilab.fsd

Change log

Version 1.0.4

Version 1.0.5

Version 1.0.6

Version 1.0.7

Version 1.0.8

Version 1.0.9

Version 1.0.10.0

Version 1.0.10.0

Version 1.0.11.0

Version 1.0.13.0

Version 1.0.14.0

Version 1.0.15.0

Version 1.0.16.0

Version 1.0.17.0

Version 1.0.18.0

Version 1.0.19.0

Version 1.0.20.0

Version 1.0.21.0

Version 1.0.22.0

Version 1.0.23.0

Version 1.0.24.0

Version 1.0.25.0

Version 2.0.0.0

Version 2.0.0.1

Version 2.0.0.2

Version 2.0.0.3

Version 2.0.0.4

Version 2.0.0.5

Version 2.0.0.6

Version 2.0.0.7

Version 2.0.0.8

Version 2.0.0.9

Version 2.0.0.10

Version 2.0.0.11

Version 2.0.0.12

Version 2.0.0.13

Version 2.0.0.14

Version 2.0.0.15

Version 2.0.0.16

Version 2.0.0.17

Version 2.0.0.18

Version 2.0.0.19