Changeset 765 for branches/gui
 Timestamp:
 Jun 16, 2009, 10:15:20 AM (14 years ago)
 Location:
 branches/gui/tutorial
 Files:

 3 edited
Legend:
 Unmodified
 Added
 Removed

branches/gui/tutorial/ThreeTank1.mso
r25 r765 15 15 **# 16 16 17 using "stage_separators/tank"; 17 Model tank_simplified 18 PARAMETERS 19 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 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'); 26 27 EQUATIONS 28 "Mass balance" 29 diff(A*Level) = Fin  Fout; 30 31 "Valve equation" 32 Fout = k*sqrt(Level); 33 end 34 18 35 19 36 FlowSheet ThreeTank 20 37 VARIABLES 21 Feed as flow_vol;38 Feed as Real(Unit='m^3/h'); 22 39 23 40 DEVICES 
branches/gui/tutorial/ThreeTank2.mso
r397 r765 15 15 **# 16 16 17 using "stage_separators/tank"; 17 Model tank_simplified 18 PARAMETERS 19 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 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'); 26 27 EQUATIONS 28 "Mass balance" 29 diff(A*Level) = Fin  Fout; 30 31 "Valve equation" 32 Fout = k*sqrt(Level); 33 end 34 18 35 19 36 FlowSheet ThreeTank 20 37 VARIABLES 21 Feed as flow_vol;38 Feed as Real(Unit='m^3/h'); 22 39 23 40 DEVICES 
branches/gui/tutorial/ThreeTank3.mso
r397 r765 15 15 **# 16 16 17 using "stage_separators/tank"; 17 Model tank_simplified 18 PARAMETERS 19 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 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'); 26 27 EQUATIONS 28 "Mass balance" 29 diff(A*Level) = Fin  Fout; 30 31 "Valve equation" 32 Fout = k*sqrt(Level); 33 end 34 18 35 19 36 FlowSheet ThreeTank 20 37 VARIABLES 21 Feed as flow_vol;38 Feed as Real(Unit='m^3/h'); 22 39 23 40 DEVICES
Note: See TracChangeset
for help on using the changeset viewer.