ChemCAD 5 services to visual basic applications: User Manual, страница 9

Argument

Type

Description

compPos

short[]

component position on the component list [in]

Description      For a user-supplied stream, all stream properties can be retrieved from IStreamProperty interface. Each item of stream properties is identified by an integer as given on the tables below.                                   

Property ID

Stream Property Description (components)

Units

-i

-(i+200)

-(i+400)

-(i+600)

-(i+800)

-(i+1000)

Mole flow rate of the ith component

Mass flow rate of the ith component

Std liquid volume flow rate of the ith component

Mole fraction of the ith component

Mass fraction of the ith component

Std liquid volume fraction of the ith component

Lbmol/hr

lb/hr

ft3/hr

Property ID

Stream Property Description (total)

Units

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21     

22     

Temperature

Pressure

Mole vapor fraction

Enthalpy

Total mole rate

Total mass rate

Total std liquid volume rate

Total std vapor volume rate

Total actual volume rate

Total actual density

Total Mw

Gross H value

Net H value

Reid vapor pressure

UOPK

VABP

MeABP

Flash point

Pour point

Total entropy

Mass vapor fraction

PH value

R

psia

Btu/hr

lbmol/hr

lb/hr

ft3/hr

ft3/hr

ft3/hr

lb/ft3

Property ID

Stream Property Description (vapor)

Units

26

27

28

29

30

31

32

33

34

35

36

37

38

Vapor mole rate

Vapor mass rate

Vapor enthalpy

Vapor entropy

Vapor Mw

Vapor actual density

Vapor actual volume rate

Vap std. Liquid volume rate

Vap std. Vapor volume rate

Vapor cp

Vapor Z factor

Vapor viscosity

Vapor thermal conductivity

Property ID

Stream Property Description (liquid)

Units

41

42

43

44

45

46

47

48

49

50

51

52

53

54

Liquid mole rate

Liquid mass rate

Liquid Enthalpy

Liquid Entropy

Liquid Mw

Liquid actual density

Liquid actual volume rate

Liquid std. Liquid volume rate

Liquid std. Vapor volume rate

Liquid cp

Liquid Z factor

Liquid viscosity

Liquid thermal conductivity

Liquid surface tension

Definition        dispinterface IStreamProperty

        {

        methods:

               short GetNoOfComponents();

short DefineStream(float tempR, float presPsia, float moleVapFrac,         float   enthBut_Hr, VARIANT compFlowLbmol_Hr);

               float GetStreamProperty(short propID);

        };

Methods          To calculate stream properties, user first has to define a stream using

                        Method             DefineStream

                        Returns                        number of data items received from array compFlowLbmol_Hr

Argument

Type

Description

tempR

presPsia

moleVapFrac

enthBtu_Hr

compFlowLbmol_Hr

float

float

float

float

float[]

Temperature (R) [in]

Pressure (psia) [in]

Mole vapor fraction [in]

Enthalpy (Btu/hr) [in]

Component flowrates (lbmol/hr) [in]

After a valid stream is specified, its properties can be retrieved one at a time from

            Method             GetStreamProperty

            Returns                        stream property

Argument

Type

Description

propID

short

Stream property ID [in]

Example

UNIT SPECIFICATION DATA

Each unit operation on a flowsheet is specified by assigning values to a set of parameters. This set of parameters are used during the simulations to determine the interior processing conditions of the unit. Some parameters may need to be updated during simulation runs.