Changeset 843 for branches/gui/tutorial/ThreeTank1.mso
 Timestamp:
 Sep 3, 2009, 3:36:47 PM (13 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

branches/gui/tutorial/ThreeTank1.mso
r765 r843 11 11 * Arquivo de exemplo do EMSO 12 12 * 13 * Sistema de uma série de tanques.14 *15 13 **# 16 14 17 15 Model tank_simplified 18 PARAMETERS19 k as Real (Brief="Valve Constant", Unit = 'm^2.5/h', Default=4);20 A as Real (Brief="Tank area", Default=2, Unit = 'm^2');21 16 22 VARIABLES 23 Level as Real(Brief="Tank level", Unit='m'); 24 in Fin as Real(Brief="Input flow", Unit='m^3/h'); 25 out Fout as Real(Brief="Output flow", Unit='m^3/h'); 17 PARAMETERS 18 pi as Real (Brief="pi number",Default=3.141592); 19 k as Real (Brief="Valve Constant", Unit = 'm^2.5/h', Default=4); 20 Dh as Real (Brief="Hydraulic diameter", Unit = 'm', Default=2); 21 A as Real (Brief="Tank area", Unit = 'm^2'); 26 22 27 EQUATIONS 28 "Mass balance"29 diff(A*Level) = Fin  Fout;23 SET 24 pi = 3.141592; 25 A = (pi*Dh^2)/4; 30 26 31 "Valve equation" 32 Fout = k*sqrt(Level); 27 VARIABLES 28 V as Real (Brief="Tank Volume", Lower = 0, Unit='m^3'); 29 Level as Real (Brief="Tank level", Lower = 0, Unit='m'); 30 in Fin as Real (Brief="Input flow", Lower = 0, Unit='m^3/h'); 31 out Fout as Real (Brief="Output flow",Lower = 0, Unit='m^3/h'); 32 33 EQUATIONS 34 35 "Mass balance" 36 diff(V) = Fin  Fout; 37 38 "Valve equation" 39 Fout = k*sqrt(Level); 40 41 "Tank volume" 42 V = A*Level; 43 33 44 end 34 45 46 FlowSheet ThreeTank 35 47 36 FlowSheet ThreeTank 37 VARIABLES 38 Feed as Real(Unit='m^3/h'); 48 DEVICES 49 Feed as Real (Brief="Feed Stream", Unit='m^3/h'); 39 50 40 DEVICES 41 Tank1 as tank_simplified; 42 Tank2 as tank_simplified; 43 Tank3 as tank_simplified; 51 Tank1 as tank_simplified (Brief="First Tank"); 52 Tank2 as tank_simplified (Brief="Second Tank"); 53 Tank3 as tank_simplified (Brief="Third Tank"); 44 54 45 55 CONNECTIONS 46 56 Feed to Tank1.Fin; 47 57 Tank1.Fout to Tank2.Fin; 48 58 Tank2.Fout to Tank3.Fin; 59 49 60 end
Note: See TracChangeset
for help on using the changeset viewer.