Changeset 739 for branches/gui/eml/mixers_splitters/mixer.mso
- Timestamp:
- Feb 27, 2009, 7:18:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/mixers_splitters/mixer.mso
r574 r739 21 21 using "streams"; 22 22 23 Model mixer 23 Model mixer2 24 24 ATTRIBUTES 25 25 Pallete = true; 26 26 Icon = "icon/mixer"; 27 Brief = "Model of a mixer ";27 Brief = "Model of a mixer with 2 inputs"; 28 28 Info = 29 29 "== Assumptions == … … 34 34 * the inlet streams"; 35 35 36 VARIABLES 36 VARIABLES 37 37 38 in Inlet1 as stream (Brief = "Inlet stream 1", PosX=0, PosY=0.25, Symbol="_{in1}"); 38 39 in Inlet2 as stream (Brief = "Inlet stream 2", PosX=0, PosY=0.75, Symbol="_{in2}"); 39 40 out Outlet as streamPH (Brief = "Outlet stream", PosX=1, PosY=0.5059, Symbol="_{out}"); 40 41 41 42 EQUATIONS 42 43 43 44 "Flow" 44 45 Outlet.F = Inlet1.F + Inlet2.F; 45 46 46 47 "Composition" 47 48 Outlet.F*Outlet.z = Inlet1.F*Inlet1.z + Inlet2.F*Inlet2.z; 48 49 49 50 "Energy Balance" 50 51 Outlet.F*Outlet.h = Inlet1.F*Inlet1.h + Inlet2.F*Inlet2.h; 51 52 52 53 "Pressure" 53 54 Outlet.P = min([Inlet1.P, Inlet2.P]); 55 56 end 57 58 Model mixer3 59 ATTRIBUTES 60 Pallete = true; 61 Icon = "icon/mixer"; 62 Brief = "Model of a mixer with 2 inputs"; 63 Info = 64 "== Assumptions == 65 * static 66 * adiabatic 67 68 == Specify == 69 * the inlet streams"; 70 71 VARIABLES 72 in Inlet1 as stream (Brief = "Inlet stream 1", PosX=0, PosY=0.25, Symbol="_{in1}"); 73 in Inlet2 as stream (Brief = "Inlet stream 2", PosX=0, PosY=0.5059, Symbol="_{in2}"); 74 in Inlet3 as stream (Brief = "Inlet stream 3", PosX=0, PosY=0.75, Symbol="_{in3}"); 75 out Outlet as streamPH (Brief = "Outlet stream", PosX=1, PosY=0.5059, Symbol="_{out}"); 76 77 EQUATIONS 78 79 "Flow" 80 Outlet.F = Inlet1.F + Inlet2.F + Inlet3.F; 81 82 "Composition" 83 Outlet.F*Outlet.z = Inlet1.F*Inlet1.z + Inlet2.F*Inlet2.z + Inlet3.F*Inlet3.z; 84 85 "Energy Balance" 86 Outlet.F*Outlet.h = Inlet1.F*Inlet1.h + Inlet2.F*Inlet2.h + Inlet3.F*Inlet3.h; 87 88 "Pressure" 89 Outlet.P = min([Inlet1.P, Inlet2.P , Inlet3.P]); 90 54 91 end 55 92 56 93 Model mixer_n 57 94 ATTRIBUTES 58 Pallete = true;95 Pallete = false; 59 96 Icon = "icon/mixer"; 60 Brief = "Model of a mixer";97 Brief = "Model of a generic mixer (NOT Handled By the GUI) "; 61 98 Info = 62 99 "== Assumptions ==
Note: See TracChangeset
for help on using the changeset viewer.