Changeset 781 for branches/gui
- Timestamp:
- Jun 25, 2009, 6:05:45 PM (14 years ago)
- Location:
- branches/gui/eml/stage_separators
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/stage_separators/column.mso
r778 r781 172 172 CONTROL as ControlSection (Brief = "Control"); 173 173 out TCI as control_signal (Brief="Temperature Indicator", Protected = true, PosX=1, PosY=0.73); 174 out PCI as control_signal (Brief="Pressure Indicator", Protected = true, PosX= 1, PosY=0.77);174 out PCI as control_signal (Brief="Pressure Indicator", Protected = true, PosX=0, PosY=0.24); 175 175 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 176 176 # Column Feed - Side Stream Flow and Murphree Efficiency … … 949 949 # Heat Ports 950 950 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 951 in HeatToCondenser as power (Brief="Heat supplied to Condenser",PosX=1, PosY=0.0 65, Protected=true);952 in HeatToReboiler as power (Brief="Heat supplied to Reboiler", PosX=1, PosY=0. 87,Protected=true);951 in HeatToCondenser as power (Brief="Heat supplied to Condenser",PosX=1, PosY=0.099, Protected=true); 952 in HeatToReboiler as power (Brief="Heat supplied to Reboiler", PosX=1, PosY=0.92,Protected=true); 953 953 in HeatToBottomAccumulator as power (Brief="Heat supplied to Bottom Accumulator",PosX=0, PosY=0.925,Protected=true); 954 954 in HeatToTopAccumulator as power (Brief="Heat supplied to Top Accumulator", PosX=1, PosY=0.19,Protected=true); 955 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 956 # Column Control Ports 957 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 958 out TRI as control_signal (Brief="Temperature Indicator of Reboiler ", PosX=1, PosY=0.88); 959 out LTAI as control_signal (Brief="Level Indicator of Top Accumulator ", PosX=1, PosY=0.15); 960 out TCI as control_signal (Brief="Temperature Indicator of Condenser ", PosX=1, PosY=0.059); 961 out LBAI as control_signal (Brief="Level Indicator of Bottom Accumulator", PosX=1, PosY=0.77); 955 962 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 956 963 # Column Top and Bottom product … … 970 977 971 978 EQUATIONS 979 980 "Reboiler Temperature indicator" 981 TRI * 'K' = REBOILER.OutletVapour.T; 982 983 "Condenser Temperature indicator" 984 TCI * 'K' = CONDENSER.OutletLiquid.T; 985 986 "Top Accumulator Level indicator" 987 LTAI*ACCUMULATOR_TOP.Vtotal = ACCUMULATOR_TOP.Vfilled; 988 989 "Bottom Accumulator Level indicator" 990 LBAI*ACCUMULATOR_BOTTOM.Vtotal = ACCUMULATOR_BOTTOM.Vfilled; 991 972 992 # Heat Connector Equations 973 993 HeatToCondenser = ConnectorHeatCondenser; -
branches/gui/eml/stage_separators/icon/DistillationThermosyphonSubcooling.svg
r780 r781 36 36 showgrid="false" 37 37 showguides="true" 38 inkscape:zoom=" 1.0132605"39 inkscape:cx=" 174.69945"40 inkscape:cy=" 709.69901"38 inkscape:zoom="0.71648337" 39 inkscape:cx="300.62263" 40 inkscape:cy="850.09131" 41 41 inkscape:window-x="0" 42 42 inkscape:window-y="25" … … 363 363 id="linearGradient27601" 364 364 gradientUnits="userSpaceOnUse" 365 gradientTransform="matrix(0,0. 5810775,-0.5952167,0,397.57359,-68.177716)"365 gradientTransform="matrix(0,0.6817932,-0.5951343,0,397.55405,-109.84592)" 366 366 x1="398.55115" 367 367 y1="177.89513" … … 373 373 id="linearGradient27604" 374 374 gradientUnits="userSpaceOnUse" 375 gradientTransform="matrix(0.576 8717,0,0,0.5829562,394.11211,68.957248)"375 gradientTransform="matrix(0.5767919,0,0,0.6839975,394.09305,110.76057)" 376 376 x1="-199.65111" 377 377 y1="-412.46158" … … 383 383 id="linearGradient27610" 384 384 gradientUnits="userSpaceOnUse" 385 gradientTransform="matrix(0.2 06834,0,0,0.4761888,226.1101,-402.08381)"385 gradientTransform="matrix(0.2426837,0,0,0.4761229,235.44956,-402.06364)" 386 386 spreadMethod="repeat" 387 387 x1="-522.86908" … … 1255 1255 <path 1256 1256 id="path3978" 1257 d="M 217.38315, 760.46806 L 165.57451,760.46806 L 165.57451,760.46806 L 165.57451,760.46806"1257 d="M 217.38315,558.46806 L 165.57451,558.46806 L 165.57451,558.46806 L 165.57451,558.46806" 1258 1258 style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> 1259 1259 <path 1260 1260 sodipodi:nodetypes="cccc" 1261 1261 id="path3980" 1262 d="M 375.13893, 760.44191 L 237.64791,760.44191 L 237.64791,760.44191 L 237.64791,760.44191"1262 d="M 375.13893,558.44191 L 237.64791,558.44191 L 237.64791,558.44191 L 237.64791,558.44191" 1263 1263 style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;marker-start:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> 1264 1264 <rect … … 1779 1779 id="path26876" /> 1780 1780 <rect 1781 style="fill:url(#linearGradient27610);fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.2 6581255;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"1781 style="fill:url(#linearGradient27610);fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.28790867;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" 1782 1782 id="rect8669" 1783 width=" 49.640182"1784 height="125.2 7431"1785 x="1 17.96294"1786 y="-319.3 801"1787 rx="2 2.858946"1783 width="58.244106" 1784 height="125.25697" 1785 x="108.5577" 1786 y="-319.3714" 1787 rx="26.82099" 1788 1788 ry="0" 1789 1789 inkscape:export-xdpi="300" … … 1799 1799 sodipodi:rx="142.1875" 1800 1800 sodipodi:ry="61.71875" 1801 transform="matrix(0,0. 1745588,0.1362471,0,289.54078,46.784833)"1801 transform="matrix(0,0.2048143,0.1362282,0,289.5362,25.042601)" 1802 1802 inkscape:export-filename="/home/rafael/src/biblioteca/trunk/eml/stage_separators/icon/Vessel.png" 1803 1803 inkscape:export-xdpi="300" … … 1817 1817 sodipodi:ry="61.71875" 1818 1818 d="M 692.1875,217.20593 A 142.1875,61.71875 0 0 1 407.81366,217.45495" 1819 transform="matrix(0,-0. 1745588,-0.152868,0,227.94516,238.77059)"1819 transform="matrix(0,-0.2048143,-0.1528468,0,227.9491,250.30444)" 1820 1820 inkscape:export-filename="/home/rafael/src/biblioteca/trunk/eml/stage_separators/icon/Vessel.png" 1821 1821 inkscape:export-xdpi="300" … … 1830 1830 sodipodi:nodetypes="ccccc" /> 1831 1831 <rect 1832 style="fill:url(#linearGradient27604);fill-opacity:1;fill-rule:nonzero;stroke:#161616;stroke-width:0.2 6696971;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"1832 style="fill:url(#linearGradient27604);fill-opacity:1;fill-rule:nonzero;stroke:#161616;stroke-width:0.28916201;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" 1833 1833 id="rect7327" 1834 width="13.88 4714"1835 height="1. 3223759"1836 x="278.85 977"1837 y="-172.1 5094"1834 width="13.882793" 1835 height="1.5515777" 1836 x="278.85666" 1837 y="-172.13788" 1838 1838 ry="0" 1839 rx="7.16 31308"1840 transform="matrix(1,1. 1784912e-5,0,-1,0,0)" />1839 rx="7.1621394" 1840 transform="matrix(1,1.3829454e-5,0,-1,0,0)" /> 1841 1841 <path 1842 1842 sodipodi:nodetypes="ccczz" 1843 1843 id="path7329" 1844 d="M 280.04 769,161.34972 L 280.04769,170.80449 L 291.55606,170.80449 L 291.55606,161.94515 C 291.55606,154.32001 280.04769,153.97834 280.04769,161.34972z"1845 style="fill:url(#linearGradient27601);fill-opacity:1;fill-rule:nonzero;stroke:#161616;stroke-width:0.1 1961564;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />1844 d="M 280.04442,159.46454 L 280.04442,170.55806 L 291.5512,170.55806 L 291.5512,160.16317 C 291.5512,151.2164 280.04442,150.81551 280.04442,159.46454 z" 1845 style="fill:url(#linearGradient27601);fill-opacity:1;fill-rule:nonzero;stroke:#161616;stroke-width:0.12955889;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> 1846 1846 <path 1847 1847 inkscape:export-ydpi="90" … … 2255 2255 inkscape:export-xdpi="300" 2256 2256 inkscape:export-filename="/home/rafael/src/biblioteca/trunk/eml/stage_separators/icon/Vessel.png" 2257 transform="matrix(0,-8.0686328e-2,-0.1826698,0,269.15117, 804.48722)"2257 transform="matrix(0,-8.0686328e-2,-0.1826698,0,269.15117,602.48722)" 2258 2258 d="M 353.3916,210.38566 A 197.22916,86.030968 0 1 1 352.78993,216.00914" 2259 2259 sodipodi:ry="86.030968" … … 2269 2269 style="font-size:12.30136967px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" 2270 2270 x="219.25137" 2271 y=" 776.68176"2271 y="571.80292" 2272 2272 id="text3970" 2273 2273 transform="scale(1.014245,0.9859551)"><tspan … … 2276 2276 id="tspan3972" 2277 2277 x="219.25137" 2278 y=" 776.68176">TI</tspan></text>2278 y="571.80292">TI</tspan></text> 2279 2279 <path 2280 2280 id="path3974" … … 2313 2313 id="tspan4094" 2314 2314 sodipodi:role="line" 2315 style="font-size:16px"> PI</tspan></text>2315 style="font-size:16px">LI</tspan></text> 2316 2316 <rect 2317 2317 transform="scale(1,-1)" … … 2424 2424 sodipodi:type="arc" /> 2425 2425 </g> 2426 <path 2427 sodipodi:end="9.4386896" 2428 sodipodi:start="3.2209529" 2429 inkscape:export-ydpi="300" 2430 inkscape:export-xdpi="300" 2431 inkscape:export-filename="/home/rafael/src/biblioteca/trunk/eml/stage_separators/icon/Vessel.png" 2432 transform="matrix(0,-8.0686328e-2,-0.1826698,0,59.097444,295.88128)" 2433 d="M 353.3916,210.38566 A 197.22916,86.030968 0 1 1 352.78993,216.00914" 2434 sodipodi:ry="86.030968" 2435 sodipodi:rx="197.22916" 2436 sodipodi:cy="217.20593" 2437 sodipodi:cx="550" 2438 id="path2721" 2439 style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.32165313;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" 2440 sodipodi:type="arc" 2441 sodipodi:open="true" /> 2442 <text 2443 xml:space="preserve" 2444 style="font-size:12.30136967px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" 2445 x="12.147847" 2446 y="260.83105" 2447 id="text2723" 2448 transform="scale(1.014245,0.9859551)"><tspan 2449 style="font-size:16px" 2450 sodipodi:role="line" 2451 id="tspan2725" 2452 x="12.147847" 2453 y="260.83105">PI</tspan></text> 2454 <path 2455 sodipodi:end="9.4386896" 2456 sodipodi:start="3.2209529" 2457 inkscape:export-ydpi="300" 2458 inkscape:export-xdpi="300" 2459 inkscape:export-filename="/home/rafael/src/biblioteca/trunk/eml/stage_separators/icon/Vessel.png" 2460 transform="matrix(0,-6.395804e-2,-0.1504039,0,408.41125,191.18102)" 2461 d="M 353.3916,210.38566 A 197.22916,86.030968 0 1 1 352.78993,216.00914" 2462 sodipodi:ry="86.030968" 2463 sodipodi:rx="197.22916" 2464 sodipodi:cy="217.20593" 2465 sodipodi:cx="550" 2466 id="path2727" 2467 style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.32165313;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" 2468 sodipodi:type="arc" 2469 sodipodi:open="true" /> 2470 <text 2471 xml:space="preserve" 2472 style="font-size:12.30136967px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" 2473 x="363.46558" 2474 y="164.14795" 2475 id="text2729" 2476 transform="scale(1.014245,0.9859551)"><tspan 2477 style="font-size:16px" 2478 sodipodi:role="line" 2479 id="tspan2731" 2480 x="363.46558" 2481 y="164.14795">LI</tspan></text> 2482 <path 2483 style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:1,3;stroke-dashoffset:0" 2484 d="M 325.89731,157.43374 L 362.88351,157.43374" 2485 id="path2737" /> 2426 2486 </svg> -
branches/gui/eml/stage_separators/tank.mso
r721 r781 57 57 outer NComp as Integer; 58 58 Across as area (Brief="Tank cross section area", Default=2); 59 L as length (Brief="Tank length"); 60 Vtotal as volume (Brief="Tank total volume"); 59 61 60 62 Initial_Level as length (Brief="Initial Level of the Tank"); 61 63 Initial_Temperature as temperature (Brief="Initial Temperature of Liquid"); 62 64 Initial_Composition(NComp) as fraction (Brief="Initial Liquid Composition"); 65 66 SET 67 Vtotal =Across*L; 63 68 64 69 VARIABLES … … 66 71 out Outlet as liquid_stream (Brief = "Outlet liquid stream", PosX=1, PosY=1, Symbol="_{out}"); 67 72 in InletQ as power (Brief="Rate of heat supply", PosX=1, PosY=0.7859, Symbol="_{in}"); 73 Vfilled as volume (Brief="Tank volume content"); 68 74 Level as length (Brief="Tank level"); 69 75 M(NComp) as mol (Brief="Molar Holdup in the tank"); … … 100 106 Level = sum(M)*vL/Across; 101 107 108 "Volume Filled of liquid phase" 109 Vfilled = Level*Across; 110 102 111 end 103 112 … … 127 136 outer PP as Plugin (Brief = "External Physical Properties", Type="PP"); 128 137 outer NComp as Integer; 138 pi as positive (Brief="Pi value", Default=3.141593,Hidden=true); 129 139 radius as length (Brief="Tank radius"); 130 140 L as length (Brief="Tank length"); 141 Vtotal as volume (Brief="Tank total volume"); 131 142 132 143 Initial_Level as length (Brief="Initial Level of the Tank"); 133 144 Initial_Temperature as temperature (Brief="Initial Temperature of Liquid"); 134 145 Initial_Composition(NComp) as fraction (Brief="Initial Liquid Composition"); 135 146 147 SET 148 Vtotal = (0.25*pi*(2*radius)^2)*L; 149 136 150 VARIABLES 137 151 in Inlet as stream (Brief = "Inlet stream", PosX=0.1825, PosY=0, Symbol="_{in}"); … … 139 153 in InletQ as power (Brief="Rate of heat supply", PosX=1, PosY=0.6160, Symbol="_{in}"); 140 154 Level as length (Brief="Tank level"); 155 Vfilled as volume (Brief="Tank volume content"); 141 156 Across as area (Brief="Tank cross section area", Default=2); 142 157 M(NComp) as mol (Brief="Molar Holdup in the tank"); … … 171 186 172 187 "Cylindrical Area" 173 Across = radius^2 * (asin(1) - asin((radius-Level)/radius) ) + (Level-radius)*sqrt(Level*(2*radius - Level) );188 Across = radius^2 * (asin(1) - asin((radius-Level)/radius) ) + (Level-radius)*sqrt(Level*(2*radius - Level)+1E-8); 174 189 175 190 "Level of liquid phase" 176 191 L*Across = sum(M)*vL; 192 193 "Volume Filled of liquid phase" 194 Vfilled = L*Across; 177 195 178 196 end
Note: See TracChangeset
for help on using the changeset viewer.