Changeset 918
- Timestamp:
- Feb 25, 2010, 1:45:10 PM (12 years ago)
- Location:
- branches/gui
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/costs/flash_cost.mso
r732 r918 60 60 Ts as length (Brief="Thickness"); 61 61 dens_mass_material as dens_mass (Brief = "Mass Density of the Material"); 62 Pi as constant (Brief="Pi Number",Default=3.14159265);63 62 64 63 VARIABLES -
branches/gui/eml/costs/reboiler_cost.mso
r331 r918 67 67 EQUATIONS 68 68 "Average pressure" 69 P = 0.5*(InletL .P + OutletL.P);69 P = 0.5*(InletLiquid.P + OutletLiquid.P); 70 70 71 71 "Capital Cost" -
branches/gui/eml/stage_separators/flash.mso
r879 r918 19 19 using "tank"; 20 20 21 Model flash 21 Model flash as VesselVolume 22 22 23 23 ATTRIBUTES … … 61 61 62 62 Mw(NComp) as molweight (Brief="Mol Weight", Hidden=true); 63 Gconst as acceleration (Brief="Gravity Acceleration",Default=9.81,Hidden=true);64 63 65 64 Levelpercent_Initial as positive (Brief="Initial liquid height in Percent", Default = 0.70); … … 71 70 Mw=PP.MolecularWeight(); 72 71 73 Gconst = 9.81 * 'm/(s^2)';74 75 72 VARIABLES 76 77 Geometry as VesselVolume (Brief="Vessel Geometry", Symbol=" ");78 73 79 74 in Inlet as stream (Brief="Feed Stream", PosX=0, PosY=0.48, Symbol="_{in}"); … … 123 118 124 119 "Energy Holdup" 125 E = LiquidHoldup*OutletLiquid.h + VapourHoldup*OutletVapour.h - OutletLiquid.P* Geometry.Vtotal;120 E = LiquidHoldup*OutletLiquid.h + VapourHoldup*OutletVapour.h - OutletLiquid.P*Vtotal; 126 121 127 122 "Mol fraction normalisation" … … 151 146 152 147 "Static Head" 153 Pstatic = PP.LiquidDensity(OutletLiquid.T, Peq, OutletLiquid.z) * Gconst * Geometry.Level;148 Pstatic = PP.LiquidDensity(OutletLiquid.T, Peq, OutletLiquid.z) * Gconst * Level; 154 149 155 150 "Mechanical Equilibrium for the Liquid Phase" … … 163 158 164 159 "Geometry Constraint" 165 Geometry.Vtotal = LiquidHoldup * vL + VapourHoldup * vV;160 Vtotal = LiquidHoldup * vL + VapourHoldup * vV; 166 161 167 162 "Temperature indicator" … … 172 167 173 168 "Level indicator" 174 LI* Geometry.Vtotal= Geometry.Vfilled;169 LI*Vtotal= Vfilled; 175 170 176 171 "Liquid Level" 177 LiquidHoldup * vL = Geometry.Vfilled;172 LiquidHoldup * vL = Vfilled; 178 173 179 174 end -
branches/gui/eml/stage_separators/tank.mso
r913 r918 37 37 38 38 PARAMETERS 39 P Ias positive (Brief="Pi value", Default=3.141593,Hidden=true, Symbol="\pi");39 Pi as positive (Brief="Pi value", Default=3.141593,Hidden=true, Symbol="\pi"); 40 40 Gconst as acceleration (Brief="Gravity Acceleration",Default=9.81,Hidden=true); 41 41 … … 53 53 54 54 Gconst = 9.81 * 'm/(s^2)'; 55 Vhead_elliptical = (P I*Diameter^3)/12;56 Vhead_hemispherical = (P I*Diameter^3)/6;57 Vcylinder = 0.25*(P I*Diameter^2)*Lenght;55 Vhead_elliptical = (Pi*Diameter^3)/12; 56 Vhead_hemispherical = (Pi*Diameter^3)/6; 57 Vcylinder = 0.25*(Pi*Diameter^2)*Lenght; 58 58 radius = 0.5*Diameter; 59 59 … … 72 72 73 73 "Vessel Cross Section Area" 74 Across = 0.25*(P I*Diameter^2);74 Across = 0.25*(Pi*Diameter^2); 75 75 76 76 switch Heads … … 84 84 85 85 "Vessel Filled Volume" 86 Vfilled = 0.25*P I*(((Diameter*Level)/(0.25*Diameter))^2)*(0.25*Diameter-Level/3);86 Vfilled = 0.25*Pi*(((Diameter*Level)/(0.25*Diameter))^2)*(0.25*Diameter-Level/3); 87 87 88 88 else 89 89 90 90 "Vessel Filled Volume" 91 Vfilled = 0.25*P I*(Diameter^2)*(Level - 0.25*Diameter/3);91 Vfilled = 0.25*Pi*(Diameter^2)*(Level - 0.25*Diameter/3); 92 92 93 93 end … … 101 101 102 102 "Vessel Filled Volume" 103 Vfilled = 0.25*P I*(Level^2)*(2*Diameter-4*Level/3);103 Vfilled = 0.25*Pi*(Level^2)*(2*Diameter-4*Level/3); 104 104 105 105 else 106 106 107 107 "Vessel Filled Volume" 108 Vfilled = 0.25*P I*((2/3)*((0.5*Diameter)^3) - (0.25*(Diameter)^3) + Level*Diameter^2);108 Vfilled = 0.25*Pi*((2/3)*((0.5*Diameter)^3) - (0.25*(Diameter)^3) + Level*Diameter^2); 109 109 110 110 end -
branches/gui/sample/stage_separators/sample_flash.mso
r909 r918 172 172 173 173 SET 174 F101. Geometry.Orientation = "vertical";175 F101. Geometry.Heads = "hemispherical";176 F101. Geometry.Diameter = 2 * 'm';177 F101. Geometry.Lenght = 5 * 'm';174 F101.Orientation = "vertical"; 175 F101.Heads = "hemispherical"; 176 F101.Diameter = 2 * 'm'; 177 F101.Lenght = 5 * 'm'; 178 178 F101.Levelpercent_Initial = 0.80; 179 179 F101.Temperature_Initial = 373 * 'K'; -
branches/gui/sample/stage_separators/sample_flash.pfd
r904 r918 31 31 <View> 32 32 <Zoom_Level>1</Zoom_Level> 33 <Width>1 070</Width>34 <Height>4 63</Height>33 <Width>1441</Width> 34 <Height>447</Height> 35 35 <X>0</X> 36 36 <Y>0</Y> … … 38 38 <View> 39 39 <Zoom_Level>1</Zoom_Level> 40 <Width>1 070</Width>40 <Width>1441</Width> 41 41 <Height>0</Height> 42 42 <X>0</X> … … 52 52 <Height>43</Height> 53 53 <Label_Position> 54 <X>531 .989</X>55 <Y>378 .869</Y>54 <X>531</X> 55 <Y>378</Y> 56 56 </Label_Position> 57 57 <Settings> … … 89 89 <Height>30</Height> 90 90 <Label_Position> 91 <X>23 .4375</X>92 <Y>202 .3</Y>91 <X>23</X> 92 <Y>202</Y> 93 93 </Label_Position> 94 94 <Settings> … … 159 159 <Height>31</Height> 160 160 <Label_Position> 161 <X>451 .513</X>162 <Y>66 .8687</Y>161 <X>451</X> 162 <Y>66</Y> 163 163 </Label_Position> 164 164 <Settings> … … 196 196 <Height>30</Height> 197 197 <Label_Position> 198 <X>710 .775</X>199 <Y>76 .091</Y>198 <X>710</X> 199 <Y>76</Y> 200 200 </Label_Position> 201 201 <Settings> … … 211 211 <Height>30</Height> 212 212 <Label_Position> 213 <X>714 .464</X>214 <Y>391 .091</Y>213 <X>714</X> 214 <Y>391</Y> 215 215 </Label_Position> 216 216 <Settings> … … 226 226 <Height>37</Height> 227 227 <Label_Position> 228 <X>139 .165</X>229 <Y>201 .869</Y>228 <X>139</X> 229 <Y>201</Y> 230 230 </Label_Position> 231 231 <Settings> … … 263 263 <Height>49</Height> 264 264 <Label_Position> 265 <X>43 .9688</X>266 <Y>89 .891</Y>265 <X>43</X> 266 <Y>89</Y> 267 267 </Label_Position> 268 268 <Settings> … … 311 311 <Height>58</Height> 312 312 <Label_Position> 313 <X>587 .406</X>314 <Y>116 .2</Y>313 <X>587</X> 314 <Y>116</Y> 315 315 </Label_Position> 316 316 <Settings> … … 524 524 <Height>47</Height> 525 525 <Label_Position> 526 <X>544 .906</X>527 <Y>227 .2</Y>526 <X>544</X> 527 <Y>227</Y> 528 528 </Label_Position> 529 529 <Settings> … … 737 737 <Height>157.5</Height> 738 738 <Label_Position> 739 <X>304 .369</X>739 <X>304</X> 740 740 <Y>254</Y> 741 741 </Label_Position> … … 798 798 <Value> 799 799 <Path> 800 <Value>Geometry</Value>801 800 <Value>Heads</Value> 802 801 </Path> … … 810 809 <Value> 811 810 <Path> 812 <Value>Geometry</Value>813 811 <Value>Diameter</Value> 814 812 </Path> … … 822 820 <Value> 823 821 <Path> 824 <Value>Geometry</Value>825 822 <Value>Lenght</Value> 826 823 </Path> … … 843 840 <Height>40</Height> 844 841 <Label_Position> 845 <X>423 .22</X>846 <Y>325 .291</Y>842 <X>423</X> 843 <Y>325</Y> 847 844 </Label_Position> 848 845 <Settings>
Note: See TracChangeset
for help on using the changeset viewer.