Ticket #71: sample_msg.mso

File sample_msg.mso, 647 bytes (added by Argimiro Resende Secchi, 16 years ago)

MSO file with floating point error.

Line 
1using "types";
2
3
4FlowSheet Test
5        PARAMETERS
6        k as Real (Brief="Valve Constant", Unit = 'm^2.5/h', Default=4);
7        A as area (Brief="Tank area", Default=2);
8       
9        VARIABLES
10        h    as length(Brief="Tank level");
11        Fin  as flow_vol(Brief="Input flow");
12        Fout as flow_vol(Brief="Output flow");
13
14        EQUATIONS
15        "Mass balance"
16        diff(A*h) = Fin - Fout;
17       
18        "Valve equation"
19        Fout = k*(-h)^0.5;      # error introduced to check the msg
20
21        SET
22        k = 8 * 'm^2.5/h';
23        A = 4 * 'm^2';
24
25        SPECIFY
26        "Vazao de entrada"
27        Fin = 10 * 'm^3/h';
28
29        INITIAL
30        "altura inicial"
31        h = 1 * 'm';
32       
33        OPTIONS
34        TimeStep = 0.1;
35        TimeEnd = 5;
36        TimeUnit = 'h' ;
37end