1 |
# common set of statements to set up testing. These load |
# common set of statements to set up testing. These load |
2 |
# the correct files for all subsequent testing. |
# the correct files for all subsequent testing. |
3 |
# |
# |
4 |
# These models allow the streams to have different |
# These models allow the streams to have different |
5 |
# components in them. |
# components in them. |
6 |
|
|
7 |
DELETE TYPES; |
DELETE TYPES; |
8 |
READ FILE "simpleUnits.a4c"; |
READ FILE "simpleunits.a4c"; |
9 |
|
|
10 |
|
|
11 |
# remaining statements needed to test unit with |
# remaining statements needed to test unit with |
12 |
# one feed, one product |
# one feed, one product |
13 |
|
|
14 |
COMPILE t11 OF testUnitOneInOneOut; |
COMPILE t11 OF testUnitOneInOneOut; |
15 |
BROWSE {t11}; |
BROWSE {t11}; |
16 |
RUN {t11.values}; |
RUN {t11.values}; |
17 |
RUN {t11.specify}; |
RUN {t11.specify}; |
18 |
SOLVE {t11} WITH QRSlv; |
SOLVE {t11} WITH QRSlv; |
19 |
|
|
20 |
|
|
21 |
# remaining statements needed to test unit with |
# remaining statements needed to test unit with |
22 |
# one feed, two products |
# one feed, two products |
23 |
|
|
24 |
COMPILE t12 OF testUnitOneInTwoOut; |
COMPILE t12 OF testUnitOneInTwoOut; |
25 |
BROWSE {t12}; |
BROWSE {t12}; |
26 |
RUN {t12.values}; |
RUN {t12.values}; |
27 |
RUN {t12.specify}; |
RUN {t12.specify}; |
28 |
SOLVE {t12} WITH QRSlv; |
SOLVE {t12} WITH QRSlv; |
29 |
|
|
30 |
|
|
31 |
# remaining statements needed to test unit with |
# remaining statements needed to test unit with |
32 |
# two feeds, one product |
# two feeds, one product |
33 |
|
|
34 |
COMPILE t21 OF testUnitTwoInOneOut; |
COMPILE t21 OF testUnitTwoInOneOut; |
35 |
BROWSE {t21}; |
BROWSE {t21}; |
36 |
RUN {t21.values}; |
RUN {t21.values}; |
37 |
RUN {t21.specify}; |
RUN {t21.specify}; |
38 |
SOLVE {t21} WITH QRSlv; |
SOLVE {t21} WITH QRSlv; |
39 |
|
|
40 |
|
|
41 |
# test simple compressor |
# test simple compressor |
42 |
|
|
43 |
COMPILE tsc OF testSimpleCompressor; |
COMPILE tsc OF testSimpleCompressor; |
44 |
BROWSE {tsc}; |
BROWSE {tsc}; |
45 |
RUN {tsc.values}; |
RUN {tsc.values}; |
46 |
RUN {tsc.reset}; |
RUN {tsc.reset}; |
47 |
SOLVE {tsc} WITH QRSlv; |
SOLVE {tsc} WITH QRSlv; |
48 |
ASSIGN {tsc.equil} true {*}; |
ASSIGN {tsc.equil} true {*}; |
49 |
SOLVE {tsc} WITH QRSlv; |
SOLVE {tsc} WITH QRSlv; |
50 |
|
|
51 |
|
|
52 |
|
|