Changeset 781 for branches


Ignore:
Timestamp:
Jun 25, 2009, 6:05:45 PM (13 years ago)
Author:
gerson bicca
Message:

updated column/tank model

Location:
branches/gui/eml/stage_separators
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/eml/stage_separators/column.mso

    r778 r781  
    172172        CONTROL as ControlSection (Brief = "Control");
    173173        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);
    175175#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    176176# Column Feed - Side Stream Flow and Murphree Efficiency
     
    949949# Heat Ports
    950950#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    951 in              HeatToCondenser                 as power        (Brief="Heat supplied to Condenser",PosX=1, PosY=0.065, Protected=true);
    952 in              HeatToReboiler                  as power        (Brief="Heat supplied to Reboiler", PosX=1, PosY=0.87,Protected=true);
     951in              HeatToCondenser                 as power        (Brief="Heat supplied to Condenser",PosX=1, PosY=0.099, Protected=true);
     952in              HeatToReboiler                  as power        (Brief="Heat supplied to Reboiler", PosX=1, PosY=0.92,Protected=true);
    953953in              HeatToBottomAccumulator as power        (Brief="Heat supplied to Bottom Accumulator",PosX=0, PosY=0.925,Protected=true);
    954954in              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);
    955962#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    956963# Column Top and Bottom product
     
    970977       
    971978EQUATIONS
     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       
    972992# Heat Connector Equations
    973993        HeatToCondenser                 =       ConnectorHeatCondenser;
  • branches/gui/eml/stage_separators/icon/DistillationThermosyphonSubcooling.svg

    r780 r781  
    3636     showgrid="false"
    3737     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"
    4141     inkscape:window-x="0"
    4242     inkscape:window-y="25"
     
    363363       id="linearGradient27601"
    364364       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)"
    366366       x1="398.55115"
    367367       y1="177.89513"
     
    373373       id="linearGradient27604"
    374374       gradientUnits="userSpaceOnUse"
    375        gradientTransform="matrix(0.5768717,0,0,0.5829562,394.11211,68.957248)"
     375       gradientTransform="matrix(0.5767919,0,0,0.6839975,394.09305,110.76057)"
    376376       x1="-199.65111"
    377377       y1="-412.46158"
     
    383383       id="linearGradient27610"
    384384       gradientUnits="userSpaceOnUse"
    385        gradientTransform="matrix(0.206834,0,0,0.4761888,226.1101,-402.08381)"
     385       gradientTransform="matrix(0.2426837,0,0,0.4761229,235.44956,-402.06364)"
    386386       spreadMethod="repeat"
    387387       x1="-522.86908"
     
    12551255  <path
    12561256     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"
    12581258     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" />
    12591259  <path
    12601260     sodipodi:nodetypes="cccc"
    12611261     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"
    12631263     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" />
    12641264  <rect
     
    17791779     id="path26876" />
    17801780  <rect
    1781      style="fill:url(#linearGradient27610);fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.26581255;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"
    17821782     id="rect8669"
    1783      width="49.640182"
    1784      height="125.27431"
    1785      x="117.96294"
    1786      y="-319.3801"
    1787      rx="22.858946"
     1783     width="58.244106"
     1784     height="125.25697"
     1785     x="108.5577"
     1786     y="-319.3714"
     1787     rx="26.82099"
    17881788     ry="0"
    17891789     inkscape:export-xdpi="300"
     
    17991799     sodipodi:rx="142.1875"
    18001800     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)"
    18021802     inkscape:export-filename="/home/rafael/src/biblioteca/trunk/eml/stage_separators/icon/Vessel.png"
    18031803     inkscape:export-xdpi="300"
     
    18171817     sodipodi:ry="61.71875"
    18181818     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)"
    18201820     inkscape:export-filename="/home/rafael/src/biblioteca/trunk/eml/stage_separators/icon/Vessel.png"
    18211821     inkscape:export-xdpi="300"
     
    18301830     sodipodi:nodetypes="ccccc" />
    18311831  <rect
    1832      style="fill:url(#linearGradient27604);fill-opacity:1;fill-rule:nonzero;stroke:#161616;stroke-width:0.26696971;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"
    18331833     id="rect7327"
    1834      width="13.884714"
    1835      height="1.3223759"
    1836      x="278.85977"
    1837      y="-172.15094"
     1834     width="13.882793"
     1835     height="1.5515777"
     1836     x="278.85666"
     1837     y="-172.13788"
    18381838     ry="0"
    1839      rx="7.1631308"
    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)" />
    18411841  <path
    18421842     sodipodi:nodetypes="ccczz"
    18431843     id="path7329"
    1844      d="M 280.04769,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.34972 z"
    1845      style="fill:url(#linearGradient27601);fill-opacity:1;fill-rule:nonzero;stroke:#161616;stroke-width:0.11961564;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" />
    18461846  <path
    18471847     inkscape:export-ydpi="90"
     
    22552255     inkscape:export-xdpi="300"
    22562256     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)"
    22582258     d="M 353.3916,210.38566 A 197.22916,86.030968 0 1 1 352.78993,216.00914"
    22592259     sodipodi:ry="86.030968"
     
    22692269     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"
    22702270     x="219.25137"
    2271      y="776.68176"
     2271     y="571.80292"
    22722272     id="text3970"
    22732273     transform="scale(1.014245,0.9859551)"><tspan
     
    22762276       id="tspan3972"
    22772277       x="219.25137"
    2278        y="776.68176">TI</tspan></text>
     2278       y="571.80292">TI</tspan></text>
    22792279  <path
    22802280     id="path3974"
     
    23132313       id="tspan4094"
    23142314       sodipodi:role="line"
    2315        style="font-size:16px">PI</tspan></text>
     2315       style="font-size:16px">LI</tspan></text>
    23162316  <rect
    23172317     transform="scale(1,-1)"
     
    24242424       sodipodi:type="arc" />
    24252425  </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" />
    24262486</svg>
  • branches/gui/eml/stage_separators/tank.mso

    r721 r781  
    5757        outer NComp     as Integer;
    5858        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");
    5961       
    6062        Initial_Level                           as length               (Brief="Initial Level of the Tank");
    6163        Initial_Temperature                     as temperature  (Brief="Initial Temperature of Liquid");
    6264        Initial_Composition(NComp)      as fraction     (Brief="Initial Liquid Composition");
     65
     66SET
     67        Vtotal =Across*L;
    6368       
    6469VARIABLES
     
    6671out     Outlet          as liquid_stream        (Brief = "Outlet liquid stream", PosX=1, PosY=1, Symbol="_{out}");
    6772in      InletQ                  as power                                (Brief="Rate of heat supply", PosX=1, PosY=0.7859, Symbol="_{in}");
     73        Vfilled         as volume                               (Brief="Tank volume content");
    6874        Level                   as length                               (Brief="Tank level");
    6975        M(NComp)        as mol                                  (Brief="Molar Holdup in the tank");
     
    100106        Level = sum(M)*vL/Across;
    101107
     108"Volume Filled of liquid phase"
     109        Vfilled = Level*Across;
     110       
    102111end
    103112
     
    127136        outer PP                        as Plugin               (Brief = "External Physical Properties", Type="PP");
    128137        outer NComp     as Integer;
     138        pi                                      as positive     (Brief="Pi value", Default=3.141593,Hidden=true);
    129139        radius                          as length               (Brief="Tank radius");
    130140        L                                               as length               (Brief="Tank length");
     141        Vtotal                          as volume       (Brief="Tank total volume");
    131142       
    132143        Initial_Level                   as length                       (Brief="Initial Level of the Tank");
    133144        Initial_Temperature             as temperature                  (Brief="Initial Temperature of Liquid");
    134145        Initial_Composition(NComp)      as fraction                             (Brief="Initial Liquid Composition");
    135        
     146
     147SET
     148        Vtotal = (0.25*pi*(2*radius)^2)*L;
     149
    136150VARIABLES
    137151in      Inlet           as stream                               (Brief = "Inlet stream", PosX=0.1825, PosY=0, Symbol="_{in}");
     
    139153in      InletQ          as power                                (Brief="Rate of heat supply", PosX=1, PosY=0.6160, Symbol="_{in}");
    140154        Level           as length                               (Brief="Tank level");
     155        Vfilled         as volume                               (Brief="Tank volume content");
    141156        Across          as area                                         (Brief="Tank cross section area", Default=2);
    142157        M(NComp) as mol                                         (Brief="Molar Holdup in the tank");
     
    171186       
    172187"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);
    174189
    175190"Level of liquid phase"
    176191        L*Across = sum(M)*vL;
     192
     193"Volume Filled of liquid phase"
     194        Vfilled = L*Across;
    177195
    178196end
Note: See TracChangeset for help on using the changeset viewer.