© 2024 Jasper van Baten, AmsterCHEM

capeOpenCreatePackage

Creates or retrieves a handle to a CAPE-OPEN property package. This handle can be used in subsequent calls to all information functions and property or equilibrium calculation functions.

A list of installed property package managers can be obtained using capeOpenPackageManagers. The names of property packages exposed by a given property package manager can be obtained using capeOpenPackages.

A property package must always be created before it can be used.

Syntax

handle=capeOpenCreatePackage(mgr,packageName)

Arguments

mgr: string, name of an installed property package manager or stand-alone property package

packageName: string, name of the property package to create. The value of the string is ignored for a stand-alone property package.

Returns

handle: handle to the created property package.

Example


» mgrs=capeOpenPackageManagers()

mgrs = 

    'Multiflash Property Package Manager'
    'Simulis CAPE-OPENr Thermo System (1.0) / P.P.M. (1.1)'
    'Water'
    'VMG Thermo Property Package Manager 1.1'
    'OATS Property Package Manager (CAPE-OPEN 1.1)'
    'TEA (CAPE-OPEN 1.1)'

» tea=mgrs(6)

tea = 

    'TEA (CAPE-OPEN 1.1)'

» capeOpenPackages(tea)

ans = 

    'C1_C2'
    'C1_C2 (EOS)'
    'n-depropropanizer'
    'alkanes'
    'HDA'
    'Water-nButanol-UNIQUAC'
    'ethane prod'
    'test'
    'Ethanol2Ether'

» handleC1C2=capeOpenCreatePackage(tea,'C1_C2')

handleC1C2 =

        7772

» handleC1C2=capeOpenCreatePackage('TEA (CAPE-OPEN 1.1)','C1_C2')

handleC1C2 =

        7772

»  % note that the package is not re-created and the handle is the same
» capeOpenPackages('Water')

ans = 

    '(stand-alone)'

» handleWater=capeOpenCreatePackage('Water','')

handleWater =

       32053
 
INDEX
Basis conversions
Calculations
capeOpen1PhaseProp
capeOpen1PhasePropList
capeOpen2PhaseProp
capeOpen2PhasePropList
capeOpenAbout
capeOpenAggregationState
capeOpenCompoundConstant
capeOpenCompounds
capeOpenConstantList
capeOpenCreatePackage
capeOpenEquilibrium
capeOpenEquilibriumProp
capeOpenFlashPropList
capeOpenGetPackage
capeOpenGetPackageName
capeOpenGetPackages
capeOpenHelp
capeOpenKillAllPackages
capeOpenKillPackage
capeOpenPackageManagers
capeOpenPackages
capeOpenPDepPropList
capeOpenPhases
capeOpenPropUnit
capeOpen Quick Reference
capeOpenSetBasis
capeOpenShowMessages
capeOpenTDepProp
capeOpenTDepPropList
capeOpenThermoVersion
Disclaimer
Equilibrium calculations
Information
License
Matrix dimension conventions
Obtaining package information
Package information
Package maintenance
Property calculations
Registration with Matlab
pathdef.m
System requirements
Welcome
CONTENT
 Welcome
 Introduction
 Package Maintenance
 capeOpenPackageManagers
 capeOpenPackages
 capeOpenCreatePackage
 capeOpenGetPackage
 capeOpenKillPackage
 capeOpenKillAllPackages
 capeOpenGetPackages
 Package information
 Property and equilibrium calculations
 General functions
 License and disclaimer