1 | #*------------------------------------------------------------------- |
---|
2 | |
---|
3 | *--------------------------------------------------------------------*# |
---|
4 | |
---|
5 | using "streams"; |
---|
6 | |
---|
7 | FlowSheet SampleStreams |
---|
8 | |
---|
9 | PARAMETERS |
---|
10 | NComp as Integer(Default=5); |
---|
11 | |
---|
12 | VARIABLES |
---|
13 | #Syntax with no error |
---|
14 | #dPdL as positive (Brief = "Presure Gradient", Lower = 0, Unit = 'Pa/m', DisplayUnit = 'kPa/m'); |
---|
15 | |
---|
16 | #Syntax with error |
---|
17 | dPdL as positive (Brief = "Presure Gradient", DisplayUnit = 'kPa/m', Lower = 0, Unit = 'Pa/m'); |
---|
18 | |
---|
19 | DEVICES |
---|
20 | s1 as stream; |
---|
21 | |
---|
22 | EQUATIONS |
---|
23 | |
---|
24 | dPdL = 5*'Pa/m'; |
---|
25 | |
---|
26 | SPECIFY |
---|
27 | s1.F = 10 * 'kmol/h'; |
---|
28 | s1.T = 300 * 'K'; |
---|
29 | s1.P = 1 * 'atm'; |
---|
30 | s1.z = 1/NComp; |
---|
31 | s1.h = 5 * 'J/kmol'; |
---|
32 | s1.v = 0.0; |
---|
33 | |
---|
34 | OPTIONS |
---|
35 | Dynamic = false; |
---|
36 | end |
---|
37 | |
---|