Ticket #122: bug_attributes.mso

File bug_attributes.mso, 737 bytes (added by gerson bicca, 14 years ago)
Line 
1#*-------------------------------------------------------------------
2
3*--------------------------------------------------------------------*#
4
5using "streams";
6
7FlowSheet SampleStreams
8
9        PARAMETERS
10        NComp as Integer(Default=5);
11
12VARIABLES
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       
19DEVICES
20        s1 as stream;
21
22EQUATIONS
23
24        dPdL = 5*'Pa/m';
25       
26SPECIFY
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;
36end
37