Changeset 816 for branches/gui


Ignore:
Timestamp:
Aug 7, 2009, 1:12:57 PM (14 years ago)
Author:
gerson bicca
Message:

updates

Location:
branches/gui
Files:
1 added
1 deleted
2 edited

Legend:

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

    r815 r816  
    111111        LiquidSideStreamLocation                        as Integer                      (Brief="Liquid Side Stream Location", Default=2);
    112112        VapourSideStreamLocation                        as Integer                      (Brief="Vapour Side Stream Location", Default=2);
     113        Pi                                                                      as constant             (Brief="Pi Number",Default=3.14159265, Symbol = "\pi",Hidden=true);
    113114        g                                                                       as acceleration         (Brief="Gravity Acceleration",Default=9.81,Hidden=true);
    114115        Mw(NComp)                                                       as molweight            (Brief="Component Mol Weight",Hidden=true);
     
    121122# Section Column Tray Geometry and Auxiliar Parameters
    122123#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     124        TrayDiameter                    as length               (Brief="Tray Diameter",Default=1.600);
     125        TraySpacing                             as length               (Brief="Tray Spacing",Default=0.600);
     126        Fraction_HoleArea               as fraction     (Brief="Fraction of the active area that is occupied by the holes with respect to the total tray area",Default=0.10);
     127        Fraction_DowncomerArea  as fraction     (Brief="Fraction of the downcomer area with respect to the total tray area",Default=0.20);
     128        WeirLength                              as length               (Brief="Weir length");
     129        WeirHeight                              as length               (Brief="Weir height");
     130        TrayLiquidPasses                as Real                 (Brief="Number of liquid passes in the tray", Default=1);
     131        HeatSupply                              as heat_rate    (Brief="Rate of heat supply");
     132        beta                                    as fraction     (Brief="Aeration fraction");
     133        alfa                                    as fraction     (Brief="Dry pressure drop coefficient");
     134       
     135        PlateArea               as area                 (Brief="Plate area = Atray - Adowncomer",Protected=false);
     136        TrayVolume              as volume               (Brief="Total Volume of the tray",Protected=false);
     137        HolesArea               as area                 (Brief="Total holes area",Protected=false);
     138
     139        FeeheryCoeff    as Real                 (Brief="Feeherys correlation coefficient", Unit='1/m^4', Default=1,Hidden=true);
     140        ElgueCoeff              as Real                 (Brief="Elgues correlation coefficient", Unit='kg/m/mol^2', Default=1,Hidden=true);
     141        OlsenCoeff              as Real                 (Brief="Olsens correlation coefficient", Default=1,Hidden=true);
     142       
     143
     144        VapourFlow      as Switcher     (Valid = ["on", "off"], Default = "on",Hidden=true);
     145        LiquidFlow      as Switcher     (Valid = ["on", "off"], Default = "on",Hidden=true);
     146
     147SET
     148        VapSideTrayIndex(VapourSideStreamLocation) =1;
     149        LiqSideTrayIndex(LiquidSideStreamLocation) =1;
     150        Mw = PP.MolecularWeight();
     151
     152
     153        PlateArea = 0.25*Pi*(TrayDiameter^2)*Fraction_DowncomerArea;
     154        TrayVolume = 0.25*Pi*(TrayDiameter^2)*TraySpacing;
     155        HolesArea = 0.25*Pi*(TrayDiameter^2)*Fraction_HoleArea;
     156
     157VARIABLES
     158#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     159# Tray Initialization For the Whole Column Section
     160#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     161        INITIALIZATION as InitializeSection (Brief = "Column Model Initialization");
     162#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     163# Control Ports
     164#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     165        CONTROL as ControlSection (Brief = "Control");
     166        out     TCI as control_signal   (Brief="Temperature  Indicator", Protected = true, PosX=1, PosY=0.73);
     167        out     PCI as control_signal   (Brief="Pressure Indicator", Protected = true, PosX=0, PosY=0.24);
     168#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     169# Column Feed - Side Stream Flow and Murphree Efficiency
     170#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++             
     171    in      LiquidInlet             as      stream                  (Brief="Liquid Inlet in the section", PosX=0.70, PosY=0);
     172    out     VapourOutlet    as vapour_stream        (Brief="Vapour Outlet in the section", PosX=0.30, PosY=0);
     173
     174    out     VapourDrawOff   as vapour_stream        (Brief="Vapour Draw Off Port in the section", PosX=1, PosY=0.35,Protected = true);
     175        out     LiquidDrawOff   as liquid_stream        (Brief="Liquid Draw Off Port in the section", PosX=1, PosY=0.65,Protected = true);
     176       
     177        TRAYS(NumberOfTrays)    as tray                 (Brief="Number of trays in the Column Section");
     178        VapourDrawOffFlow               as flow_mol     (Brief="Vapour Draw Off Stream Molar Flow Rate");
     179        LiquidDrawOffFlow               as flow_mol     (Brief="Vapour Draw Off Stream Molar Flow Rate");
     180        MurphreeEff                     as Real                 (Brief="Murphree efficiency for All Trays",Lower=0.01,Upper=1);
     181
     182#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     183# Section Inlet Vapour and Outlet Liquid Material Ports
     184#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     185        in      VapourInlet     as stream             (Brief="Vapour Inlet in the section", PosX=0.30, PosY=1);
     186        out     LiquidOutlet    as liquid_stream      (Brief="Liquid Outlet in the section", PosX=0.70, PosY=1);
     187       
     188                LiquidConnector as stream       (Brief="Liquid connection in the middle TRAYS", PosX=0.75, PosY=1,Hidden=true);
     189            VapourConnector as stream       (Brief="Vapour connection in the middle TRAYS", PosX=0.55, PosY=0,Hidden=true);
     190CONNECTIONS
     191#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     192# Connecting Intermediate Trays
     193#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     194        TRAYS([2:NumberOfTrays]).OutletVapour   to TRAYS([1:NumberOfTrays-1]).InletVapour;
     195        TRAYS([1:NumberOfTrays-1]).OutletLiquid         to TRAYS([2:NumberOfTrays]).InletLiquid;
     196       
     197#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     198# Connecting Connectors
     199#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     200    LiquidConnector to TRAYS(1).InletLiquid;
     201    VapourConnector to TRAYS(NumberOfTrays).InletVapour;
     202       
     203INITIAL
     204#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     205# Tray Initialization
     206#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     207for i in 1:NumberOfTrays do
     208
     209"The initial temperature of the TRAYS"
     210        TRAYS(i).OutletLiquid.T = INITIALIZATION.TopTemperature+(INITIALIZATION.BottomTemperature-INITIALIZATION.TopTemperature)*((i-1)/(NumberOfTrays-1));
     211
     212"The initial Level of the TRAYS"
     213        TRAYS(i).Level = INITIALIZATION.LevelFraction*WeirHeight;
     214end
     215
     216for i in 1:NComp-1 do
     217
     218for j in 1:NumberOfTrays do
     219
     220"The initial composition of the TRAYS - Normalized"
     221        TRAYS(j).OutletLiquid.z(i) = INITIALIZATION.TopComposition(i)/sum(INITIALIZATION.TopComposition) +(INITIALIZATION.BottomComposition(i)/sum(INITIALIZATION.BottomComposition)-INITIALIZATION.TopComposition(i)/sum(INITIALIZATION.TopComposition) )*((j-1)/(NumberOfTrays-1));
     222end
     223
     224end
     225
     226EQUATIONS
     227#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     228# Control Ports
     229#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     230
     231"Tray Temperature Indicator"   
     232        #TCI*'K' = TRAYS(min([NumberOfTrays, CONTROL.Tindicator_TrayNumber])).OutletVapour.T;
     233        TCI*'K' = TRAYS(CONTROL.Tindicator_TrayNumber).OutletVapour.T;
     234
     235"Tray Pressure Indicator"       
     236        #PCI*'atm' = TRAYS(min([NumberOfTrays, CONTROL.Pindicator_TrayNumber])).OutletVapour.P;
     237        PCI*'atm' = TRAYS(CONTROL.Pindicator_TrayNumber).OutletVapour.P;
     238
     239#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     240# Trays Equations
     241#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     242
     243for i in [1:NumberOfTrays] do
     244
     245"Murphree Efficiency"
     246        TRAYS(i).OutletVapour.z =  MurphreeEff * (TRAYS(i).yideal - TRAYS(i).InletVapour.z) + TRAYS(i).InletVapour.z;
     247
     248"Level of clear liquid over the weir"
     249        TRAYS(i).Level = TRAYS(i).ML*TRAYS(i).vL/PlateArea;
     250
     251"Geometry Constraint"
     252        TrayVolume = TRAYS(i).ML* TRAYS(i).vL + TRAYS(i).MV*TRAYS(i).vV;
     253
     254"Energy Holdup"
     255        TRAYS(i).E = TRAYS(i).ML*TRAYS(i).OutletLiquid.h + TRAYS(i).MV*TRAYS(i).OutletVapour.h - TRAYS(i).OutletLiquid.P*TrayVolume;
     256
     257"Energy Balance"
     258        diff(TRAYS(i).E) = ( TRAYS(i).Inlet.F*TRAYS(i).Inlet.h + TRAYS(i).InletLiquid.F*TRAYS(i).InletLiquid.h + TRAYS(i).InletVapour.F*TRAYS(i).InletVapour.h- TRAYS(i).OutletLiquid.F*TRAYS(i).OutletLiquid.h - TRAYS(i).OutletVapour.F*TRAYS(i).OutletVapour.h
     259        -TRAYS(i).VapourSideStream.F*TRAYS(i).VapourSideStream.h - TRAYS(i).LiquidSideStream.F*TRAYS(i).LiquidSideStream.h + HeatSupply );
     260
     261switch LiquidFlow
     262                case "on":
     263                        switch LiquidFlowModel
     264                                case "default":
     265                                "Francis Equation"
     266                                TRAYS(i).OutletLiquid.F*TRAYS(i).vL = 1.84*'1/s'*WeirLength*((TRAYS(i).Level-(beta*WeirHeight))/(beta))^2;
     267                       
     268                                case "Wang_Fl":
     269                                TRAYS(i).OutletLiquid.F*TRAYS(i).vL = 1.84*'m^0.5/s'*WeirLength*((TRAYS(i).Level-(beta*WeirHeight))/(beta))^1.5;
     270                       
     271                                case "Olsen":
     272                                TRAYS(i).OutletLiquid.F / 'mol/s'= WeirLength*TrayLiquidPasses*TRAYS(i).rhoL/sum(Mw*TRAYS(i).OutletVapour.z)/(0.665*OlsenCoeff)^1.5 * ((TRAYS(i).ML*sum(Mw*TRAYS(i).OutletLiquid.z)/TRAYS(i).rhoL/PlateArea)-WeirHeight)^1.5 * 'm^0.5/mol';
     273                       
     274                                case "Feehery_Fl":
     275                                TRAYS(i).OutletLiquid.F = WeirLength*TRAYS(i).rhoL/sum(Mw*TRAYS(i).OutletLiquid.z) * ((TRAYS(i).Level-WeirHeight)/750/'mm')^1.5 * 'm^2/s';
     276                       
     277                                case "Roffel_Fl":
     278                                TRAYS(i).OutletLiquid.F = 2/3*TRAYS(i).rhoL/sum(Mw*TRAYS(i).OutletLiquid.z)*WeirLength*(TRAYS(i).ML*sum(Mw*TRAYS(i).OutletLiquid.z)/(PlateArea*1.3)/TRAYS(i).rhoL)^1.5*sqrt(2*g/
     279                                                        (2*(1 - 0.3593/'Pa^0.0888545'*abs(TRAYS(i).OutletVapour.F*sum(Mw*TRAYS(i).OutletVapour.z)/(PlateArea*1.3)/sqrt(TRAYS(i).rhoV))^0.177709)-1)); #/'(kg/m)^0.0888545/s^0.177709';
     280                        end
     281                when TRAYS(i).Level < (beta *WeirHeight) switchto "off";
     282               
     283                case "off":
     284                "Low level"
     285                TRAYS(i).OutletLiquid.F = 0 * 'mol/h';
     286                when TRAYS(i).Level > (beta * WeirHeight) + 1e-6*'m' switchto "on";
     287        end
     288       
     289switch VapourFlow
     290                case "on":
     291                        switch VapourFlowModel
     292                                case "Reepmeyer":
     293                                TRAYS(i).InletVapour.F*TRAYS(i).vV = sqrt((TRAYS(i).InletVapour.P - TRAYS(i).OutletVapour.P)/(TRAYS(i).rhoV*alfa))*HolesArea;
     294                       
     295                                case "Feehery_Fv":
     296                                TRAYS(i).InletVapour.F = TRAYS(i).rhoV/PlateArea/FeeheryCoeff/sum(Mw*TRAYS(i).OutletVapour.z) * sqrt(((TRAYS(i).InletVapour.P - TRAYS(i).OutletVapour.P)-(TRAYS(i).rhoV*g*TRAYS(i).ML*TRAYS(i).vL/PlateArea))/TRAYS(i).rhoV);
     297                       
     298                                case "Roffel_Fv":
     299                                TRAYS(i).InletVapour.F^1.08 * 0.0013 * 'kg/m/mol^1.08/s^0.92*1e5' = (TRAYS(i).InletVapour.P - TRAYS(i).OutletVapour.P)*1e5 - (beta*sum(TRAYS(i).M*Mw)/(PlateArea*1.3)*g*1e5) * (TRAYS(i).rhoV*HolesArea/sum(Mw*TRAYS(i).OutletVapour.z))^1.08 * 'm^1.08/mol^1.08';
     300                       
     301                                case "Klingberg":
     302                                TRAYS(i).InletVapour.F * TRAYS(i).vV = PlateArea * sqrt(((TRAYS(i).InletVapour.P - TRAYS(i).OutletVapour.P)-TRAYS(i).rhoL*g*TRAYS(i).Level)/TRAYS(i).rhoV);
     303                       
     304                                case "Wang_Fv":
     305                                TRAYS(i).InletVapour.F * TRAYS(i).vV = PlateArea * sqrt(((TRAYS(i).InletVapour.P - TRAYS(i).OutletVapour.P)-TRAYS(i).rhoL*g*TRAYS(i).Level)/TRAYS(i).rhoV*alfa);
     306                               
     307                                case "Elgue":
     308                                TRAYS(i).InletVapour.F  = sqrt((TRAYS(i).InletVapour.P - TRAYS(i).OutletVapour.P)/ElgueCoeff);
     309                        end
     310                when TRAYS(i).InletVapour.F < 1e-6 * 'kmol/h' switchto "off";
     311               
     312                case "off":
     313                TRAYS(i).InletVapour.F = 0 * 'mol/s';
     314                when TRAYS(i).InletVapour.P > TRAYS(i).OutletVapour.P + TRAYS(i).Level*g*TRAYS(i).rhoL + 1e-1 * 'atm' switchto "on";
     315        end
     316
     317end
     318
     319#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     320# Equating Inlet Liquid Connector Variables
     321#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     322"Liquid Inlet Flow"     
     323        LiquidConnector.F = LiquidInlet.F;
     324
     325"Liquid Inlet Temperature"             
     326        LiquidConnector.T = LiquidInlet.T;
     327
     328"Liquid Inlet Pressure"         
     329        LiquidConnector.P = LiquidInlet.P;
     330
     331"Liquid Inlet Composition"             
     332        LiquidConnector.z = LiquidInlet.z;
     333
     334"Liquid Inlet Vapour Fraction"         
     335        LiquidConnector.v = LiquidInlet.v;
     336
     337"Liquid Inlet Enthalpy"         
     338        LiquidConnector.h = LiquidInlet.h;
     339#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     340# Equating Inlet Vapour Connector Variables
     341#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     342"Vapour Inlet Flow"             
     343        VapourConnector.F = VapourInlet.F;
     344
     345"Vapour Inlet Temperature"             
     346        VapourConnector.T = VapourInlet.T;
     347
     348"Vapour Inlet Pressure"         
     349        VapourConnector.P = VapourInlet.P;
     350
     351"Vapour Inlet Composition"             
     352        VapourConnector.z = VapourInlet.z;
     353
     354"Vapour Inlet Vapour Fraction"         
     355        VapourConnector.v = VapourInlet.v;
     356
     357"Vapour Inlet Enthalpy"         
     358        VapourConnector.h = VapourInlet.h;
     359#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     360# Equating Outlet Liquid Variables
     361#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     362"Liquid Outlet Flow"   
     363        LiquidOutlet.F = TRAYS(NumberOfTrays).OutletLiquid.F;
     364
     365"Liquid Outlet Temperature"     
     366        LiquidOutlet.T = TRAYS(NumberOfTrays).OutletLiquid.T;
     367
     368"Liquid Outlet Pressure"       
     369        LiquidOutlet.P = TRAYS(NumberOfTrays).OutletLiquid.P;
     370
     371"Liquid Outlet Composition"     
     372        LiquidOutlet.z = TRAYS(NumberOfTrays).OutletLiquid.z;
     373#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     374# Equating Outlet Vapour Variables
     375#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     376"Vapour Outlet Flow"           
     377        VapourOutlet.F = TRAYS(1).OutletVapour.F;
     378
     379"Vapour Outlet Temperature"             
     380        VapourOutlet.T = TRAYS(1).OutletVapour.T;
     381
     382"Vapour Outlet Pressure"               
     383        VapourOutlet.P = TRAYS(1).OutletVapour.P;
     384
     385"Vapour Outlet Composition"             
     386        VapourOutlet.z = TRAYS(1).OutletVapour.z;
     387#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     388# Equating Outlet Vapour Side Stream Variables
     389#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     390"Vapour Draw Off Stream - Flow"         
     391        VapourDrawOff.F*VapSideTrayIndex= TRAYS.VapourSideStream.F;
     392
     393"Vapour Draw Off Stream - Temperature"         
     394        VapourDrawOff.T = TRAYS(VapourSideStreamLocation).VapourSideStream.T;
     395
     396"Vapour Draw Off Stream - Pressure"             
     397        VapourDrawOff.P = TRAYS(VapourSideStreamLocation).VapourSideStream.P;
     398
     399"Vapour Draw Off Stream - Composition"         
     400        VapourDrawOff.z = TRAYS(VapourSideStreamLocation).VapourSideStream.z;
     401
     402"Vapour Draw Off Stream"       
     403        VapourDrawOffFlow = VapourDrawOff.F;
     404#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     405# Equating Outlet Liquid Side Stream Variables
     406#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     407"Liquid Draw Off Stream - Flow"         
     408        LiquidDrawOff.F*LiqSideTrayIndex= TRAYS.LiquidSideStream.F;
     409
     410"Liquid Draw Off Stream - Temperature" 
     411        LiquidDrawOff.T = TRAYS(LiquidSideStreamLocation).LiquidSideStream.T;
     412
     413"Liquid Draw Off Stream - Pressure"                     
     414        LiquidDrawOff.P = TRAYS(LiquidSideStreamLocation).LiquidSideStream.P;
     415
     416"Liquid Draw Off Stream - Composition" 
     417        LiquidDrawOff.z = TRAYS(LiquidSideStreamLocation).LiquidSideStream.z;
     418
     419"Liquid Draw Off Stream"       
     420        LiquidDrawOffFlow = LiquidDrawOff.F;
     421
     422end
     423
     424Model Section_Column    as SectionColumnBasic
     425
     426ATTRIBUTES
     427        Pallete         = true;
     428        Icon            = "icon/SectionColumn";
     429        Brief   = "Model of a column section.";
     430        Info            =
     431"== Model of a column section containing ==
     432* NumberOfTrays TRAYS.
     433* One Feed Inlet.
     434       
     435== Specify ==
     436* the feed stream of each tray (Inlet);
     437* the Murphree eficiency for each tray Emv;
     438* the InletLiquid stream of the top tray;
     439* the InletVapour stream of the bottom tray.
     440       
     441== Initial Conditions ==
     442* the TRAYS temperature (OutletLiquid.T);
     443* the TRAYS liquid level (Level) OR the TRAYS liquid flow (OutletLiquid.F);
     444* (NoComps - 1) OutletLiquid (OR OutletVapour) compositions for each tray.
     445";
     446
     447SET
     448        NumberOfFeeds = 1;
     449
     450VARIABLES
     451       
     452        in      FeedTray        as stream               (Brief="Feed stream", PosX=0, PosY=0.55);
     453
     454EQUATIONS
     455#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     456# Equating Feed Tray Variables to Trays Variables
     457#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     458for i in 1:NumberOfTrays do
     459
     460if   i equal FeedTrayLocation(1) then   
     461
     462"FeedTrayTop Inlet Flow"       
     463        FeedTray.F= TRAYS(i).Inlet.F;
     464
     465"FeedTrayTop Inlet Temperature"
     466        FeedTray.T = TRAYS(i).Inlet.T;
     467
     468"FeedTrayTop Inlet Pressure"
     469        FeedTray.P = TRAYS(i).Inlet.P;
     470
     471"FeedTrayTop Inlet Composition"
     472        FeedTray.z = TRAYS(i).Inlet.z;
     473
     474"FeedTrayTop Inlet Vapour Fraction"
     475        FeedTray.v = TRAYS(i).Inlet.v;
     476
     477"FeedTrayTop Inlet Enthalpy"
     478        FeedTray.h = TRAYS(i).Inlet.h;
     479
     480else
     481
     482"Inlet Tray - Flow Sealed"     
     483        0*'mol/h'= TRAYS(i).Inlet.F;
     484
     485"Inlet Tray -  Temperature"
     486        FeedTray.T = TRAYS(i).Inlet.T;
     487
     488"Inlet Tray -  Pressure"
     489        FeedTray.P = TRAYS(i).Inlet.P;
     490
     491"Inlet Tray -  Composition"
     492        FeedTray.z = TRAYS(i).Inlet.z;
     493
     494"Inlet Tray -  Vapour Fraction"
     495        FeedTray.v = TRAYS(i).Inlet.v;
     496
     497"Inlet Tray -  Enthalpy"
     498        FeedTray.h = TRAYS(i).Inlet.h;
     499
     500end
     501
     502end
     503
     504end
     505
     506Model Section_Column2   as SectionColumnBasic
     507
     508ATTRIBUTES
     509        Pallete         = true;
     510        Icon            = "icon/SectionColumn";
     511        Brief   = "Model of a column section.";
     512        Info            =
     513"== Model of a column section containing ==
     514* NumberOfTrays TRAYS.
     515* Two Feed Inlets.
     516       
     517== Specify ==
     518* the feed stream of each tray (Inlet);
     519* the Murphree eficiency for each tray Emv;
     520* the InletLiquid stream of the top tray;
     521* the InletVapour stream of the bottom tray.
     522       
     523== Initial Conditions ==
     524* the TRAYS temperature (OutletLiquid.T);
     525* the TRAYS liquid level (Level) OR the TRAYS liquid flow (OutletLiquid.F);
     526* (NoComps - 1) OutletLiquid (OR OutletVapour) compositions for each tray.
     527";
     528
     529SET
     530        NumberOfFeeds = 2;
     531
     532VARIABLES
     533       
     534        in      FeedTrayOne     as stream               (Brief="Feed stream", PosX=0, PosY=0.45);
     535        in      FeedTrayTwo     as stream               (Brief="Feed stream", PosX=0, PosY=0.65);
     536
     537EQUATIONS
     538
     539for i in 1:NumberOfTrays do
     540
     541if   i equal FeedTrayLocation(1) then   
     542
     543"FeedTrayTop Inlet Flow"       
     544        FeedTrayOne.F= TRAYS(i).Inlet.F;
     545
     546"FeedTrayTop Inlet Temperature"
     547        FeedTrayOne.T = TRAYS(i).Inlet.T;
     548
     549"FeedTrayTop Inlet Pressure"
     550        FeedTrayOne.P = TRAYS(i).Inlet.P;
     551
     552"FeedTrayTop Inlet Composition"
     553        FeedTrayOne.z = TRAYS(i).Inlet.z;
     554
     555"FeedTrayTop Inlet Vapour Fraction"
     556        FeedTrayOne.v = TRAYS(i).Inlet.v;
     557
     558"FeedTrayTop Inlet Enthalpy"
     559        FeedTrayOne.h = TRAYS(i).Inlet.h;
     560
     561else if   i equal FeedTrayLocation(2) then   
     562
     563"FeedTrayBottom Inlet Flow"     
     564        FeedTrayTwo.F= TRAYS(i).Inlet.F;
     565
     566"FeedTrayBottom Inlet Temperature"
     567        FeedTrayTwo.T = TRAYS(i).Inlet.T;
     568
     569"FeedTrayBottom Inlet Pressure"
     570        FeedTrayTwo.P = TRAYS(i).Inlet.P;
     571
     572"FeedTrayBottom Inlet Composition"
     573        FeedTrayTwo.z = TRAYS(i).Inlet.z;
     574
     575"FeedTrayBottom Inlet Vapour Fraction"
     576        FeedTrayTwo.v = TRAYS(i).Inlet.v;
     577
     578"FeedTrayBottom Inlet Enthalpy"
     579        FeedTrayTwo.h = TRAYS(i).Inlet.h;
     580
     581else
     582
     583"Inlet Tray - Flow Sealed"     
     584        0*'mol/h'= TRAYS(i).Inlet.F;
     585
     586"Inlet Tray -  Temperature"
     587        FeedTrayTwo.T = TRAYS(i).Inlet.T;
     588
     589"Inlet Tray -  Pressure"
     590        FeedTrayTwo.P = TRAYS(i).Inlet.P;
     591
     592"Inlet Tray -  Composition"
     593        FeedTrayTwo.z = TRAYS(i).Inlet.z;
     594
     595"Inlet Tray -  Vapour Fraction"
     596        FeedTrayTwo.v = TRAYS(i).Inlet.v;
     597
     598"Inlet Tray -  Enthalpy"
     599        FeedTrayTwo.h = TRAYS(i).Inlet.h;
     600
     601end
     602
     603end
     604
     605end
     606
     607end
     608
     609Model Section_Column3   as SectionColumnBasic
     610
     611ATTRIBUTES
     612        Pallete         = true;
     613        Icon            = "icon/SectionColumn";
     614        Brief   = "Model of a column section.";
     615        Info            =
     616"== Model of a column section containing ==
     617* NumberOfTrays TRAYS.
     618* Three Feed Inlets.
     619       
     620== Specify ==
     621* the feed stream of each tray (Inlet);
     622* the Murphree eficiency for each tray Emv;
     623* the InletLiquid stream of the top tray;
     624* the InletVapour stream of the bottom tray.
     625       
     626== Initial Conditions ==
     627* the TRAYS temperature (OutletLiquid.T);
     628* the TRAYS liquid level (Level) OR the TRAYS liquid flow (OutletLiquid.F);
     629* (NoComps - 1) OutletLiquid (OR OutletVapour) compositions for each tray.
     630";
     631
     632SET
     633        NumberOfFeeds = 3;
     634
     635VARIABLES
     636       
     637        in      FeedTrayOne     as stream               (Brief="Feed stream", PosX=0, PosY=0.45);
     638        in      FeedTrayTwo     as stream               (Brief="Feed stream", PosX=0, PosY=0.65);
     639        in      FeedTrayThree   as stream               (Brief="Feed stream", PosX=0, PosY=0.85);
     640
     641EQUATIONS
     642
     643for i in 1:NumberOfTrays do
     644
     645if   i equal FeedTrayLocation(1) then   
     646
     647"FeedTrayTop Inlet Flow"       
     648        FeedTrayOne.F= TRAYS(i).Inlet.F;
     649
     650"FeedTrayTop Inlet Temperature"
     651        FeedTrayOne.T = TRAYS(i).Inlet.T;
     652
     653"FeedTrayTop Inlet Pressure"
     654        FeedTrayOne.P = TRAYS(i).Inlet.P;
     655
     656"FeedTrayTop Inlet Composition"
     657        FeedTrayOne.z = TRAYS(i).Inlet.z;
     658
     659"FeedTrayTop Inlet Vapour Fraction"
     660        FeedTrayOne.v = TRAYS(i).Inlet.v;
     661
     662"FeedTrayTop Inlet Enthalpy"
     663        FeedTrayOne.h = TRAYS(i).Inlet.h;
     664
     665else if   i equal FeedTrayLocation(2) then   
     666
     667"FeedTrayBottom Inlet Flow"     
     668        FeedTrayTwo.F= TRAYS(i).Inlet.F;
     669
     670"FeedTrayBottom Inlet Temperature"
     671        FeedTrayTwo.T = TRAYS(i).Inlet.T;
     672
     673"FeedTrayBottom Inlet Pressure"
     674        FeedTrayTwo.P = TRAYS(i).Inlet.P;
     675
     676"FeedTrayBottom Inlet Composition"
     677        FeedTrayTwo.z = TRAYS(i).Inlet.z;
     678
     679"FeedTrayBottom Inlet Vapour Fraction"
     680        FeedTrayTwo.v = TRAYS(i).Inlet.v;
     681
     682"FeedTrayBottom Inlet Enthalpy"
     683        FeedTrayTwo.h = TRAYS(i).Inlet.h;
     684
     685else if   i equal FeedTrayLocation(3) then   
     686
     687"FeedTrayBottom Inlet Flow"     
     688        FeedTrayThree.F= TRAYS(i).Inlet.F;
     689
     690"FeedTrayBottom Inlet Temperature"
     691        FeedTrayThree.T = TRAYS(i).Inlet.T;
     692
     693"FeedTrayBottom Inlet Pressure"
     694        FeedTrayThree.P = TRAYS(i).Inlet.P;
     695
     696"FeedTrayBottom Inlet Composition"
     697        FeedTrayThree.z = TRAYS(i).Inlet.z;
     698
     699"FeedTrayBottom Inlet Vapour Fraction"
     700        FeedTrayThree.v = TRAYS(i).Inlet.v;
     701
     702"FeedTrayBottom Inlet Enthalpy"
     703        FeedTrayThree.h = TRAYS(i).Inlet.h;
     704
     705else
     706
     707"Inlet Tray - Flow Sealed"     
     708        0*'mol/h'= TRAYS(i).Inlet.F;
     709
     710"Inlet Tray -  Temperature"
     711        FeedTrayTwo.T = TRAYS(i).Inlet.T;
     712
     713"Inlet Tray -  Pressure"
     714        FeedTrayTwo.P = TRAYS(i).Inlet.P;
     715
     716"Inlet Tray -  Composition"
     717        FeedTrayTwo.z = TRAYS(i).Inlet.z;
     718
     719"Inlet Tray -  Vapour Fraction"
     720        FeedTrayTwo.v = TRAYS(i).Inlet.v;
     721
     722"Inlet Tray -  Enthalpy"
     723        FeedTrayTwo.h = TRAYS(i).Inlet.h;
     724
     725end
     726
     727end
     728
     729end
     730
     731end
     732
     733end
     734
     735
     736Model ColumnBasic
     737
     738ATTRIBUTES
     739        Pallete = false;
     740        Brief   = "Model of a basic column.";
     741        Info    =
     742"Model of a basic column containing a vetor of TRAYS numbered from the top-down.";
     743
     744PARAMETERS
     745        outer PP                as Plugin       (Brief="External Physical Properties", Type="PP");
     746        outer NComp     as Integer      (Brief="Number of components");
     747
     748        NumberOfFeeds                                           as Integer                      (Brief="Number of Feed Trays",Default=3,Protected=true);
     749        FeedTrayLocation(NumberOfFeeds)         as Integer                      (Brief="Feed tray Location",Default=2);
     750        NumberOfTrays                                           as Integer                      (Brief="Number of trays", Default=8);
     751        LiqSideTrayIndex(NumberOfTrays)         as Integer                      (Brief="Liquid Side Tray Index", Default=0,Hidden=true);
     752        VapSideTrayIndex(NumberOfTrays)         as Integer                      (Brief="Vapour Side Tray Index", Default=0,Hidden=true);
     753        LiquidSideStreamLocation                        as Integer                      (Brief="Liquid Side Stream Location", Default=2);
     754        VapourSideStreamLocation                        as Integer                      (Brief="Vapour Side Stream Location", Default=2);
     755        g                                                                       as acceleration         (Brief="Gravity Acceleration",Default=9.81,Hidden=true);
     756        Mw(NComp)                                                       as molweight            (Brief="Component Mol Weight",Hidden=true);
     757
     758        VapourFlowModel         as Switcher     (Valid = ["Reepmeyer", "Feehery_Fv", "Roffel_Fv", "Klingberg", "Wang_Fv", "Elgue"], Default = "Reepmeyer");
     759        LiquidFlowModel         as Switcher     (Valid = ["default", "Wang_Fl", "Olsen", "Feehery_Fl", "Roffel_Fl"], Default = "default");
     760
    123761        VolumeOfTray            as volume               (Brief="Total Volume of the tray");
    124762        HeatSupply                      as heat_rate    (Brief="Rate of heat supply");
     
    127765        WeirLength                      as length               (Brief="Weir length");
    128766        WeirHeight                      as length               (Brief="Weir height");
     767        TrayLiquidPasses        as Real                 (Brief="Number of liquid passes in the tray", Default=1);
     768       
    129769        FeeheryCoeff            as Real                 (Brief="Feeherys correlation coefficient", Unit='1/m^4', Default=1,Hidden=true);
    130770        ElgueCoeff                      as Real                 (Brief="Elgues correlation coefficient", Unit='kg/m/mol^2', Default=1,Hidden=true);
    131771        OlsenCoeff                      as Real                 (Brief="Olsens correlation coefficient", Default=1,Hidden=true);
    132         TrayLiquidPasses        as Real                 (Brief="Number of liquid passes in the tray", Default=1);
    133772       
    134773        V                               as volume               (Brief="Total Volume of the tray",Hidden=true);
     
    165804
    166805VARIABLES
    167 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    168 # Tray Initialization For the Whole Column Section
    169 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     806
    170807        INITIALIZATION as InitializeSection (Brief = "Column Model Initialization");
    171 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    172 # Control Ports
    173 #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    174         CONTROL as ControlSection (Brief = "Control");
    175         out     TCI as control_signal   (Brief="Temperature  Indicator", Protected = true, PosX=1, PosY=0.73);
    176         out     PCI as control_signal   (Brief="Pressure Indicator", Protected = true, PosX=0, PosY=0.24);
    177 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    178 # Column Feed - Side Stream Flow and Murphree Efficiency
    179 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++             
    180     in      LiquidInlet             as      stream                  (Brief="Liquid Inlet in the section", PosX=0.70, PosY=0);
    181     out     VapourOutlet    as vapour_stream        (Brief="Vapour Outlet in the section", PosX=0.30, PosY=0);
    182 
    183     out     VapourDrawOff   as vapour_stream        (Brief="Vapour Draw Off Port in the section", PosX=1, PosY=0.35,Protected = true);
    184         out     LiquidDrawOff   as liquid_stream        (Brief="Liquid Draw Off Port in the section", PosX=1, PosY=0.65,Protected = true);
     808        CONTROL                 as ControlSection (Brief = "Control");
     809       
     810        out     TCI as control_signal   (Brief="Temperature  Indicator", Protected = true, PosX=1, PosY=0.55);
     811        out     PCI as control_signal   (Brief="Pressure Indicator", Protected = true, PosX=0, PosY=0.23);
    185812       
    186813        TRAYS(NumberOfTrays)    as tray                 (Brief="Number of trays in the Column Section");
     
    189816        MurphreeEff                     as Real                 (Brief="Murphree efficiency for All Trays",Lower=0.01,Upper=1);
    190817
    191 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    192 # Section Inlet Vapour and Outlet Liquid Material Ports
    193 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    194         in      VapourInlet     as stream             (Brief="Vapour Inlet in the section", PosX=0.30, PosY=1);
    195         out     LiquidOutlet    as liquid_stream      (Brief="Liquid Outlet in the section", PosX=0.70, PosY=1);
    196        
    197                 LiquidConnector as stream       (Brief="Liquid connection in the middle TRAYS", PosX=0.75, PosY=1,Hidden=true);
    198             VapourConnector as stream       (Brief="Vapour connection in the middle TRAYS", PosX=0.55, PosY=0,Hidden=true);
     818        out     VapourDrawOff   as vapour_stream        (Brief="Vapour Outlet in the section", PosX=1, PosY=0.388,Protected = true);
     819        out     LiquidDrawOff   as liquid_stream        (Brief="Liquid Outlet in the section", PosX=1, PosY=0.47,Protected = true);
     820
    199821CONNECTIONS
    200 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    201 # Connecting Intermediate Trays
    202 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     822
     823#Connecting Intermediate Trays
    203824        TRAYS([2:NumberOfTrays]).OutletVapour   to TRAYS([1:NumberOfTrays-1]).InletVapour;
    204825        TRAYS([1:NumberOfTrays-1]).OutletLiquid         to TRAYS([2:NumberOfTrays]).InletLiquid;
    205826       
    206 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    207 # Connecting Connectors
    208 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    209     LiquidConnector to TRAYS(1).InletLiquid;
    210     VapourConnector to TRAYS(NumberOfTrays).InletVapour;
    211        
    212827INITIAL
    213 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    214 # Tray Initialization
    215 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     828
    216829for i in 1:NumberOfTrays do
    217830
     
    234847
    235848EQUATIONS
    236 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    237 # Control Ports
    238 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    239 
     849
     850        VapourDrawOff.F*VapSideTrayIndex= TRAYS.VapourSideStream.F;
     851        VapourDrawOff.T = TRAYS(VapourSideStreamLocation).VapourSideStream.T;
     852        VapourDrawOff.P = TRAYS(VapourSideStreamLocation).VapourSideStream.P;
     853        VapourDrawOff.z = TRAYS(VapourSideStreamLocation).VapourSideStream.z;
     854
     855        LiquidDrawOff.F*LiqSideTrayIndex= TRAYS.LiquidSideStream.F;
     856        LiquidDrawOff.T = TRAYS(LiquidSideStreamLocation).LiquidSideStream.T;
     857        LiquidDrawOff.P = TRAYS(LiquidSideStreamLocation).LiquidSideStream.P;
     858        LiquidDrawOff.z = TRAYS(LiquidSideStreamLocation).LiquidSideStream.z;
     859
     860        VapourDrawOffFlow = VapourDrawOff.F;
     861        LiquidDrawOffFlow = LiquidDrawOff.F;
     862       
    240863"Tray Temperature Indicator"   
    241864        #TCI*'K' = TRAYS(min([NumberOfTrays, CONTROL.Tindicator_TrayNumber])).OutletVapour.T;
     
    245868        #PCI*'atm' = TRAYS(min([NumberOfTrays, CONTROL.Pindicator_TrayNumber])).OutletVapour.P;
    246869        PCI*'atm' = TRAYS(CONTROL.Pindicator_TrayNumber).OutletVapour.P;
    247 
    248 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    249 # Trays Equations
    250 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    251870
    252871for i in [1:NumberOfTrays] do
     
    326945end
    327946
    328 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    329 # Equating Inlet Liquid Connector Variables
    330 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    331 "Liquid Inlet Flow"     
    332         LiquidConnector.F = LiquidInlet.F;
    333 
    334 "Liquid Inlet Temperature"             
    335         LiquidConnector.T = LiquidInlet.T;
    336 
    337 "Liquid Inlet Pressure"         
    338         LiquidConnector.P = LiquidInlet.P;
    339 
    340 "Liquid Inlet Composition"             
    341         LiquidConnector.z = LiquidInlet.z;
    342 
    343 "Liquid Inlet Vapour Fraction"         
    344         LiquidConnector.v = LiquidInlet.v;
    345 
    346 "Liquid Inlet Enthalpy"         
    347         LiquidConnector.h = LiquidInlet.h;
    348 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    349 # Equating Inlet Vapour Connector Variables
    350 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    351 "Vapour Inlet Flow"             
    352         VapourConnector.F = VapourInlet.F;
    353 
    354 "Vapour Inlet Temperature"             
    355         VapourConnector.T = VapourInlet.T;
    356 
    357 "Vapour Inlet Pressure"         
    358         VapourConnector.P = VapourInlet.P;
    359 
    360 "Vapour Inlet Composition"             
    361         VapourConnector.z = VapourInlet.z;
    362 
    363 "Vapour Inlet Vapour Fraction"         
    364         VapourConnector.v = VapourInlet.v;
    365 
    366 "Vapour Inlet Enthalpy"         
    367         VapourConnector.h = VapourInlet.h;
    368 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    369 # Equating Outlet Liquid Variables
    370 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    371 "Liquid Outlet Flow"   
    372         LiquidOutlet.F = TRAYS(NumberOfTrays).OutletLiquid.F;
    373 
    374 "Liquid Outlet Temperature"     
    375         LiquidOutlet.T = TRAYS(NumberOfTrays).OutletLiquid.T;
    376 
    377 "Liquid Outlet Pressure"       
    378         LiquidOutlet.P = TRAYS(NumberOfTrays).OutletLiquid.P;
    379 
    380 "Liquid Outlet Composition"     
    381         LiquidOutlet.z = TRAYS(NumberOfTrays).OutletLiquid.z;
    382 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    383 # Equating Outlet Vapour Variables
    384 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    385 "Vapour Outlet Flow"           
    386         VapourOutlet.F = TRAYS(1).OutletVapour.F;
    387 
    388 "Vapour Outlet Temperature"             
    389         VapourOutlet.T = TRAYS(1).OutletVapour.T;
    390 
    391 "Vapour Outlet Pressure"               
    392         VapourOutlet.P = TRAYS(1).OutletVapour.P;
    393 
    394 "Vapour Outlet Composition"             
    395         VapourOutlet.z = TRAYS(1).OutletVapour.z;
    396 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    397 # Equating Outlet Vapour Side Stream Variables
    398 #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    399 "Vapour Draw Off Stream - Flow"         
    400         VapourDrawOff.F*VapSideTrayIndex= TRAYS.VapourSideStream.F;
    401 
    402 "Vapour Draw Off Stream - Temperature"         
    403         VapourDrawOff.T = TRAYS(VapourSideStreamLocation).VapourSideStream.T;
    404 
    405 "Vapour Draw Off Stream - Pressure"             
    406         VapourDrawOff.P = TRAYS(VapourSideStreamLocation).VapourSideStream.P;
    407 
    408 "Vapour Draw Off Stream - Composition"         
    409         VapourDrawOff.z = TRAYS(VapourSideStreamLocation).VapourSideStream.z;
    410 
    411 "Vapour Draw Off Stream"       
    412         VapourDrawOffFlow = VapourDrawOff.F;
    413 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    414 # Equating Outlet Liquid Side Stream Variables
    415 #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    416 "Liquid Draw Off Stream - Flow"         
    417         LiquidDrawOff.F*LiqSideTrayIndex= TRAYS.LiquidSideStream.F;
    418 
    419 "Liquid Draw Off Stream - Temperature" 
    420         LiquidDrawOff.T = TRAYS(LiquidSideStreamLocation).LiquidSideStream.T;
    421 
    422 "Liquid Draw Off Stream - Pressure"                     
    423         LiquidDrawOff.P = TRAYS(LiquidSideStreamLocation).LiquidSideStream.P;
    424 
    425 "Liquid Draw Off Stream - Composition" 
    426         LiquidDrawOff.z = TRAYS(LiquidSideStreamLocation).LiquidSideStream.z;
    427 
    428 "Liquid Draw Off Stream"       
    429         LiquidDrawOffFlow = LiquidDrawOff.F;
    430 
    431 end
    432 
    433 Model Section_Column    as SectionColumnBasic
    434 
    435 ATTRIBUTES
    436         Pallete         = true;
    437         Icon            = "icon/SectionColumn";
    438         Brief   = "Model of a column section.";
    439         Info            =
    440 "== Model of a column section containing ==
    441 * NumberOfTrays TRAYS.
    442 * One Feed Inlet.
    443        
    444 == Specify ==
    445 * the feed stream of each tray (Inlet);
    446 * the Murphree eficiency for each tray Emv;
    447 * the InletLiquid stream of the top tray;
    448 * the InletVapour stream of the bottom tray.
    449        
    450 == Initial Conditions ==
    451 * the TRAYS temperature (OutletLiquid.T);
    452 * the TRAYS liquid level (Level) OR the TRAYS liquid flow (OutletLiquid.F);
    453 * (NoComps - 1) OutletLiquid (OR OutletVapour) compositions for each tray.
    454 ";
    455 
    456 SET
    457         NumberOfFeeds = 1;
    458 
    459 VARIABLES
    460        
    461         in      FeedTray        as stream               (Brief="Feed stream", PosX=0, PosY=0.55);
    462 
    463 EQUATIONS
    464 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    465 # Equating Feed Tray Variables to Trays Variables
    466 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    467 for i in 1:NumberOfTrays do
    468 
    469 if   i equal FeedTrayLocation(1) then   
    470 
    471 "FeedTrayTop Inlet Flow"       
    472         FeedTray.F= TRAYS(i).Inlet.F;
    473 
    474 "FeedTrayTop Inlet Temperature"
    475         FeedTray.T = TRAYS(i).Inlet.T;
    476 
    477 "FeedTrayTop Inlet Pressure"
    478         FeedTray.P = TRAYS(i).Inlet.P;
    479 
    480 "FeedTrayTop Inlet Composition"
    481         FeedTray.z = TRAYS(i).Inlet.z;
    482 
    483 "FeedTrayTop Inlet Vapour Fraction"
    484         FeedTray.v = TRAYS(i).Inlet.v;
    485 
    486 "FeedTrayTop Inlet Enthalpy"
    487         FeedTray.h = TRAYS(i).Inlet.h;
    488 
    489 else
    490 
    491 "Inlet Tray - Flow Sealed"     
    492         0*'mol/h'= TRAYS(i).Inlet.F;
    493 
    494 "Inlet Tray -  Temperature"
    495         FeedTray.T = TRAYS(i).Inlet.T;
    496 
    497 "Inlet Tray -  Pressure"
    498         FeedTray.P = TRAYS(i).Inlet.P;
    499 
    500 "Inlet Tray -  Composition"
    501         FeedTray.z = TRAYS(i).Inlet.z;
    502 
    503 "Inlet Tray -  Vapour Fraction"
    504         FeedTray.v = TRAYS(i).Inlet.v;
    505 
    506 "Inlet Tray -  Enthalpy"
    507         FeedTray.h = TRAYS(i).Inlet.h;
    508 
    509 end
    510 
    511 end
    512 
    513 end
    514 
    515 Model Section_Column2   as SectionColumnBasic
    516 
    517 ATTRIBUTES
    518         Pallete         = true;
    519         Icon            = "icon/SectionColumn";
    520         Brief   = "Model of a column section.";
    521         Info            =
    522 "== Model of a column section containing ==
    523 * NumberOfTrays TRAYS.
    524 * Two Feed Inlets.
    525        
    526 == Specify ==
    527 * the feed stream of each tray (Inlet);
    528 * the Murphree eficiency for each tray Emv;
    529 * the InletLiquid stream of the top tray;
    530 * the InletVapour stream of the bottom tray.
    531        
    532 == Initial Conditions ==
    533 * the TRAYS temperature (OutletLiquid.T);
    534 * the TRAYS liquid level (Level) OR the TRAYS liquid flow (OutletLiquid.F);
    535 * (NoComps - 1) OutletLiquid (OR OutletVapour) compositions for each tray.
    536 ";
    537 
    538 SET
    539         NumberOfFeeds = 2;
    540 
    541 VARIABLES
    542        
    543         in      FeedTrayOne     as stream               (Brief="Feed stream", PosX=0, PosY=0.45);
    544         in      FeedTrayTwo     as stream               (Brief="Feed stream", PosX=0, PosY=0.65);
    545 
    546 EQUATIONS
    547 
    548 for i in 1:NumberOfTrays do
    549 
    550 if   i equal FeedTrayLocation(1) then   
    551 
    552 "FeedTrayTop Inlet Flow"       
    553         FeedTrayOne.F= TRAYS(i).Inlet.F;
    554 
    555 "FeedTrayTop Inlet Temperature"
    556         FeedTrayOne.T = TRAYS(i).Inlet.T;
    557 
    558 "FeedTrayTop Inlet Pressure"
    559         FeedTrayOne.P = TRAYS(i).Inlet.P;
    560 
    561 "FeedTrayTop Inlet Composition"
    562         FeedTrayOne.z = TRAYS(i).Inlet.z;
    563 
    564 "FeedTrayTop Inlet Vapour Fraction"
    565         FeedTrayOne.v = TRAYS(i).Inlet.v;
    566 
    567 "FeedTrayTop Inlet Enthalpy"
    568         FeedTrayOne.h = TRAYS(i).Inlet.h;
    569 
    570 else if   i equal FeedTrayLocation(2) then   
    571 
    572 "FeedTrayBottom Inlet Flow"     
    573         FeedTrayTwo.F= TRAYS(i).Inlet.F;
    574 
    575 "FeedTrayBottom Inlet Temperature"
    576         FeedTrayTwo.T = TRAYS(i).Inlet.T;
    577 
    578 "FeedTrayBottom Inlet Pressure"
    579         FeedTrayTwo.P = TRAYS(i).Inlet.P;
    580 
    581 "FeedTrayBottom Inlet Composition"
    582         FeedTrayTwo.z = TRAYS(i).Inlet.z;
    583 
    584 "FeedTrayBottom Inlet Vapour Fraction"
    585         FeedTrayTwo.v = TRAYS(i).Inlet.v;
    586 
    587 "FeedTrayBottom Inlet Enthalpy"
    588         FeedTrayTwo.h = TRAYS(i).Inlet.h;
    589 
    590 else
    591 
    592 "Inlet Tray - Flow Sealed"     
    593         0*'mol/h'= TRAYS(i).Inlet.F;
    594 
    595 "Inlet Tray -  Temperature"
    596         FeedTrayTwo.T = TRAYS(i).Inlet.T;
    597 
    598 "Inlet Tray -  Pressure"
    599         FeedTrayTwo.P = TRAYS(i).Inlet.P;
    600 
    601 "Inlet Tray -  Composition"
    602         FeedTrayTwo.z = TRAYS(i).Inlet.z;
    603 
    604 "Inlet Tray -  Vapour Fraction"
    605         FeedTrayTwo.v = TRAYS(i).Inlet.v;
    606 
    607 "Inlet Tray -  Enthalpy"
    608         FeedTrayTwo.h = TRAYS(i).Inlet.h;
    609 
    610 end
    611 
    612 end
    613 
    614 end
    615 
    616 end
    617 
    618 Model Section_Column3   as SectionColumnBasic
    619 
    620 ATTRIBUTES
    621         Pallete         = true;
    622         Icon            = "icon/SectionColumn";
    623         Brief   = "Model of a column section.";
    624         Info            =
    625 "== Model of a column section containing ==
    626 * NumberOfTrays TRAYS.
    627 * Three Feed Inlets.
    628        
    629 == Specify ==
    630 * the feed stream of each tray (Inlet);
    631 * the Murphree eficiency for each tray Emv;
    632 * the InletLiquid stream of the top tray;
    633 * the InletVapour stream of the bottom tray.
    634        
    635 == Initial Conditions ==
    636 * the TRAYS temperature (OutletLiquid.T);
    637 * the TRAYS liquid level (Level) OR the TRAYS liquid flow (OutletLiquid.F);
    638 * (NoComps - 1) OutletLiquid (OR OutletVapour) compositions for each tray.
    639 ";
    640 
    641 SET
    642         NumberOfFeeds = 3;
    643 
    644 VARIABLES
    645        
    646         in      FeedTrayOne     as stream               (Brief="Feed stream", PosX=0, PosY=0.45);
    647         in      FeedTrayTwo     as stream               (Brief="Feed stream", PosX=0, PosY=0.65);
    648         in      FeedTrayThree   as stream               (Brief="Feed stream", PosX=0, PosY=0.85);
    649 
    650 EQUATIONS
    651 
    652 for i in 1:NumberOfTrays do
    653 
    654 if   i equal FeedTrayLocation(1) then   
    655 
    656 "FeedTrayTop Inlet Flow"       
    657         FeedTrayOne.F= TRAYS(i).Inlet.F;
    658 
    659 "FeedTrayTop Inlet Temperature"
    660         FeedTrayOne.T = TRAYS(i).Inlet.T;
    661 
    662 "FeedTrayTop Inlet Pressure"
    663         FeedTrayOne.P = TRAYS(i).Inlet.P;
    664 
    665 "FeedTrayTop Inlet Composition"
    666         FeedTrayOne.z = TRAYS(i).Inlet.z;
    667 
    668 "FeedTrayTop Inlet Vapour Fraction"
    669         FeedTrayOne.v = TRAYS(i).Inlet.v;
    670 
    671 "FeedTrayTop Inlet Enthalpy"
    672         FeedTrayOne.h = TRAYS(i).Inlet.h;
    673 
    674 else if   i equal FeedTrayLocation(2) then   
    675 
    676 "FeedTrayBottom Inlet Flow"     
    677         FeedTrayTwo.F= TRAYS(i).Inlet.F;
    678 
    679 "FeedTrayBottom Inlet Temperature"
    680         FeedTrayTwo.T = TRAYS(i).Inlet.T;
    681 
    682 "FeedTrayBottom Inlet Pressure"
    683         FeedTrayTwo.P = TRAYS(i).Inlet.P;
    684 
    685 "FeedTrayBottom Inlet Composition"
    686         FeedTrayTwo.z = TRAYS(i).Inlet.z;
    687 
    688 "FeedTrayBottom Inlet Vapour Fraction"
    689         FeedTrayTwo.v = TRAYS(i).Inlet.v;
    690 
    691 "FeedTrayBottom Inlet Enthalpy"
    692         FeedTrayTwo.h = TRAYS(i).Inlet.h;
    693 
    694 else if   i equal FeedTrayLocation(3) then   
    695 
    696 "FeedTrayBottom Inlet Flow"     
    697         FeedTrayThree.F= TRAYS(i).Inlet.F;
    698 
    699 "FeedTrayBottom Inlet Temperature"
    700         FeedTrayThree.T = TRAYS(i).Inlet.T;
    701 
    702 "FeedTrayBottom Inlet Pressure"
    703         FeedTrayThree.P = TRAYS(i).Inlet.P;
    704 
    705 "FeedTrayBottom Inlet Composition"
    706         FeedTrayThree.z = TRAYS(i).Inlet.z;
    707 
    708 "FeedTrayBottom Inlet Vapour Fraction"
    709         FeedTrayThree.v = TRAYS(i).Inlet.v;
    710 
    711 "FeedTrayBottom Inlet Enthalpy"
    712         FeedTrayThree.h = TRAYS(i).Inlet.h;
    713 
    714 else
    715 
    716 "Inlet Tray - Flow Sealed"     
    717         0*'mol/h'= TRAYS(i).Inlet.F;
    718 
    719 "Inlet Tray -  Temperature"
    720         FeedTrayTwo.T = TRAYS(i).Inlet.T;
    721 
    722 "Inlet Tray -  Pressure"
    723         FeedTrayTwo.P = TRAYS(i).Inlet.P;
    724 
    725 "Inlet Tray -  Composition"
    726         FeedTrayTwo.z = TRAYS(i).Inlet.z;
    727 
    728 "Inlet Tray -  Vapour Fraction"
    729         FeedTrayTwo.v = TRAYS(i).Inlet.v;
    730 
    731 "Inlet Tray -  Enthalpy"
    732         FeedTrayTwo.h = TRAYS(i).Inlet.h;
    733 
    734 end
    735 
    736 end
    737 
    738 end
    739 
    740 end
    741 
    742 end
    743 
    744 
    745 Model ColumnBasic
    746 
    747 ATTRIBUTES
    748         Pallete = false;
    749         Brief   = "Model of a basic column.";
    750         Info    =
    751 "Model of a basic column containing a vetor of TRAYS numbered from the top-down.";
    752 
    753 PARAMETERS
    754         outer PP                as Plugin       (Brief="External Physical Properties", Type="PP");
    755         outer NComp     as Integer      (Brief="Number of components");
    756 
    757         NumberOfFeeds                                           as Integer                      (Brief="Number of Feed Trays",Default=3,Protected=true);
    758         FeedTrayLocation(NumberOfFeeds)         as Integer                      (Brief="Feed tray Location",Default=2);
    759         NumberOfTrays                                           as Integer                      (Brief="Number of trays", Default=8);
    760         LiqSideTrayIndex(NumberOfTrays)         as Integer                      (Brief="Liquid Side Tray Index", Default=0,Hidden=true);
    761         VapSideTrayIndex(NumberOfTrays)         as Integer                      (Brief="Vapour Side Tray Index", Default=0,Hidden=true);
    762         LiquidSideStreamLocation                        as Integer                      (Brief="Liquid Side Stream Location", Default=2);
    763         VapourSideStreamLocation                        as Integer                      (Brief="Vapour Side Stream Location", Default=2);
    764         g                                                                       as acceleration         (Brief="Gravity Acceleration",Default=9.81,Hidden=true);
    765         Mw(NComp)                                                       as molweight            (Brief="Component Mol Weight",Hidden=true);
    766 
    767         VapourFlowModel         as Switcher     (Valid = ["Reepmeyer", "Feehery_Fv", "Roffel_Fv", "Klingberg", "Wang_Fv", "Elgue"], Default = "Reepmeyer");
    768         LiquidFlowModel         as Switcher     (Valid = ["default", "Wang_Fl", "Olsen", "Feehery_Fl", "Roffel_Fl"], Default = "default");
    769 
    770         VolumeOfTray            as volume               (Brief="Total Volume of the tray");
    771         HeatSupply                      as heat_rate    (Brief="Rate of heat supply");
    772         PlateArea                       as area                 (Brief="Plate area = Atray - Adowncomer");
    773         HolesArea                       as area                 (Brief="Total holes area");
    774         WeirLength                      as length               (Brief="Weir length");
    775         WeirHeight                      as length               (Brief="Weir height");
    776         TrayLiquidPasses        as Real                 (Brief="Number of liquid passes in the tray", Default=1);
    777        
    778         FeeheryCoeff            as Real                 (Brief="Feeherys correlation coefficient", Unit='1/m^4', Default=1,Hidden=true);
    779         ElgueCoeff                      as Real                 (Brief="Elgues correlation coefficient", Unit='kg/m/mol^2', Default=1,Hidden=true);
    780         OlsenCoeff                      as Real                 (Brief="Olsens correlation coefficient", Default=1,Hidden=true);
    781        
    782         V                               as volume               (Brief="Total Volume of the tray",Hidden=true);
    783         Q                               as heat_rate    (Brief="Rate of heat supply",Hidden=true);
    784         Ap                              as area                 (Brief="Plate area = Atray - Adowncomer",Hidden=true);
    785         Ah                              as area                 (Brief="Total holes area",Hidden=true);
    786         lw                              as length               (Brief="Weir length",Hidden=true);
    787         hw                              as length               (Brief="Weir height",Hidden=true);
    788         beta                    as fraction     (Brief="Aeration fraction");
    789         alfa                    as fraction     (Brief="Dry pressure drop coefficient");
    790         w                               as Real                 (Brief="Feeherys correlation coefficient", Unit='1/m^4', Default=1,Hidden=true);
    791         btray                   as Real                 (Brief="Elgues correlation coefficient", Unit='kg/m/mol^2', Default=1,Hidden=true);
    792         fw                              as Real                 (Brief="Olsens correlation coefficient", Default=1,Hidden=true);
    793         Np                              as Real                 (Brief="Number of liquid passes in the tray", Default=1,Hidden=true);
    794 
    795         VapourFlow      as Switcher     (Valid = ["on", "off"], Default = "on",Hidden=true);
    796         LiquidFlow      as Switcher     (Valid = ["on", "off"], Default = "on",Hidden=true);
    797 
    798 SET
    799         VapSideTrayIndex(VapourSideStreamLocation) =1;
    800         LiqSideTrayIndex(LiquidSideStreamLocation) =1;
    801         Mw = PP.MolecularWeight();
    802 
    803         V=VolumeOfTray;
    804         Q=HeatSupply;
    805         Ap=PlateArea;
    806         Ah=HolesArea;
    807         lw=WeirLength;
    808         hw=WeirHeight ;
    809         w=FeeheryCoeff;
    810         btray=ElgueCoeff;
    811         fw=OlsenCoeff;
    812         Np=TrayLiquidPasses;
    813 
    814 VARIABLES
    815 
    816         INITIALIZATION as InitializeSection (Brief = "Column Model Initialization");
    817         CONTROL                 as ControlSection (Brief = "Control");
    818        
    819         out     TCI as control_signal   (Brief="Temperature  Indicator", Protected = true, PosX=1, PosY=0.55);
    820         out     PCI as control_signal   (Brief="Pressure Indicator", Protected = true, PosX=0, PosY=0.23);
    821        
    822         TRAYS(NumberOfTrays)    as tray                 (Brief="Number of trays in the Column Section");
    823         VapourDrawOffFlow               as flow_mol     (Brief="Vapour Draw Off Stream Molar Flow Rate");
    824         LiquidDrawOffFlow               as flow_mol     (Brief="Vapour Draw Off Stream Molar Flow Rate");
    825         MurphreeEff                     as Real                 (Brief="Murphree efficiency for All Trays",Lower=0.01,Upper=1);
    826 
    827         out     VapourDrawOff   as vapour_stream        (Brief="Vapour Outlet in the section", PosX=1, PosY=0.388,Protected = true);
    828         out     LiquidDrawOff   as liquid_stream        (Brief="Liquid Outlet in the section", PosX=1, PosY=0.47,Protected = true);
    829 
    830 CONNECTIONS
    831 
    832 #Connecting Intermediate Trays
    833         TRAYS([2:NumberOfTrays]).OutletVapour   to TRAYS([1:NumberOfTrays-1]).InletVapour;
    834         TRAYS([1:NumberOfTrays-1]).OutletLiquid         to TRAYS([2:NumberOfTrays]).InletLiquid;
    835        
    836 INITIAL
    837 
    838 for i in 1:NumberOfTrays do
    839 
    840 "The initial temperature of the TRAYS"
    841         TRAYS(i).OutletLiquid.T = INITIALIZATION.TopTemperature+(INITIALIZATION.BottomTemperature-INITIALIZATION.TopTemperature)*((i-1)/(NumberOfTrays-1));
    842 
    843 "The initial Level of the TRAYS"
    844         TRAYS(i).Level = INITIALIZATION.LevelFraction*hw;
    845 end
    846 
    847 for i in 1:NComp-1 do
    848 
    849 for j in 1:NumberOfTrays do
    850 
    851 "The initial composition of the TRAYS - Normalized"
    852         TRAYS(j).OutletLiquid.z(i) = INITIALIZATION.TopComposition(i)/sum(INITIALIZATION.TopComposition) +(INITIALIZATION.BottomComposition(i)/sum(INITIALIZATION.BottomComposition)-INITIALIZATION.TopComposition(i)/sum(INITIALIZATION.TopComposition) )*((j-1)/(NumberOfTrays-1));
    853 end
    854 
    855 end
    856 
    857 EQUATIONS
    858 
    859         VapourDrawOff.F*VapSideTrayIndex= TRAYS.VapourSideStream.F;
    860         VapourDrawOff.T = TRAYS(VapourSideStreamLocation).VapourSideStream.T;
    861         VapourDrawOff.P = TRAYS(VapourSideStreamLocation).VapourSideStream.P;
    862         VapourDrawOff.z = TRAYS(VapourSideStreamLocation).VapourSideStream.z;
    863 
    864         LiquidDrawOff.F*LiqSideTrayIndex= TRAYS.LiquidSideStream.F;
    865         LiquidDrawOff.T = TRAYS(LiquidSideStreamLocation).LiquidSideStream.T;
    866         LiquidDrawOff.P = TRAYS(LiquidSideStreamLocation).LiquidSideStream.P;
    867         LiquidDrawOff.z = TRAYS(LiquidSideStreamLocation).LiquidSideStream.z;
    868 
    869         VapourDrawOffFlow = VapourDrawOff.F;
    870         LiquidDrawOffFlow = LiquidDrawOff.F;
    871        
    872 "Tray Temperature Indicator"   
    873         #TCI*'K' = TRAYS(min([NumberOfTrays, CONTROL.Tindicator_TrayNumber])).OutletVapour.T;
    874         TCI*'K' = TRAYS(CONTROL.Tindicator_TrayNumber).OutletVapour.T;
    875 
    876 "Tray Pressure Indicator"       
    877         #PCI*'atm' = TRAYS(min([NumberOfTrays, CONTROL.Pindicator_TrayNumber])).OutletVapour.P;
    878         PCI*'atm' = TRAYS(CONTROL.Pindicator_TrayNumber).OutletVapour.P;
    879 
    880 for i in [1:NumberOfTrays] do
    881 
    882 "Murphree Efficiency"
    883         TRAYS(i).OutletVapour.z =  MurphreeEff * (TRAYS(i).yideal - TRAYS(i).InletVapour.z) + TRAYS(i).InletVapour.z;
    884 
    885 "Level of clear liquid over the weir"
    886         TRAYS(i).Level = TRAYS(i).ML*TRAYS(i).vL/Ap;
    887 
    888 "Geometry Constraint"
    889         V = TRAYS(i).ML* TRAYS(i).vL + TRAYS(i).MV*TRAYS(i).vV;
    890 
    891 "Energy Holdup"
    892         TRAYS(i).E = TRAYS(i).ML*TRAYS(i).OutletLiquid.h + TRAYS(i).MV*TRAYS(i).OutletVapour.h - TRAYS(i).OutletLiquid.P*V;
    893 
    894 "Energy Balance"
    895         diff(TRAYS(i).E) = ( TRAYS(i).Inlet.F*TRAYS(i).Inlet.h + TRAYS(i).InletLiquid.F*TRAYS(i).InletLiquid.h + TRAYS(i).InletVapour.F*TRAYS(i).InletVapour.h- TRAYS(i).OutletLiquid.F*TRAYS(i).OutletLiquid.h - TRAYS(i).OutletVapour.F*TRAYS(i).OutletVapour.h
    896         -TRAYS(i).VapourSideStream.F*TRAYS(i).VapourSideStream.h - TRAYS(i).LiquidSideStream.F*TRAYS(i).LiquidSideStream.h + Q );
    897 
    898 switch LiquidFlow
    899                 case "on":
    900                         switch LiquidFlowModel
    901                                 case "default":
    902                                 "Francis Equation"
    903                                 TRAYS(i).OutletLiquid.F*TRAYS(i).vL = 1.84*'1/s'*lw*((TRAYS(i).Level-(beta*hw))/(beta))^2;
    904                        
    905                                 case "Wang_Fl":
    906                                 TRAYS(i).OutletLiquid.F*TRAYS(i).vL = 1.84*'m^0.5/s'*lw*((TRAYS(i).Level-(beta*hw))/(beta))^1.5;
    907                        
    908                                 case "Olsen":
    909                                 TRAYS(i).OutletLiquid.F / 'mol/s'= lw*Np*TRAYS(i).rhoL/sum(Mw*TRAYS(i).OutletVapour.z)/(0.665*fw)^1.5 * ((TRAYS(i).ML*sum(Mw*TRAYS(i).OutletLiquid.z)/TRAYS(i).rhoL/Ap)-hw)^1.5 * 'm^0.5/mol';
    910                        
    911                                 case "Feehery_Fl":
    912                                 TRAYS(i).OutletLiquid.F = lw*TRAYS(i).rhoL/sum(Mw*TRAYS(i).OutletLiquid.z) * ((TRAYS(i).Level-hw)/750/'mm')^1.5 * 'm^2/s';
    913                        
    914                                 case "Roffel_Fl":
    915                                 TRAYS(i).OutletLiquid.F = 2/3*TRAYS(i).rhoL/sum(Mw*TRAYS(i).OutletLiquid.z)*lw*(TRAYS(i).ML*sum(Mw*TRAYS(i).OutletLiquid.z)/(Ap*1.3)/TRAYS(i).rhoL)^1.5*sqrt(2*g/
    916                                                         (2*(1 - 0.3593/'Pa^0.0888545'*abs(TRAYS(i).OutletVapour.F*sum(Mw*TRAYS(i).OutletVapour.z)/(Ap*1.3)/sqrt(TRAYS(i).rhoV))^0.177709)-1)); #/'(kg/m)^0.0888545/s^0.177709';
    917                         end
    918                 when TRAYS(i).Level < (beta *hw) switchto "off";
    919                
    920                 case "off":
    921                 "Low level"
    922                 TRAYS(i).OutletLiquid.F = 0 * 'mol/h';
    923                 when TRAYS(i).Level > (beta * hw) + 1e-6*'m' switchto "on";
    924         end
    925        
    926 switch VapourFlow
    927                 case "on":
    928                         switch VapourFlowModel
    929                                 case "Reepmeyer":
    930                                 TRAYS(i).InletVapour.F*TRAYS(i).vV = sqrt((TRAYS(i).InletVapour.P - TRAYS(i).OutletVapour.P)/(TRAYS(i).rhoV*alfa))*Ah;
    931                        
    932                                 case "Feehery_Fv":
    933                                 TRAYS(i).InletVapour.F = TRAYS(i).rhoV/Ap/w/sum(Mw*TRAYS(i).OutletVapour.z) * sqrt(((TRAYS(i).InletVapour.P - TRAYS(i).OutletVapour.P)-(TRAYS(i).rhoV*g*TRAYS(i).ML*TRAYS(i).vL/Ap))/TRAYS(i).rhoV);
    934                        
    935                                 case "Roffel_Fv":
    936                                 TRAYS(i).InletVapour.F^1.08 * 0.0013 * 'kg/m/mol^1.08/s^0.92*1e5' = (TRAYS(i).InletVapour.P - TRAYS(i).OutletVapour.P)*1e5 - (beta*sum(TRAYS(i).M*Mw)/(Ap*1.3)*g*1e5) * (TRAYS(i).rhoV*Ah/sum(Mw*TRAYS(i).OutletVapour.z))^1.08 * 'm^1.08/mol^1.08';
    937                        
    938                                 case "Klingberg":
    939                                 TRAYS(i).InletVapour.F * TRAYS(i).vV = Ap * sqrt(((TRAYS(i).InletVapour.P - TRAYS(i).OutletVapour.P)-TRAYS(i).rhoL*g*TRAYS(i).Level)/TRAYS(i).rhoV);
    940                        
    941                                 case "Wang_Fv":
    942                                 TRAYS(i).InletVapour.F * TRAYS(i).vV = Ap * sqrt(((TRAYS(i).InletVapour.P - TRAYS(i).OutletVapour.P)-TRAYS(i).rhoL*g*TRAYS(i).Level)/TRAYS(i).rhoV*alfa);
    943                                
    944                                 case "Elgue":
    945                                 TRAYS(i).InletVapour.F  = sqrt((TRAYS(i).InletVapour.P - TRAYS(i).OutletVapour.P)/btray);
    946                         end
    947                 when TRAYS(i).InletVapour.F < 1e-6 * 'kmol/h' switchto "off";
    948                
    949                 case "off":
    950                 TRAYS(i).InletVapour.F = 0 * 'mol/s';
    951                 when TRAYS(i).InletVapour.P > TRAYS(i).OutletVapour.P + TRAYS(i).Level*g*TRAYS(i).rhoL + 1e-1 * 'atm' switchto "on";
    952         end
    953 
    954 end
    955 
    956947end
    957948
  • branches/gui/sample/stage_separators/Sample_Column_Control_Diagram.pfd

    r793 r816  
    3131<View>
    3232        <Zoom_Level>1</Zoom_Level>
    33         <Show_Grid>0</Show_Grid>
    34         <Snap_to_Grid>0</Snap_to_Grid>
    35         <Width>1250</Width>
    36         <Height>460</Height>
     33        <Show_Grid>1</Show_Grid>
     34        <Snap_to_Grid>1</Snap_to_Grid>
     35        <Width>919</Width>
     36        <Height>422</Height>
    3737        <X>0</X>
    38         <Y>0</Y>
     38        <Y>-300</Y>
    3939</View>
    4040<View>
    4141        <Zoom_Level>1</Zoom_Level>
    42         <Show_Grid>0</Show_Grid>
    43         <Snap_to_Grid>0</Snap_to_Grid>
    44         <Width>1250</Width>
     42        <Show_Grid>1</Show_Grid>
     43        <Snap_to_Grid>1</Snap_to_Grid>
     44        <Width>919</Width>
    4545        <Height>0</Height>
    4646        <X>0</X>
     
    632632                                                                                <Model_File_Path>stage_separators/tray</Model_File_Path>
    633633                                                                                <Instance_Id>TRAYS(1)</Instance_Id>
    634                                                                                 <Model_Name>trayBasic</Model_Name>
    635                                                                                 <T_Connection>0</T_Connection>
    636                                                                                 <Sub_Models>
    637                                                                                         <Block_Properties>
    638                                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    639                                                                                                 <Instance_Id>InletLiquid</Instance_Id>
    640                                                                                                 <Model_Name>InletLiquid</Model_Name>
    641                                                                                                 <T_Connection>1</T_Connection>
    642                                                                                                 <Base_Models>
    643                                                                                                         <Block_Properties>
    644                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    645                                                                                                                 <Instance_Id>InletLiquid</Instance_Id>
    646                                                                                                                 <Model_Name>stream</Model_Name>
    647                                                                                                                 <T_Connection>1</T_Connection>
    648                                                                                                                 <Parameters>
    649                                                                                                                         <Desc>NComp</Desc>
    650                                                                                                                         <Index>0</Index>
    651                                                                                                                         <Values>2</Values>
    652                                                                                                                         <Status>0</Status>
    653                                                                                                                 </Parameters>
    654                                                                                                                 <Variables>
    655                                                                                                                         <Desc>F</Desc>
    656                                                                                                                         <Index>0</Index>
    657                                                                                                                         <Values>65.1385</Values>
    658                                                                                                                         <Status>0</Status>
    659                                                                                                                         <Unit>kmol/h</Unit>
    660                                                                                                                 </Variables>
    661                                                                                                                 <Variables>
    662                                                                                                                         <Desc>T</Desc>
    663                                                                                                                         <Index>0</Index>
    664                                                                                                                         <Values>327.203</Values>
    665                                                                                                                         <Status>0</Status>
    666                                                                                                                         <Unit>K</Unit>
    667                                                                                                                 </Variables>
    668                                                                                                                 <Variables>
    669                                                                                                                         <Desc>P</Desc>
    670                                                                                                                         <Index>0</Index>
    671                                                                                                                         <Values>20.6339</Values>
    672                                                                                                                         <Status>0</Status>
    673                                                                                                                         <Unit>atm</Unit>
    674                                                                                                                 </Variables>
    675                                                                                                                 <Variables>
    676                                                                                                                         <Desc>h</Desc>
    677                                                                                                                         <Index>0</Index>
    678                                                                                                                         <Values>-12166.4</Values>
    679                                                                                                                         <Status>0</Status>
    680                                                                                                                         <Unit>kJ/kmol</Unit>
    681                                                                                                                 </Variables>
    682                                                                                                                 <Variables>
    683                                                                                                                         <Desc>v</Desc>
    684                                                                                                                         <Index>0</Index>
    685                                                                                                                         <Values>0</Values>
    686                                                                                                                         <Status>0</Status>
    687                                                                                                                 </Variables>
    688                                                                                                                 <Variables>
    689                                                                                                                         <Desc>z</Desc>
    690                                                                                                                         <Index>0</Index>
    691                                                                                                                         <Values>0.552938</Values>
    692                                                                                                                         <Status>0</Status>
    693                                                                                                                         <Index>1</Index>
    694                                                                                                                         <Values>0.447062</Values>
    695                                                                                                                         <Status>0</Status>
    696                                                                                                                 </Variables>
    697                                                                                                         </Block_Properties>
    698                                                                                                 </Base_Models>
    699                                                                                         </Block_Properties>
    700                                                                                 </Sub_Models>
    701                                                                                 <Sub_Models>
    702                                                                                         <Block_Properties>
    703                                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    704                                                                                                 <Instance_Id>InletVapour</Instance_Id>
    705                                                                                                 <Model_Name>InletVapour</Model_Name>
    706                                                                                                 <T_Connection>1</T_Connection>
    707                                                                                                 <Base_Models>
    708                                                                                                         <Block_Properties>
    709                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    710                                                                                                                 <Instance_Id>InletVapour</Instance_Id>
    711                                                                                                                 <Model_Name>stream</Model_Name>
    712                                                                                                                 <T_Connection>1</T_Connection>
    713                                                                                                                 <Parameters>
    714                                                                                                                         <Desc>NComp</Desc>
    715                                                                                                                         <Index>0</Index>
    716                                                                                                                         <Values>2</Values>
    717                                                                                                                         <Status>0</Status>
    718                                                                                                                 </Parameters>
    719                                                                                                                 <Variables>
    720                                                                                                                         <Desc>F</Desc>
    721                                                                                                                         <Index>0</Index>
    722                                                                                                                         <Values>93.3938</Values>
    723                                                                                                                         <Status>0</Status>
    724                                                                                                                         <Unit>kmol/h</Unit>
    725                                                                                                                 </Variables>
    726                                                                                                                 <Variables>
    727                                                                                                                         <Desc>T</Desc>
    728                                                                                                                         <Index>0</Index>
    729                                                                                                                         <Values>328.422</Values>
    730                                                                                                                         <Status>0</Status>
    731                                                                                                                         <Unit>K</Unit>
    732                                                                                                                 </Variables>
    733                                                                                                                 <Variables>
    734                                                                                                                         <Desc>P</Desc>
    735                                                                                                                         <Index>0</Index>
    736                                                                                                                         <Values>20.7286</Values>
    737                                                                                                                         <Status>0</Status>
    738                                                                                                                         <Unit>atm</Unit>
    739                                                                                                                 </Variables>
    740                                                                                                                 <Variables>
    741                                                                                                                         <Desc>h</Desc>
    742                                                                                                                         <Index>0</Index>
    743                                                                                                                         <Values>-496.131</Values>
    744                                                                                                                         <Status>0</Status>
    745                                                                                                                         <Unit>kJ/kmol</Unit>
    746                                                                                                                 </Variables>
    747                                                                                                                 <Variables>
    748                                                                                                                         <Desc>v</Desc>
    749                                                                                                                         <Index>0</Index>
    750                                                                                                                         <Values>1</Values>
    751                                                                                                                         <Status>0</Status>
    752                                                                                                                 </Variables>
    753                                                                                                                 <Variables>
    754                                                                                                                         <Desc>z</Desc>
    755                                                                                                                         <Index>0</Index>
    756                                                                                                                         <Values>0.502194</Values>
    757                                                                                                                         <Status>0</Status>
    758                                                                                                                         <Index>1</Index>
    759                                                                                                                         <Values>0.497806</Values>
    760                                                                                                                         <Status>0</Status>
    761                                                                                                                 </Variables>
    762                                                                                                         </Block_Properties>
    763                                                                                                 </Base_Models>
    764                                                                                         </Block_Properties>
    765                                                                                 </Sub_Models>
    766                                                                                 <Sub_Models>
    767                                                                                         <Block_Properties>
    768                                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    769                                                                                                 <Instance_Id>OutletLiquid</Instance_Id>
    770                                                                                                 <Model_Name>OutletLiquid</Model_Name>
    771                                                                                                 <T_Connection>2</T_Connection>
    772                                                                                                 <Base_Models>
    773                                                                                                         <Block_Properties>
    774                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    775                                                                                                                 <Instance_Id>OutletLiquid</Instance_Id>
    776                                                                                                                 <Model_Name>liquid_stream</Model_Name>
    777                                                                                                                 <T_Connection>2</T_Connection>
    778                                                                                                                 <Base_Models>
    779                                                                                                                         <Block_Properties>
    780                                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    781                                                                                                                                 <Instance_Id>OutletLiquid</Instance_Id>
    782                                                                                                                                 <Model_Name>stream</Model_Name>
    783                                                                                                                                 <T_Connection>2</T_Connection>
    784                                                                                                                                 <Parameters>
    785                                                                                                                                         <Desc>NComp</Desc>
    786                                                                                                                                         <Index>0</Index>
    787                                                                                                                                         <Values>2</Values>
    788                                                                                                                                         <Status>0</Status>
    789                                                                                                                                 </Parameters>
    790                                                                                                                                 <Variables>
    791                                                                                                                                         <Desc>F</Desc>
    792                                                                                                                                         <Index>0</Index>
    793                                                                                                                                         <Values>65.6725</Values>
    794                                                                                                                                         <Status>0</Status>
    795                                                                                                                                         <Unit>kmol/h</Unit>
    796                                                                                                                                 </Variables>
    797                                                                                                                                 <Variables>
    798                                                                                                                                         <Desc>T</Desc>
    799                                                                                                                                         <Index>0</Index>
    800                                                                                                                                         <Values>328.148</Values>
    801                                                                                                                                         <Status>0</Status>
    802                                                                                                                                         <Unit>K</Unit>
    803                                                                                                                                 </Variables>
    804                                                                                                                                 <Variables>
    805                                                                                                                                         <Desc>P</Desc>
    806                                                                                                                                         <Index>0</Index>
    807                                                                                                                                         <Values>20.7279</Values>
    808                                                                                                                                         <Status>0</Status>
    809                                                                                                                                         <Unit>atm</Unit>
    810                                                                                                                                 </Variables>
    811                                                                                                                                 <Variables>
    812                                                                                                                                         <Desc>h</Desc>
    813                                                                                                                                         <Index>0</Index>
    814                                                                                                                                         <Values>-12042.9</Values>
    815                                                                                                                                         <Status>0</Status>
    816                                                                                                                                         <Unit>kJ/kmol</Unit>
    817                                                                                                                                 </Variables>
    818                                                                                                                                 <Variables>
    819                                                                                                                                         <Desc>v</Desc>
    820                                                                                                                                         <Index>0</Index>
    821                                                                                                                                         <Values>0</Values>
    822                                                                                                                                         <Status>0</Status>
    823                                                                                                                                 </Variables>
    824                                                                                                                                 <Variables>
    825                                                                                                                                         <Desc>z</Desc>
    826                                                                                                                                         <Index>0</Index>
    827                                                                                                                                         <Values>0.507364</Values>
    828                                                                                                                                         <Status>0</Status>
    829                                                                                                                                         <Index>1</Index>
    830                                                                                                                                         <Values>0.492636</Values>
    831                                                                                                                                         <Status>0</Status>
    832                                                                                                                                 </Variables>
    833                                                                                                                         </Block_Properties>
    834                                                                                                                 </Base_Models>
    835                                                                                                                 <Parameters>
    836                                                                                                                         <Desc>PP</Desc>
    837                                                                                                                         <Index>0</Index>
    838                                                                                                                         <Values>PP</Values>
    839                                                                                                                         <Status>0</Status>
    840                                                                                                                 </Parameters>
    841                                                                                                         </Block_Properties>
    842                                                                                                 </Base_Models>
    843                                                                                         </Block_Properties>
    844                                                                                 </Sub_Models>
    845                                                                                 <Sub_Models>
    846                                                                                         <Block_Properties>
    847                                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    848                                                                                                 <Instance_Id>OutletVapour</Instance_Id>
    849                                                                                                 <Model_Name>OutletVapour</Model_Name>
    850                                                                                                 <T_Connection>2</T_Connection>
    851                                                                                                 <Base_Models>
    852                                                                                                         <Block_Properties>
    853                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    854                                                                                                                 <Instance_Id>OutletVapour</Instance_Id>
    855                                                                                                                 <Model_Name>vapour_stream</Model_Name>
    856                                                                                                                 <T_Connection>2</T_Connection>
    857                                                                                                                 <Base_Models>
    858                                                                                                                         <Block_Properties>
    859                                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    860                                                                                                                                 <Instance_Id>OutletVapour</Instance_Id>
    861                                                                                                                                 <Model_Name>stream</Model_Name>
    862                                                                                                                                 <T_Connection>2</T_Connection>
    863                                                                                                                                 <Parameters>
    864                                                                                                                                         <Desc>NComp</Desc>
    865                                                                                                                                         <Index>0</Index>
    866                                                                                                                                         <Values>2</Values>
    867                                                                                                                                         <Status>0</Status>
    868                                                                                                                                 </Parameters>
    869                                                                                                                                 <Variables>
    870                                                                                                                                         <Desc>F</Desc>
    871                                                                                                                                         <Index>0</Index>
    872                                                                                                                                         <Values>92.8617</Values>
    873                                                                                                                                         <Status>0</Status>
    874                                                                                                                                         <Unit>kmol/h</Unit>
    875                                                                                                                                 </Variables>
    876                                                                                                                                 <Variables>
    877                                                                                                                                         <Desc>T</Desc>
    878                                                                                                                                         <Index>0</Index>
    879                                                                                                                                         <Values>328.148</Values>
    880                                                                                                                                         <Status>0</Status>
    881                                                                                                                                         <Unit>K</Unit>
    882                                                                                                                                 </Variables>
    883                                                                                                                                 <Variables>
    884                                                                                                                                         <Desc>P</Desc>
    885                                                                                                                                         <Index>0</Index>
    886                                                                                                                                         <Values>20.7279</Values>
    887                                                                                                                                         <Status>0</Status>
    888                                                                                                                                         <Unit>atm</Unit>
    889                                                                                                                                 </Variables>
    890                                                                                                                                 <Variables>
    891                                                                                                                                         <Desc>h</Desc>
    892                                                                                                                                         <Index>0</Index>
    893                                                                                                                                         <Values>-516.981</Values>
    894                                                                                                                                         <Status>0</Status>
    895                                                                                                                                         <Unit>kJ/kmol</Unit>
    896                                                                                                                                 </Variables>
    897                                                                                                                                 <Variables>
    898                                                                                                                                         <Desc>v</Desc>
    899                                                                                                                                         <Index>0</Index>
    900                                                                                                                                         <Values>1</Values>
    901                                                                                                                                         <Status>0</Status>
    902                                                                                                                                 </Variables>
    903                                                                                                                                 <Variables>
    904                                                                                                                                         <Desc>z</Desc>
    905                                                                                                                                         <Index>0</Index>
    906                                                                                                                                         <Values>0.534467</Values>
    907                                                                                                                                         <Status>0</Status>
    908                                                                                                                                         <Index>1</Index>
    909                                                                                                                                         <Values>0.465533</Values>
    910                                                                                                                                         <Status>0</Status>
    911                                                                                                                                 </Variables>
    912                                                                                                                         </Block_Properties>
    913                                                                                                                 </Base_Models>
    914                                                                                                                 <Parameters>
    915                                                                                                                         <Desc>PP</Desc>
    916                                                                                                                         <Index>0</Index>
    917                                                                                                                         <Values>PP</Values>
    918                                                                                                                         <Status>0</Status>
    919                                                                                                                 </Parameters>
    920                                                                                                         </Block_Properties>
    921                                                                                                 </Base_Models>
    922                                                                                         </Block_Properties>
    923                                                                                 </Sub_Models>
    924                                                                                 <Parameters>
    925                                                                                         <Desc>PP</Desc>
    926                                                                                         <Index>0</Index>
    927                                                                                         <Values>PP</Values>
    928                                                                                         <Status>0</Status>
    929                                                                                 </Parameters>
    930                                                                                 <Parameters>
    931                                                                                         <Desc>NComp</Desc>
    932                                                                                         <Index>0</Index>
    933                                                                                         <Values>2</Values>
    934                                                                                         <Status>0</Status>
    935                                                                                 </Parameters>
    936                                                                                 <Variables>
    937                                                                                         <Desc>M</Desc>
    938                                                                                         <Index>0</Index>
    939                                                                                         <Values>0.149324</Values>
    940                                                                                         <Status>0</Status>
    941                                                                                         <Unit>kmol</Unit>
    942                                                                                         <Index>1</Index>
    943                                                                                         <Values>0.139265</Values>
    944                                                                                         <Status>0</Status>
    945                                                                                         <Unit>kmol</Unit>
    946                                                                                 </Variables>
    947                                                                                 <Variables>
    948                                                                                         <Desc>ML</Desc>
    949                                                                                         <Index>0</Index>
    950                                                                                         <Values>0.181439</Values>
    951                                                                                         <Status>0</Status>
    952                                                                                         <Unit>kmol</Unit>
    953                                                                                 </Variables>
    954                                                                                 <Variables>
    955                                                                                         <Desc>MV</Desc>
    956                                                                                         <Index>0</Index>
    957                                                                                         <Values>0.107151</Values>
    958                                                                                         <Status>0</Status>
    959                                                                                         <Unit>kmol</Unit>
    960                                                                                 </Variables>
    961                                                                                 <Variables>
    962                                                                                         <Desc>E</Desc>
    963                                                                                         <Index>0</Index>
    964                                                                                         <Values>-2478.34</Values>
    965                                                                                         <Status>0</Status>
    966                                                                                         <Unit>kJ</Unit>
    967                                                                                 </Variables>
    968                                                                                 <Variables>
    969                                                                                         <Desc>vL</Desc>
    970                                                                                         <Index>0</Index>
    971                                                                                         <Values>9.78009e-05</Values>
    972                                                                                         <Status>0</Status>
    973                                                                                         <Unit>m^3/mol</Unit>
    974                                                                                 </Variables>
    975                                                                                 <Variables>
    976                                                                                         <Desc>vV</Desc>
    977                                                                                         <Index>0</Index>
    978                                                                                         <Values>0.000891478</Values>
    979                                                                                         <Status>0</Status>
    980                                                                                         <Unit>m^3/mol</Unit>
    981                                                                                 </Variables>
    982                                                                                 <Variables>
    983                                                                                         <Desc>Level</Desc>
    984                                                                                         <Index>0</Index>
    985                                                                                         <Values>0.0484782</Values>
    986                                                                                         <Status>0</Status>
    987                                                                                         <Unit>m</Unit>
    988                                                                                 </Variables>
    989                                                                                 <Variables>
    990                                                                                         <Desc>yideal</Desc>
    991                                                                                         <Index>0</Index>
    992                                                                                         <Values>0.534467</Values>
    993                                                                                         <Status>0</Status>
    994                                                                                         <Index>1</Index>
    995                                                                                         <Values>0.465533</Values>
    996                                                                                         <Status>0</Status>
    997                                                                                 </Variables>
    998                                                                         </Block_Properties>
    999                                                                 </Base_Models>
    1000                                                                 <Variables>
    1001                                                                         <Desc>rhoL</Desc>
    1002                                                                         <Index>0</Index>
    1003                                                                         <Values>440.42</Values>
    1004                                                                         <Status>0</Status>
    1005                                                                         <Unit>kg/m^3</Unit>
    1006                                                                 </Variables>
    1007                                                                 <Variables>
    1008                                                                         <Desc>rhoV</Desc>
    1009                                                                         <Index>0</Index>
    1010                                                                         <Values>48.3344</Values>
    1011                                                                         <Status>0</Status>
    1012                                                                         <Unit>kg/m^3</Unit>
    1013                                                                 </Variables>
    1014                                                         </Block_Properties>
    1015                                                 </Base_Models>
    1016                                         </Block_Properties>
    1017                                 </Sub_Models>
    1018                                 <Sub_Models>
    1019                                         <Block_Properties>
    1020                                                 <Model_File_Path>stage_separators/column</Model_File_Path>
    1021                                                 <Instance_Id>TRAYS(2)</Instance_Id>
    1022                                                 <Model_Name>TRAYS</Model_Name>
    1023                                                 <T_Connection>0</T_Connection>
    1024                                                 <Base_Models>
    1025                                                         <Block_Properties>
    1026                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    1027                                                                 <Instance_Id>TRAYS(2)</Instance_Id>
    1028                                                                 <Model_Name>tray</Model_Name>
    1029                                                                 <T_Connection>0</T_Connection>
    1030                                                                 <Base_Models>
    1031                                                                         <Block_Properties>
    1032                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    1033                                                                                 <Instance_Id>TRAYS(2)</Instance_Id>
    1034                                                                                 <Model_Name>trayBasic</Model_Name>
    1035                                                                                 <T_Connection>0</T_Connection>
    1036                                                                                 <Sub_Models>
    1037                                                                                         <Block_Properties>
    1038                                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    1039                                                                                                 <Instance_Id>InletLiquid</Instance_Id>
    1040                                                                                                 <Model_Name>InletLiquid</Model_Name>
    1041                                                                                                 <T_Connection>1</T_Connection>
    1042                                                                                                 <Base_Models>
    1043                                                                                                         <Block_Properties>
    1044                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    1045                                                                                                                 <Instance_Id>InletLiquid</Instance_Id>
    1046                                                                                                                 <Model_Name>stream</Model_Name>
    1047                                                                                                                 <T_Connection>1</T_Connection>
    1048                                                                                                                 <Parameters>
    1049                                                                                                                         <Desc>NComp</Desc>
    1050                                                                                                                         <Index>0</Index>
    1051                                                                                                                         <Values>2</Values>
    1052                                                                                                                         <Status>0</Status>
    1053                                                                                                                 </Parameters>
    1054                                                                                                                 <Variables>
    1055                                                                                                                         <Desc>F</Desc>
    1056                                                                                                                         <Index>0</Index>
    1057                                                                                                                         <Values>65.6725</Values>
    1058                                                                                                                         <Status>0</Status>
    1059                                                                                                                         <Unit>kmol/h</Unit>
    1060                                                                                                                 </Variables>
    1061                                                                                                                 <Variables>
    1062                                                                                                                         <Desc>T</Desc>
    1063                                                                                                                         <Index>0</Index>
    1064                                                                                                                         <Values>328.148</Values>
    1065                                                                                                                         <Status>0</Status>
    1066                                                                                                                         <Unit>K</Unit>
    1067                                                                                                                 </Variables>
    1068                                                                                                                 <Variables>
    1069                                                                                                                         <Desc>P</Desc>
    1070                                                                                                                         <Index>0</Index>
    1071                                                                                                                         <Values>20.7279</Values>
    1072                                                                                                                         <Status>0</Status>
    1073                                                                                                                         <Unit>atm</Unit>
    1074                                                                                                                 </Variables>
    1075                                                                                                                 <Variables>
    1076                                                                                                                         <Desc>h</Desc>
    1077                                                                                                                         <Index>0</Index>
    1078                                                                                                                         <Values>-12042.9</Values>
    1079                                                                                                                         <Status>0</Status>
    1080                                                                                                                         <Unit>kJ/kmol</Unit>
    1081                                                                                                                 </Variables>
    1082                                                                                                                 <Variables>
    1083                                                                                                                         <Desc>v</Desc>
    1084                                                                                                                         <Index>0</Index>
    1085                                                                                                                         <Values>0</Values>
    1086                                                                                                                         <Status>0</Status>
    1087                                                                                                                 </Variables>
    1088                                                                                                                 <Variables>
    1089                                                                                                                         <Desc>z</Desc>
    1090                                                                                                                         <Index>0</Index>
    1091                                                                                                                         <Values>0.507364</Values>
    1092                                                                                                                         <Status>0</Status>
    1093                                                                                                                         <Index>1</Index>
    1094                                                                                                                         <Values>0.492636</Values>
    1095                                                                                                                         <Status>0</Status>
    1096                                                                                                                 </Variables>
    1097                                                                                                         </Block_Properties>
    1098                                                                                                 </Base_Models>
    1099                                                                                         </Block_Properties>
    1100                                                                                 </Sub_Models>
    1101                                                                                 <Sub_Models>
    1102                                                                                         <Block_Properties>
    1103                                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    1104                                                                                                 <Instance_Id>InletVapour</Instance_Id>
    1105                                                                                                 <Model_Name>InletVapour</Model_Name>
    1106                                                                                                 <T_Connection>1</T_Connection>
    1107                                                                                                 <Base_Models>
    1108                                                                                                         <Block_Properties>
    1109                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    1110                                                                                                                 <Instance_Id>InletVapour</Instance_Id>
    1111                                                                                                                 <Model_Name>stream</Model_Name>
    1112                                                                                                                 <T_Connection>1</T_Connection>
    1113                                                                                                                 <Parameters>
    1114                                                                                                                         <Desc>NComp</Desc>
    1115                                                                                                                         <Index>0</Index>
    1116                                                                                                                         <Values>2</Values>
    1117                                                                                                                         <Status>0</Status>
    1118                                                                                                                 </Parameters>
    1119                                                                                                                 <Variables>
    1120                                                                                                                         <Desc>F</Desc>
    1121                                                                                                                         <Index>0</Index>
    1122                                                                                                                         <Values>93.4394</Values>
    1123                                                                                                                         <Status>0</Status>
    1124                                                                                                                         <Unit>kmol/h</Unit>
    1125                                                                                                                 </Variables>
    1126                                                                                                                 <Variables>
    1127                                                                                                                         <Desc>T</Desc>
    1128                                                                                                                         <Index>0</Index>
    1129                                                                                                                         <Values>328.617</Values>
    1130                                                                                                                         <Status>0</Status>
    1131                                                                                                                         <Unit>K</Unit>
    1132                                                                                                                 </Variables>
    1133                                                                                                                 <Variables>
    1134                                                                                                                         <Desc>P</Desc>
    1135                                                                                                                         <Index>0</Index>
    1136                                                                                                                         <Values>20.7294</Values>
    1137                                                                                                                         <Status>0</Status>
    1138                                                                                                                         <Unit>atm</Unit>
    1139                                                                                                                 </Variables>
    1140                                                                                                                 <Variables>
    1141                                                                                                                         <Desc>h</Desc>
    1142                                                                                                                         <Index>0</Index>
    1143                                                                                                                         <Values>-481.255</Values>
    1144                                                                                                                         <Status>0</Status>
    1145                                                                                                                         <Unit>kJ/kmol</Unit>
    1146                                                                                                                 </Variables>
    1147                                                                                                                 <Variables>
    1148                                                                                                                         <Desc>v</Desc>
    1149                                                                                                                         <Index>0</Index>
    1150                                                                                                                         <Values>1</Values>
    1151                                                                                                                         <Status>0</Status>
    1152                                                                                                                 </Variables>
    1153                                                                                                                 <Variables>
    1154                                                                                                                         <Desc>z</Desc>
    1155                                                                                                                         <Index>0</Index>
    1156                                                                                                                         <Values>0.479274</Values>
    1157                                                                                                                         <Status>0</Status>
    1158                                                                                                                         <Index>1</Index>
    1159                                                                                                                         <Values>0.520726</Values>
    1160                                                                                                                         <Status>0</Status>
    1161                                                                                                                 </Variables>
    1162                                                                                                         </Block_Properties>
    1163                                                                                                 </Base_Models>
    1164                                                                                         </Block_Properties>
    1165                                                                                 </Sub_Models>
    1166                                                                                 <Sub_Models>
    1167                                                                                         <Block_Properties>
    1168                                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    1169                                                                                                 <Instance_Id>OutletLiquid</Instance_Id>
    1170                                                                                                 <Model_Name>OutletLiquid</Model_Name>
    1171                                                                                                 <T_Connection>2</T_Connection>
    1172                                                                                                 <Base_Models>
    1173                                                                                                         <Block_Properties>
    1174                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    1175                                                                                                                 <Instance_Id>OutletLiquid</Instance_Id>
    1176                                                                                                                 <Model_Name>liquid_stream</Model_Name>
    1177                                                                                                                 <T_Connection>2</T_Connection>
    1178                                                                                                                 <Base_Models>
    1179                                                                                                                         <Block_Properties>
    1180                                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    1181                                                                                                                                 <Instance_Id>OutletLiquid</Instance_Id>
    1182                                                                                                                                 <Model_Name>stream</Model_Name>
    1183                                                                                                                                 <T_Connection>2</T_Connection>
    1184                                                                                                                                 <Parameters>
    1185                                                                                                                                         <Desc>NComp</Desc>
    1186                                                                                                                                         <Index>0</Index>
    1187                                                                                                                                         <Values>2</Values>
    1188                                                                                                                                         <Status>0</Status>
    1189                                                                                                                                 </Parameters>
    1190                                                                                                                                 <Variables>
    1191                                                                                                                                         <Desc>F</Desc>
    1192                                                                                                                                         <Index>0</Index>
    1193                                                                                                                                         <Values>65.7193</Values>
    1194                                                                                                                                         <Status>0</Status>
    1195                                                                                                                                         <Unit>kmol/h</Unit>
    1196                                                                                                                                 </Variables>
    1197                                                                                                                                 <Variables>
    1198                                                                                                                                         <Desc>T</Desc>
    1199                                                                                                                                         <Index>0</Index>
    1200                                                                                                                                         <Values>328.422</Values>
    1201                                                                                                                                         <Status>0</Status>
    1202                                                                                                                                         <Unit>K</Unit>
    1203                                                                                                                                 </Variables>
    1204                                                                                                                                 <Variables>
    1205                                                                                                                                         <Desc>P</Desc>
    1206                                                                                                                                         <Index>0</Index>
    1207                                                                                                                                         <Values>20.7286</Values>
    1208                                                                                                                                         <Status>0</Status>
    1209                                                                                                                                         <Unit>atm</Unit>
    1210                                                                                                                                 </Variables>
    1211                                                                                                                                 <Variables>
    1212                                                                                                                                         <Desc>h</Desc>
    1213                                                                                                                                         <Index>0</Index>
    1214                                                                                                                                         <Values>-12014.2</Values>
    1215                                                                                                                                         <Status>0</Status>
    1216                                                                                                                                         <Unit>kJ/kmol</Unit>
    1217                                                                                                                                 </Variables>
    1218                                                                                                                                 <Variables>
    1219                                                                                                                                         <Desc>v</Desc>
    1220                                                                                                                                         <Index>0</Index>
    1221                                                                                                                                         <Values>0</Values>
    1222                                                                                                                                         <Status>0</Status>
    1223                                                                                                                                 </Variables>
    1224                                                                                                                                 <Variables>
    1225                                                                                                                                         <Desc>z</Desc>
    1226                                                                                                                                         <Index>0</Index>
    1227                                                                                                                                         <Values>0.475109</Values>
    1228                                                                                                                                         <Status>0</Status>
    1229                                                                                                                                         <Index>1</Index>
    1230                                                                                                                                         <Values>0.524891</Values>
    1231                                                                                                                                         <Status>0</Status>
    1232                                                                                                                                 </Variables>
    1233                                                                                                                         </Block_Properties>
    1234                                                                                                                 </Base_Models>
    1235                                                                                                                 <Parameters>
    1236                                                                                                                         <Desc>PP</Desc>
    1237                                                                                                                         <Index>0</Index>
    1238                                                                                                                         <Values>PP</Values>
    1239                                                                                                                         <Status>0</Status>
    1240                                                                                                                 </Parameters>
    1241                                                                                                         </Block_Properties>
    1242                                                                                                 </Base_Models>
    1243                                                                                         </Block_Properties>
    1244                                                                                 </Sub_Models>
    1245                                                                                 <Sub_Models>
    1246                                                                                         <Block_Properties>
    1247                                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    1248                                                                                                 <Instance_Id>OutletVapour</Instance_Id>
    1249                                                                                                 <Model_Name>OutletVapour</Model_Name>
    1250                                                                                                 <T_Connection>2</T_Connection>
    1251                                                                                                 <Base_Models>
    1252                                                                                                         <Block_Properties>
    1253                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    1254                                                                                                                 <Instance_Id>OutletVapour</Instance_Id>
    1255                                                                                                                 <Model_Name>vapour_stream</Model_Name>
    1256                                                                                                                 <T_Connection>2</T_Connection>
    1257                                                                                                                 <Base_Models>
    1258                                                                                                                         <Block_Properties>
    1259                                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    1260                                                                                                                                 <Instance_Id>OutletVapour</Instance_Id>
    1261                                                                                                                                 <Model_Name>stream</Model_Name>
    1262                                                                                                                                 <T_Connection>2</T_Connection>
    1263                                                                                                                                 <Parameters>
    1264                                                                                                                                         <Desc>NComp</Desc>
    1265                                                                                                                                         <Index>0</Index>
    1266                                                                                                                                         <Values>2</Values>
    1267                                                                                                                                         <Status>0</Status>
    1268                                                                                                                                 </Parameters>
    1269                                                                                                                                 <Variables>
    1270                                                                                                                                         <Desc>F</Desc>
    1271                                                                                                                                         <Index>0</Index>
    1272                                                                                                                                         <Values>93.3938</Values>
    1273                                                                                                                                         <Status>0</Status>
    1274                                                                                                                                         <Unit>kmol/h</Unit>
    1275                                                                                                                                 </Variables>
    1276                                                                                                                                 <Variables>
    1277                                                                                                                                         <Desc>T</Desc>
    1278                                                                                                                                         <Index>0</Index>
    1279                                                                                                                                         <Values>328.422</Values>
    1280                                                                                                                                         <Status>0</Status>
    1281                                                                                                                                         <Unit>K</Unit>
    1282                                                                                                                                 </Variables>
    1283                                                                                                                                 <Variables>
    1284                                                                                                                                         <Desc>P</Desc>
    1285                                                                                                                                         <Index>0</Index>
    1286                                                                                                                                         <Values>20.7286</Values>
    1287                                                                                                                                         <Status>0</Status>
    1288                                                                                                                                         <Unit>atm</Unit>
    1289                                                                                                                                 </Variables>
    1290                                                                                                                                 <Variables>
    1291                                                                                                                                         <Desc>h</Desc>
    1292                                                                                                                                         <Index>0</Index>
    1293                                                                                                                                         <Values>-496.131</Values>
    1294                                                                                                                                         <Status>0</Status>
    1295                                                                                                                                         <Unit>kJ/kmol</Unit>
    1296                                                                                                                                 </Variables>
    1297                                                                                                                                 <Variables>
    1298                                                                                                                                         <Desc>v</Desc>
    1299                                                                                                                                         <Index>0</Index>
    1300                                                                                                                                         <Values>1</Values>
    1301                                                                                                                                         <Status>0</Status>
    1302                                                                                                                                 </Variables>
    1303                                                                                                                                 <Variables>
    1304                                                                                                                                         <Desc>z</Desc>
    1305                                                                                                                                         <Index>0</Index>
    1306                                                                                                                                         <Values>0.502194</Values>
    1307                                                                                                                                         <Status>0</Status>
    1308                                                                                                                                         <Index>1</Index>
    1309                                                                                                                                         <Values>0.497806</Values>
    1310                                                                                                                                         <Status>0</Status>
    1311                                                                                                                                 </Variables>
    1312                                                                                                                         </Block_Properties>
    1313                                                                                                                 </Base_Models>
    1314                                                                                                                 <Parameters>
    1315                                                                                                                         <Desc>PP</Desc>
    1316                                                                                                                         <Index>0</Index>
    1317                                                                                                                         <Values>PP</Values>
    1318                                                                                                                         <Status>0</Status>
    1319                                                                                                                 </Parameters>
    1320                                                                                                         </Block_Properties>
    1321                                                                                                 </Base_Models>
    1322                                                                                         </Block_Properties>
    1323                                                                                 </Sub_Models>
    1324                                                                                 <Parameters>
    1325                                                                                         <Desc>PP</Desc>
    1326                                                                                         <Index>0</Index>
    1327                                                                                         <Values>PP</Values>
    1328                                                                                         <Status>0</Status>
    1329                                                                                 </Parameters>
    1330                                                                                 <Parameters>
    1331                                                                                         <Desc>NComp</Desc>
    1332                                                                                         <Index>0</Index>
    1333                                                                                         <Values>2</Values>
    1334                                                                                         <Status>0</Status>
    1335                                                                                 </Parameters>
    1336                                                                                 <Variables>
    1337                                                                                         <Desc>M</Desc>
    1338                                                                                         <Index>0</Index>
    1339                                                                                         <Values>0.13978</Values>
    1340                                                                                         <Status>0</Status>
    1341                                                                                         <Unit>kmol</Unit>
    1342                                                                                         <Index>1</Index>
    1343                                                                                         <Values>0.148318</Values>
    1344                                                                                         <Status>0</Status>
    1345                                                                                         <Unit>kmol</Unit>
    1346                                                                                 </Variables>
    1347                                                                                 <Variables>
    1348                                                                                         <Desc>ML</Desc>
    1349                                                                                         <Index>0</Index>
    1350                                                                                         <Values>0.180958</Values>
    1351                                                                                         <Status>0</Status>
    1352                                                                                         <Unit>kmol</Unit>
    1353                                                                                 </Variables>
    1354                                                                                 <Variables>
    1355                                                                                         <Desc>MV</Desc>
    1356                                                                                         <Index>0</Index>
    1357                                                                                         <Values>0.10714</Values>
    1358                                                                                         <Status>0</Status>
    1359                                                                                         <Unit>kmol</Unit>
    1360                                                                                 </Variables>
    1361                                                                                 <Variables>
    1362                                                                                         <Desc>E</Desc>
    1363                                                                                         <Index>0</Index>
    1364                                                                                         <Values>-2465.12</Values>
    1365                                                                                         <Status>0</Status>
    1366                                                                                         <Unit>kJ</Unit>
    1367                                                                                 </Variables>
    1368                                                                                 <Variables>
    1369                                                                                         <Desc>vL</Desc>
    1370                                                                                         <Index>0</Index>
    1371                                                                                         <Values>9.81797e-05</Values>
    1372                                                                                         <Status>0</Status>
    1373                                                                                         <Unit>m^3/mol</Unit>
    1374                                                                                 </Variables>
    1375                                                                                 <Variables>
    1376                                                                                         <Desc>vV</Desc>
    1377                                                                                         <Index>0</Index>
    1378                                                                                         <Values>0.00089137</Values>
    1379                                                                                         <Status>0</Status>
    1380                                                                                         <Unit>m^3/mol</Unit>
    1381                                                                                 </Variables>
    1382                                                                                 <Variables>
    1383                                                                                         <Desc>Level</Desc>
    1384                                                                                         <Index>0</Index>
    1385                                                                                         <Values>0.0485369</Values>
    1386                                                                                         <Status>0</Status>
    1387                                                                                         <Unit>m</Unit>
    1388                                                                                 </Variables>
    1389                                                                                 <Variables>
    1390                                                                                         <Desc>yideal</Desc>
    1391                                                                                         <Index>0</Index>
    1392                                                                                         <Values>0.502194</Values>
    1393                                                                                         <Status>0</Status>
    1394                                                                                         <Index>1</Index>
    1395                                                                                         <Values>0.497806</Values>
    1396                                                                                         <Status>0</Status>
    1397                                                                                 </Variables>
    1398                                                                         </Block_Properties>
    1399                                                                 </Base_Models>
    1400                                                                 <Variables>
    1401                                                                         <Desc>rhoL</Desc>
    1402                                                                         <Index>0</Index>
    1403                                                                         <Values>439.383</Values>
    1404                                                                         <Status>0</Status>
    1405                                                                         <Unit>kg/m^3</Unit>
    1406                                                                 </Variables>
    1407                                                                 <Variables>
    1408                                                                         <Desc>rhoV</Desc>
    1409                                                                         <Index>0</Index>
    1410                                                                         <Values>48.3913</Values>
    1411                                                                         <Status>0</Status>
    1412                                                                         <Unit>kg/m^3</Unit>
    1413                                                                 </Variables>
    1414                                                         </Block_Properties>
    1415                                                 </Base_Models>
    1416                                         </Block_Properties>
    1417                                 </Sub_Models>
    1418                                 <Sub_Models>
    1419                                         <Block_Properties>
    1420                                                 <Model_File_Path>stage_separators/column</Model_File_Path>
    1421                                                 <Instance_Id>TRAYS(3)</Instance_Id>
    1422                                                 <Model_Name>TRAYS</Model_Name>
    1423                                                 <T_Connection>0</T_Connection>
    1424                                                 <Base_Models>
    1425                                                         <Block_Properties>
    1426                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    1427                                                                 <Instance_Id>TRAYS(3)</Instance_Id>
    1428                                                                 <Model_Name>tray</Model_Name>
    1429                                                                 <T_Connection>0</T_Connection>
    1430                                                                 <Base_Models>
    1431                                                                         <Block_Properties>
    1432                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    1433                                                                                 <Instance_Id>TRAYS(3)</Instance_Id>
    1434                                                                                 <Model_Name>trayBasic</Model_Name>
    1435                                                                                 <T_Connection>0</T_Connection>
    1436                                                                                 <Sub_Models>
    1437                                                                                         <Block_Properties>
    1438                                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    1439                                                                                                 <Instance_Id>InletLiquid</Instance_Id>
    1440                                                                                                 <Model_Name>InletLiquid</Model_Name>
    1441                                                                                                 <T_Connection>1</T_Connection>
    1442                                                                                                 <Base_Models>
    1443                                                                                                         <Block_Properties>
    1444                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    1445                                                                                                                 <Instance_Id>InletLiquid</Instance_Id>
    1446                                                                                                                 <Model_Name>stream</Model_Name>
    1447                                                                                                                 <T_Connection>1</T_Connection>
    1448                                                                                                                 <Parameters>
    1449                                                                                                                         <Desc>NComp</Desc>
    1450                                                                                                                         <Index>0</Index>
    1451                                                                                                                         <Values>2</Values>
    1452                                                                                                                         <Status>0</Status>
    1453                                                                                                                 </Parameters>
    1454                                                                                                                 <Variables>
    1455                                                                                                                         <Desc>F</Desc>
    1456                                                                                                                         <Index>0</Index>
    1457                                                                                                                         <Values>65.7193</Values>
    1458                                                                                                                         <Status>0</Status>
    1459                                                                                                                         <Unit>kmol/h</Unit>
    1460                                                                                                                 </Variables>
    1461                                                                                                                 <Variables>
    1462                                                                                                                         <Desc>T</Desc>
    1463                                                                                                                         <Index>0</Index>
    1464                                                                                                                         <Values>328.422</Values>
    1465                                                                                                                         <Status>0</Status>
    1466                                                                                                                         <Unit>K</Unit>
    1467                                                                                                                 </Variables>
    1468                                                                                                                 <Variables>
    1469                                                                                                                         <Desc>P</Desc>
    1470                                                                                                                         <Index>0</Index>
    1471                                                                                                                         <Values>20.7286</Values>
    1472                                                                                                                         <Status>0</Status>
    1473                                                                                                                         <Unit>atm</Unit>
    1474                                                                                                                 </Variables>
    1475                                                                                                                 <Variables>
    1476                                                                                                                         <Desc>h</Desc>
    1477                                                                                                                         <Index>0</Index>
    1478                                                                                                                         <Values>-12014.2</Values>
    1479                                                                                                                         <Status>0</Status>
    1480                                                                                                                         <Unit>kJ/kmol</Unit>
    1481                                                                                                                 </Variables>
    1482                                                                                                                 <Variables>
    1483                                                                                                                         <Desc>v</Desc>
    1484                                                                                                                         <Index>0</Index>
    1485                                                                                                                         <Values>0</Values>
    1486                                                                                                                         <Status>0</Status>
    1487                                                                                                                 </Variables>
    1488                                                                                                                 <Variables>
    1489                                                                                                                         <Desc>z</Desc>
    1490                                                                                                                         <Index>0</Index>
    1491                                                                                                                         <Values>0.475109</Values>
    1492                                                                                                                         <Status>0</Status>
    1493                                                                                                                         <Index>1</Index>
    1494                                                                                                                         <Values>0.524891</Values>
    1495                                                                                                                         <Status>0</Status>
    1496                                                                                                                 </Variables>
    1497                                                                                                         </Block_Properties>
    1498                                                                                                 </Base_Models>
    1499                                                                                         </Block_Properties>
    1500                                                                                 </Sub_Models>
    1501                                                                                 <Sub_Models>
    1502                                                                                         <Block_Properties>
    1503                                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    1504                                                                                                 <Instance_Id>InletVapour</Instance_Id>
    1505                                                                                                 <Model_Name>InletVapour</Model_Name>
    1506                                                                                                 <T_Connection>1</T_Connection>
    1507                                                                                                 <Base_Models>
    1508                                                                                                         <Block_Properties>
    1509                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    1510                                                                                                                 <Instance_Id>InletVapour</Instance_Id>
    1511                                                                                                                 <Model_Name>stream</Model_Name>
    1512                                                                                                                 <T_Connection>1</T_Connection>
    1513                                                                                                                 <Parameters>
    1514                                                                                                                         <Desc>NComp</Desc>
    1515                                                                                                                         <Index>0</Index>
    1516                                                                                                                         <Values>2</Values>
    1517                                                                                                                         <Status>0</Status>
    1518                                                                                                                 </Parameters>
    1519                                                                                                                 <Variables>
    1520                                                                                                                         <Desc>F</Desc>
    1521                                                                                                                         <Index>0</Index>
    1522                                                                                                                         <Values>93.4731</Values>
    1523                                                                                                                         <Status>0</Status>
    1524                                                                                                                         <Unit>kmol/h</Unit>
    1525                                                                                                                 </Variables>
    1526                                                                                                                 <Variables>
    1527                                                                                                                         <Desc>T</Desc>
    1528                                                                                                                         <Index>0</Index>
    1529                                                                                                                         <Values>328.754</Values>
    1530                                                                                                                         <Status>0</Status>
    1531                                                                                                                         <Unit>K</Unit>
    1532                                                                                                                 </Variables>
    1533                                                                                                                 <Variables>
    1534                                                                                                                         <Desc>P</Desc>
    1535                                                                                                                         <Index>0</Index>
    1536                                                                                                                         <Values>20.7302</Values>
    1537                                                                                                                         <Status>0</Status>
    1538                                                                                                                         <Unit>atm</Unit>
    1539                                                                                                                 </Variables>
    1540                                                                                                                 <Variables>
    1541                                                                                                                         <Desc>h</Desc>
    1542                                                                                                                         <Index>0</Index>
    1543                                                                                                                         <Values>-470.711</Values>
    1544                                                                                                                         <Status>0</Status>
    1545                                                                                                                         <Unit>kJ/kmol</Unit>
    1546                                                                                                                 </Variables>
    1547                                                                                                                 <Variables>
    1548                                                                                                                         <Desc>v</Desc>
    1549                                                                                                                         <Index>0</Index>
    1550                                                                                                                         <Values>1</Values>
    1551                                                                                                                         <Status>0</Status>
    1552                                                                                                                 </Variables>
    1553                                                                                                                 <Variables>
    1554                                                                                                                         <Desc>z</Desc>
    1555                                                                                                                         <Index>0</Index>
    1556                                                                                                                         <Values>0.463089</Values>
    1557                                                                                                                         <Status>0</Status>
    1558                                                                                                                         <Index>1</Index>
    1559                                                                                                                         <Values>0.536911</Values>
    1560                                                                                                                         <Status>0</Status>
    1561                                                                                                                 </Variables>
    1562                                                                                                         </Block_Properties>
    1563                                                                                                 </Base_Models>
    1564                                                                                         </Block_Properties>
    1565                                                                                 </Sub_Models>
    1566                                                                                 <Sub_Models>
    1567                                                                                         <Block_Properties>
    1568                                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    1569                                                                                                 <Instance_Id>OutletLiquid</Instance_Id>
    1570                                                                                                 <Model_Name>OutletLiquid</Model_Name>
    1571                                                                                                 <T_Connection>2</T_Connection>
    1572                                                                                                 <Base_Models>
    1573                                                                                                         <Block_Properties>
    1574                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    1575                                                                                                                 <Instance_Id>OutletLiquid</Instance_Id>
    1576                                                                                                                 <Model_Name>liquid_stream</Model_Name>
    1577                                                                                                                 <T_Connection>2</T_Connection>
    1578                                                                                                                 <Base_Models>
    1579                                                                                                                         <Block_Properties>
    1580                                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    1581                                                                                                                                 <Instance_Id>OutletLiquid</Instance_Id>
    1582                                                                                                                                 <Model_Name>stream</Model_Name>
    1583                                                                                                                                 <T_Connection>2</T_Connection>
    1584                                                                                                                                 <Parameters>
    1585                                                                                                                                         <Desc>NComp</Desc>
    1586                                                                                                                                         <Index>0</Index>
    1587                                                                                                                                         <Values>2</Values>
    1588                                                                                                                                         <Status>0</Status>
    1589                                                                                                                                 </Parameters>
    1590                                                                                                                                 <Variables>
    1591                                                                                                                                         <Desc>F</Desc>
    1592                                                                                                                                         <Index>0</Index>
    1593                                                                                                                                         <Values>65.7541</Values>
    1594                                                                                                                                         <Status>0</Status>
    1595                                                                                                                                         <Unit>kmol/h</Unit>
    1596                                                                                                                                 </Variables>
    1597                                                                                                                                 <Variables>
    1598                                                                                                                                         <Desc>T</Desc>
    1599                                                                                                                                         <Index>0</Index>
    1600                                                                                                                                         <Values>328.617</Values>
    1601                                                                                                                                         <Status>0</Status>
    1602                                                                                                                                         <Unit>K</Unit>
    1603                                                                                                                                 </Variables>
    1604                                                                                                                                 <Variables>
    1605                                                                                                                                         <Desc>P</Desc>
    1606                                                                                                                                         <Index>0</Index>
    1607                                                                                                                                         <Values>20.7294</Values>
    1608                                                                                                                                         <Status>0</Status>
    1609                                                                                                                                         <Unit>atm</Unit>
    1610                                                                                                                                 </Variables>
    1611                                                                                                                                 <Variables>
    1612                                                                                                                                         <Desc>h</Desc>
    1613                                                                                                                                         <Index>0</Index>
    1614                                                                                                                                         <Values>-11993.7</Values>
    1615                                                                                                                                         <Status>0</Status>
    1616                                                                                                                                         <Unit>kJ/kmol</Unit>
    1617                                                                                                                                 </Variables>
    1618                                                                                                                                 <Variables>
    1619                                                                                                                                         <Desc>v</Desc>
    1620                                                                                                                                         <Index>0</Index>
    1621                                                                                                                                         <Values>0</Values>
    1622                                                                                                                                         <Status>0</Status>
    1623                                                                                                                                 </Variables>
    1624                                                                                                                                 <Variables>
    1625                                                                                                                                         <Desc>z</Desc>
    1626                                                                                                                                         <Index>0</Index>
    1627                                                                                                                                         <Values>0.45234</Values>
    1628                                                                                                                                         <Status>0</Status>
    1629                                                                                                                                         <Index>1</Index>
    1630                                                                                                                                         <Values>0.54766</Values>
    1631                                                                                                                                         <Status>0</Status>
    1632                                                                                                                                 </Variables>
    1633                                                                                                                         </Block_Properties>
    1634                                                                                                                 </Base_Models>
    1635                                                                                                                 <Parameters>
    1636                                                                                                                         <Desc>PP</Desc>
    1637                                                                                                                         <Index>0</Index>
    1638                                                                                                                         <Values>PP</Values>
    1639                                                                                                                         <Status>0</Status>
    1640                                                                                                                 </Parameters>
    1641                                                                                                         </Block_Properties>
    1642                                                                                                 </Base_Models>
    1643                                                                                         </Block_Properties>
    1644                                                                                 </Sub_Models>
    1645                                                                                 <Sub_Models>
    1646                                                                                         <Block_Properties>
    1647                                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    1648                                                                                                 <Instance_Id>OutletVapour</Instance_Id>
    1649                                                                                                 <Model_Name>OutletVapour</Model_Name>
    1650                                                                                                 <T_Connection>2</T_Connection>
    1651                                                                                                 <Base_Models>
    1652                                                                                                         <Block_Properties>
    1653                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    1654                                                                                                                 <Instance_Id>OutletVapour</Instance_Id>
    1655                                                                                                                 <Model_Name>vapour_stream</Model_Name>
    1656                                                                                                                 <T_Connection>2</T_Connection>
    1657                                                                                                                 <Base_Models>
    1658                                                                                                                         <Block_Properties>
    1659                                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    1660                                                                                                                                 <Instance_Id>OutletVapour</Instance_Id>
    1661                                                                                                                                 <Model_Name>stream</Model_Name>
    1662                                                                                                                                 <T_Connection>2</T_Connection>
    1663                                                                                                                                 <Parameters>
    1664                                                                                                                                         <Desc>NComp</Desc>
    1665                                                                                                                                         <Index>0</Index>
    1666                                                                                                                                         <Values>2</Values>
    1667                                                                                                                                         <Status>0</Status>
    1668                                                                                                                                 </Parameters>
    1669                                                                                                                                 <Variables>
    1670                                                                                                                                         <Desc>F</Desc>
    1671                                                                                                                                         <Index>0</Index>
    1672                                                                                                                                         <Values>93.4394</Values>
    1673                                                                                                                                         <Status>0</Status>
    1674                                                                                                                                         <Unit>kmol/h</Unit>
    1675                                                                                                                                 </Variables>
    1676                                                                                                                                 <Variables>
    1677                                                                                                                                         <Desc>T</Desc>
    1678                                                                                                                                         <Index>0</Index>
    1679                                                                                                                                         <Values>328.617</Values>
    1680                                                                                                                                         <Status>0</Status>
    1681                                                                                                                                         <Unit>K</Unit>
    1682                                                                                                                                 </Variables>
    1683                                                                                                                                 <Variables>
    1684                                                                                                                                         <Desc>P</Desc>
    1685                                                                                                                                         <Index>0</Index>
    1686                                                                                                                                         <Values>20.7294</Values>
    1687                                                                                                                                         <Status>0</Status>
    1688                                                                                                                                         <Unit>atm</Unit>
    1689                                                                                                                                 </Variables>
    1690                                                                                                                                 <Variables>
    1691                                                                                                                                         <Desc>h</Desc>
    1692                                                                                                                                         <Index>0</Index>
    1693                                                                                                                                         <Values>-481.255</Values>
    1694                                                                                                                                         <Status>0</Status>
    1695                                                                                                                                         <Unit>kJ/kmol</Unit>
    1696                                                                                                                                 </Variables>
    1697                                                                                                                                 <Variables>
    1698                                                                                                                                         <Desc>v</Desc>
    1699                                                                                                                                         <Index>0</Index>
    1700                                                                                                                                         <Values>1</Values>
    1701                                                                                                                                         <Status>0</Status>
    1702                                                                                                                                 </Variables>
    1703                                                                                                                                 <Variables>
    1704                                                                                                                                         <Desc>z</Desc>
    1705                                                                                                                                         <Index>0</Index>
    1706                                                                                                                                         <Values>0.479274</Values>
    1707                                                                                                                                         <Status>0</Status>
    1708                                                                                                                                         <Index>1</Index>
    1709                                                                                                                                         <Values>0.520726</Values>
    1710                                                                                                                                         <Status>0</Status>
    1711                                                                                                                                 </Variables>
    1712                                                                                                                         </Block_Properties>
    1713                                                                                                                 </Base_Models>
    1714                                                                                                                 <Parameters>
    1715                                                                                                                         <Desc>PP</Desc>
    1716                                                                                                                         <Index>0</Index>
    1717                                                                                                                         <Values>PP</Values>
    1718                                                                                                                         <Status>0</Status>
    1719                                                                                                                 </Parameters>
    1720                                                                                                         </Block_Properties>
    1721                                                                                                 </Base_Models>
    1722                                                                                         </Block_Properties>
    1723                                                                                 </Sub_Models>
    1724                                                                                 <Parameters>
    1725                                                                                         <Desc>PP</Desc>
    1726                                                                                         <Index>0</Index>
    1727                                                                                         <Values>PP</Values>
    1728                                                                                         <Status>0</Status>
    1729                                                                                 </Parameters>
    1730                                                                                 <Parameters>
    1731                                                                                         <Desc>NComp</Desc>
    1732                                                                                         <Index>0</Index>
    1733                                                                                         <Values>2</Values>
    1734                                                                                         <Status>0</Status>
    1735                                                                                 </Parameters>
    1736                                                                                 <Variables>
    1737                                                                                         <Desc>M</Desc>
    1738                                                                                         <Index>0</Index>
    1739                                                                                         <Values>0.133048</Values>
    1740                                                                                         <Status>0</Status>
    1741                                                                                         <Unit>kmol</Unit>
    1742                                                                                         <Index>1</Index>
    1743                                                                                         <Values>0.154706</Values>
    1744                                                                                         <Status>0</Status>
    1745                                                                                         <Unit>kmol</Unit>
    1746                                                                                 </Variables>
    1747                                                                                 <Variables>
    1748                                                                                         <Desc>ML</Desc>
    1749                                                                                         <Index>0</Index>
    1750                                                                                         <Values>0.18062</Values>
    1751                                                                                         <Status>0</Status>
    1752                                                                                         <Unit>kmol</Unit>
    1753                                                                                 </Variables>
    1754                                                                                 <Variables>
    1755                                                                                         <Desc>MV</Desc>
    1756                                                                                         <Index>0</Index>
    1757                                                                                         <Values>0.107134</Values>
    1758                                                                                         <Status>0</Status>
    1759                                                                                         <Unit>kmol</Unit>
    1760                                                                                 </Variables>
    1761                                                                                 <Variables>
    1762                                                                                         <Desc>E</Desc>
    1763                                                                                         <Index>0</Index>
    1764                                                                                         <Values>-2455.76</Values>
    1765                                                                                         <Status>0</Status>
    1766                                                                                         <Unit>kJ</Unit>
    1767                                                                                 </Variables>
    1768                                                                                 <Variables>
    1769                                                                                         <Desc>vL</Desc>
    1770                                                                                         <Index>0</Index>
    1771                                                                                         <Values>9.84482e-05</Values>
    1772                                                                                         <Status>0</Status>
    1773                                                                                         <Unit>m^3/mol</Unit>
    1774                                                                                 </Variables>
    1775                                                                                 <Variables>
    1776                                                                                         <Desc>vV</Desc>
    1777                                                                                         <Index>0</Index>
    1778                                                                                         <Values>0.000891277</Values>
    1779                                                                                         <Status>0</Status>
    1780                                                                                         <Unit>m^3/mol</Unit>
    1781                                                                                 </Variables>
    1782                                                                                 <Variables>
    1783                                                                                         <Desc>Level</Desc>
    1784                                                                                         <Index>0</Index>
    1785                                                                                         <Values>0.0485788</Values>
    1786                                                                                         <Status>0</Status>
    1787                                                                                         <Unit>m</Unit>
    1788                                                                                 </Variables>
    1789                                                                                 <Variables>
    1790                                                                                         <Desc>yideal</Desc>
    1791                                                                                         <Index>0</Index>
    1792                                                                                         <Values>0.479274</Values>
    1793                                                                                         <Status>0</Status>
    1794                                                                                         <Index>1</Index>
    1795                                                                                         <Values>0.520726</Values>
    1796                                                                                         <Status>0</Status>
    1797                                                                                 </Variables>
    1798                                                                         </Block_Properties>
    1799                                                                 </Base_Models>
    1800                                                                 <Variables>
    1801                                                                         <Desc>rhoL</Desc>
    1802                                                                         <Index>0</Index>
    1803                                                                         <Values>438.651</Values>
    1804                                                                         <Status>0</Status>
    1805                                                                         <Unit>kg/m^3</Unit>
    1806                                                                 </Variables>
    1807                                                                 <Variables>
    1808                                                                         <Desc>rhoV</Desc>
    1809                                                                         <Index>0</Index>
    1810                                                                         <Values>48.4323</Values>
    1811                                                                         <Status>0</Status>
    1812                                                                         <Unit>kg/m^3</Unit>
    1813                                                                 </Variables>
    1814                                                         </Block_Properties>
    1815                                                 </Base_Models>
    1816                                         </Block_Properties>
    1817                                 </Sub_Models>
    1818                                 <Sub_Models>
    1819                                         <Block_Properties>
    1820                                                 <Model_File_Path>stage_separators/column</Model_File_Path>
    1821                                                 <Instance_Id>TRAYS(4)</Instance_Id>
    1822                                                 <Model_Name>TRAYS</Model_Name>
    1823                                                 <T_Connection>0</T_Connection>
    1824                                                 <Base_Models>
    1825                                                         <Block_Properties>
    1826                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    1827                                                                 <Instance_Id>TRAYS(4)</Instance_Id>
    1828                                                                 <Model_Name>tray</Model_Name>
    1829                                                                 <T_Connection>0</T_Connection>
    1830                                                                 <Base_Models>
    1831                                                                         <Block_Properties>
    1832                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    1833                                                                                 <Instance_Id>TRAYS(4)</Instance_Id>
    1834                                                                                 <Model_Name>trayBasic</Model_Name>
    1835                                                                                 <T_Connection>0</T_Connection>
    1836                                                                                 <Sub_Models>
    1837                                                                                         <Block_Properties>
    1838                                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    1839                                                                                                 <Instance_Id>InletLiquid</Instance_Id>
    1840                                                                                                 <Model_Name>InletLiquid</Model_Name>
    1841                                                                                                 <T_Connection>1</T_Connection>
    1842                                                                                                 <Base_Models>
    1843                                                                                                         <Block_Properties>
    1844                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    1845                                                                                                                 <Instance_Id>InletLiquid</Instance_Id>
    1846                                                                                                                 <Model_Name>stream</Model_Name>
    1847                                                                                                                 <T_Connection>1</T_Connection>
    1848                                                                                                                 <Parameters>
    1849                                                                                                                         <Desc>NComp</Desc>
    1850                                                                                                                         <Index>0</Index>
    1851                                                                                                                         <Values>2</Values>
    1852                                                                                                                         <Status>0</Status>
    1853                                                                                                                 </Parameters>
    1854                                                                                                                 <Variables>
    1855                                                                                                                         <Desc>F</Desc>
    1856                                                                                                                         <Index>0</Index>
    1857                                                                                                                         <Values>65.7541</Values>
    1858                                                                                                                         <Status>0</Status>
    1859                                                                                                                         <Unit>kmol/h</Unit>
    1860                                                                                                                 </Variables>
    1861                                                                                                                 <Variables>
    1862                                                                                                                         <Desc>T</Desc>
    1863                                                                                                                         <Index>0</Index>
    1864                                                                                                                         <Values>328.617</Values>
    1865                                                                                                                         <Status>0</Status>
    1866                                                                                                                         <Unit>K</Unit>
    1867                                                                                                                 </Variables>
    1868                                                                                                                 <Variables>
    1869                                                                                                                         <Desc>P</Desc>
    1870                                                                                                                         <Index>0</Index>
    1871                                                                                                                         <Values>20.7294</Values>
    1872                                                                                                                         <Status>0</Status>
    1873                                                                                                                         <Unit>atm</Unit>
    1874                                                                                                                 </Variables>
    1875                                                                                                                 <Variables>
    1876                                                                                                                         <Desc>h</Desc>
    1877                                                                                                                         <Index>0</Index>
    1878                                                                                                                         <Values>-11993.7</Values>
    1879                                                                                                                         <Status>0</Status>
    1880                                                                                                                         <Unit>kJ/kmol</Unit>
    1881                                                                                                                 </Variables>
    1882                                                                                                                 <Variables>
    1883                                                                                                                         <Desc>v</Desc>
    1884                                                                                                                         <Index>0</Index>
    1885                                                                                                                         <Values>0</Values>
    1886                                                                                                                         <Status>0</Status>
    1887                                                                                                                 </Variables>
    1888                                                                                                                 <Variables>
    1889                                                                                                                         <Desc>z</Desc>
    1890                                                                                                                         <Index>0</Index>
    1891                                                                                                                         <Values>0.45234</Values>
    1892                                                                                                                         <Status>0</Status>
    1893                                                                                                                         <Index>1</Index>
    1894                                                                                                                         <Values>0.54766</Values>
    1895                                                                                                                         <Status>0</Status>
    1896                                                                                                                 </Variables>
    1897                                                                                                         </Block_Properties>
    1898                                                                                                 </Base_Models>
    1899                                                                                         </Block_Properties>
    1900                                                                                 </Sub_Models>
    1901                                                                                 <Sub_Models>
    1902                                                                                         <Block_Properties>
    1903                                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    1904                                                                                                 <Instance_Id>InletVapour</Instance_Id>
    1905                                                                                                 <Model_Name>InletVapour</Model_Name>
    1906                                                                                                 <T_Connection>1</T_Connection>
    1907                                                                                                 <Base_Models>
    1908                                                                                                         <Block_Properties>
    1909                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    1910                                                                                                                 <Instance_Id>InletVapour</Instance_Id>
    1911                                                                                                                 <Model_Name>stream</Model_Name>
    1912                                                                                                                 <T_Connection>1</T_Connection>
    1913                                                                                                                 <Parameters>
    1914                                                                                                                         <Desc>NComp</Desc>
    1915                                                                                                                         <Index>0</Index>
    1916                                                                                                                         <Values>2</Values>
    1917                                                                                                                         <Status>0</Status>
    1918                                                                                                                 </Parameters>
    1919                                                                                                                 <Variables>
    1920                                                                                                                         <Desc>F</Desc>
    1921                                                                                                                         <Index>0</Index>
    1922                                                                                                                         <Values>93.4979</Values>
    1923                                                                                                                         <Status>0</Status>
    1924                                                                                                                         <Unit>kmol/h</Unit>
    1925                                                                                                                 </Variables>
    1926                                                                                                                 <Variables>
    1927                                                                                                                         <Desc>T</Desc>
    1928                                                                                                                         <Index>0</Index>
    1929                                                                                                                         <Values>328.852</Values>
    1930                                                                                                                         <Status>0</Status>
    1931                                                                                                                         <Unit>K</Unit>
    1932                                                                                                                 </Variables>
    1933                                                                                                                 <Variables>
    1934                                                                                                                         <Desc>P</Desc>
    1935                                                                                                                         <Index>0</Index>
    1936                                                                                                                         <Values>20.7309</Values>
    1937                                                                                                                         <Status>0</Status>
    1938                                                                                                                         <Unit>atm</Unit>
    1939                                                                                                                 </Variables>
    1940                                                                                                                 <Variables>
    1941                                                                                                                         <Desc>h</Desc>
    1942                                                                                                                         <Index>0</Index>
    1943                                                                                                                         <Values>-463.271</Values>
    1944                                                                                                                         <Status>0</Status>
    1945                                                                                                                         <Unit>kJ/kmol</Unit>
    1946                                                                                                                 </Variables>
    1947                                                                                                                 <Variables>
    1948                                                                                                                         <Desc>v</Desc>
    1949                                                                                                                         <Index>0</Index>
    1950                                                                                                                         <Values>1</Values>
    1951                                                                                                                         <Status>0</Status>
    1952                                                                                                                 </Variables>
    1953                                                                                                                 <Variables>
    1954                                                                                                                         <Desc>z</Desc>
    1955                                                                                                                         <Index>0</Index>
    1956                                                                                                                         <Values>0.451706</Values>
    1957                                                                                                                         <Status>0</Status>
    1958                                                                                                                         <Index>1</Index>
    1959                                                                                                                         <Values>0.548294</Values>
    1960                                                                                                                         <Status>0</Status>
    1961                                                                                                                 </Variables>
    1962                                                                                                         </Block_Properties>
    1963                                                                                                 </Base_Models>
    1964                                                                                         </Block_Properties>
    1965                                                                                 </Sub_Models>
    1966                                                                                 <Sub_Models>
    1967                                                                                         <Block_Properties>
    1968                                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    1969                                                                                                 <Instance_Id>OutletLiquid</Instance_Id>
    1970                                                                                                 <Model_Name>OutletLiquid</Model_Name>
    1971                                                                                                 <T_Connection>2</T_Connection>
    1972                                                                                                 <Base_Models>
    1973                                                                                                         <Block_Properties>
    1974                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    1975                                                                                                                 <Instance_Id>OutletLiquid</Instance_Id>
    1976                                                                                                                 <Model_Name>liquid_stream</Model_Name>
    1977                                                                                                                 <T_Connection>2</T_Connection>
    1978                                                                                                                 <Base_Models>
    1979                                                                                                                         <Block_Properties>
    1980                                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    1981                                                                                                                                 <Instance_Id>OutletLiquid</Instance_Id>
    1982                                                                                                                                 <Model_Name>stream</Model_Name>
    1983                                                                                                                                 <T_Connection>2</T_Connection>
    1984                                                                                                                                 <Parameters>
    1985                                                                                                                                         <Desc>NComp</Desc>
    1986                                                                                                                                         <Index>0</Index>
    1987                                                                                                                                         <Values>2</Values>
    1988                                                                                                                                         <Status>0</Status>
    1989                                                                                                                                 </Parameters>
    1990                                                                                                                                 <Variables>
    1991                                                                                                                                         <Desc>F</Desc>
    1992                                                                                                                                         <Index>0</Index>
    1993                                                                                                                                         <Values>65.7797</Values>
    1994                                                                                                                                         <Status>0</Status>
    1995                                                                                                                                         <Unit>kmol/h</Unit>
    1996                                                                                                                                 </Variables>
    1997                                                                                                                                 <Variables>
    1998                                                                                                                                         <Desc>T</Desc>
    1999                                                                                                                                         <Index>0</Index>
    2000                                                                                                                                         <Values>328.754</Values>
    2001                                                                                                                                         <Status>0</Status>
    2002                                                                                                                                         <Unit>K</Unit>
    2003                                                                                                                                 </Variables>
    2004                                                                                                                                 <Variables>
    2005                                                                                                                                         <Desc>P</Desc>
    2006                                                                                                                                         <Index>0</Index>
    2007                                                                                                                                         <Values>20.7302</Values>
    2008                                                                                                                                         <Status>0</Status>
    2009                                                                                                                                         <Unit>atm</Unit>
    2010                                                                                                                                 </Variables>
    2011                                                                                                                                 <Variables>
    2012                                                                                                                                         <Desc>h</Desc>
    2013                                                                                                                                         <Index>0</Index>
    2014                                                                                                                                         <Values>-11979</Values>
    2015                                                                                                                                         <Status>0</Status>
    2016                                                                                                                                         <Unit>kJ/kmol</Unit>
    2017                                                                                                                                 </Variables>
    2018                                                                                                                                 <Variables>
    2019                                                                                                                                         <Desc>v</Desc>
    2020                                                                                                                                         <Index>0</Index>
    2021                                                                                                                                         <Values>0</Values>
    2022                                                                                                                                         <Status>0</Status>
    2023                                                                                                                                 </Variables>
    2024                                                                                                                                 <Variables>
    2025                                                                                                                                         <Desc>z</Desc>
    2026                                                                                                                                         <Index>0</Index>
    2027                                                                                                                                         <Values>0.436328</Values>
    2028                                                                                                                                         <Status>0</Status>
    2029                                                                                                                                         <Index>1</Index>
    2030                                                                                                                                         <Values>0.563672</Values>
    2031                                                                                                                                         <Status>0</Status>
    2032                                                                                                                                 </Variables>
    2033                                                                                                                         </Block_Properties>
    2034                                                                                                                 </Base_Models>
    2035                                                                                                                 <Parameters>
    2036                                                                                                                         <Desc>PP</Desc>
    2037                                                                                                                         <Index>0</Index>
    2038                                                                                                                         <Values>PP</Values>
    2039                                                                                                                         <Status>0</Status>
    2040                                                                                                                 </Parameters>
    2041                                                                                                         </Block_Properties>
    2042                                                                                                 </Base_Models>
    2043                                                                                         </Block_Properties>
    2044                                                                                 </Sub_Models>
    2045                                                                                 <Sub_Models>
    2046                                                                                         <Block_Properties>
    2047                                                                                                 <Model_File_Path>stage_separators/tray</Model_File_Path>
    2048                                                                                                 <Instance_Id>OutletVapour</Instance_Id>
    2049                                                                                                 <Model_Name>OutletVapour</Model_Name>
    2050                                                                                                 <T_Connection>2</T_Connection>
    2051                                                                                                 <Base_Models>
    2052                                                                                                         <Block_Properties>
    2053                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    2054                                                                                                                 <Instance_Id>OutletVapour</Instance_Id>
    2055                                                                                                                 <Model_Name>vapour_stream</Model_Name>
    2056                                                                                                                 <T_Connection>2</T_Connection>
    2057                                                                                                                 <Base_Models>
    2058                                                                                                                         <Block_Properties>
    2059                                                                                                                                 <Model_File_Path>streams</Model_File_Path>
    2060                                                                                                                                 <Instance_Id>OutletVapour</Instance_Id>
    2061                                                                                                                                 <Model_Name>stream</Model_Name>
    2062                                                                                                                                 <T_Connection>2</T_Connection>
    2063                                                                                                                                 <Parameters>
    2064                                                                                                                                         <Desc>NComp</Desc>
    2065                                                                                                                                         <Index>0</Index>
    2066                                                                                                                                         <Values>2</Values>
    2067                                                                                                                                         <Status>0</Status>
    2068                                                                                                                                 </Parameters>
    2069                                                                                                                                 <Variables>
    2070                                                                                                                                         <Desc>F</Desc>
    2071                                                                                                                                         <Index>0</Index>
    2072                                                                                                                                         <Values>93.4731</Values>
    2073                                                                                                                                         <Status>0</Status>
    2074                                                                                                                                         <Unit>kmol/h</Unit>
    2075                                                                                                                                 </Variables>
    2076                                                                                                                                 <Variables>
    2077                                                                                                                                         <Desc>T</Desc>
    2078                                                                                                                                         <Index>0</Index>
    2079                                                                                                                                         <Values>328.754</Values>
    2080                                                                                                                                         <Status>0</Status>
    2081                                                                                                                                         <Unit>K</Unit>
    2082                                                                                                                                 </Variables>
    2083                                                                                                                                 <Variables>
    2084                                                                                                                                         <Desc>P</Desc>
    2085                                                                                                                                         <Index>0</Index>
    2086                                                                                                                                         <Values>20.7302</Values>
    2087                                                                                                                                         <Status>0</Status>
    2088                                                                                                                                         <Unit>atm</Unit>
    2089                                                                                                                                 </Variables>
    2090                                                                                                                                 <Variables>
    2091                                                                                                                                         <Desc>h</Desc>
    2092                                                                                                                                         <Index>0</Index>
    2093                                                                                                                                         <Values>-470.711</Values>
    2094                                                                                                                                         <Status>0</Status>
    2095                                                                                                                                         <Unit>kJ/kmol</Unit>
    2096                                                                                                                                 </Variables>
    2097                                                                                                                                 <Variables>
    2098                                                                                                                                         <Desc>v</Desc>
    2099                                                                                                                                         <Index>0</Index>
    2100                                                                                                                                         <Values>1</Values>
    2101                                                                                                                                         <Status>0</Status>
    2102                                                                                                                                 </Variables>
    2103                                                                                                                                 <Variables>
    2104                                                                                                                                         <Desc>z</Desc>
    2105                                                                                                                                         <Index>0</Index>
    2106                                                                                                                                         <Values>0.463089</Values>
    2107                                                                                                                                         <Status>0</Status>
    2108                                                                                                                                         <Index>1</Index>
    2109                                                                                                                                         <Values>0.536911</Values>
    2110                                                                                                                                         <Status>0</Status>
    2111                                                                                                                                 </Variables>
    2112                                                                                                                         </Block_Properties>
    2113                                                                                                                 </Base_Models>
    2114                                                                                                                 <Parameters>
    2115                                                                                                                         <Desc>PP</Desc>
    2116                                                                                                                         <Index>0</Index>
    2117                                                                                                                         <Values>PP</Values>
    2118                                                                                                                         <Status>0</Status>
    2119                                                                                                                 </Parameters>
    2120                                                                                                         </Block_Properties>
    2121                                                                                                 </Base_Models>
    2122                                                                                         </Block_Properties>
    2123                                                                                 </Sub_Models>
    2124                                                                                 <Parameters>
    2125                                                                                         <Desc>PP</Desc>
    2126                                                                                         <Index>0</Index>
    2127                                                                                         <Values>PP</Values>
    2128                                                                                         <Status>0</Status>
    2129                                                                                 </Parameters>
    2130                                                                                 <Parameters>
    2131                                                                                         <Desc>NComp</Desc>
    2132                                                                                         <Index>0</Index>
    2133                                                                                         <Values>2</Values>
    2134                                                                                         <Status>0</Status>
    2135                                                                                 </Parameters>
    2136                                                                                 <Variables>
    2137                                                                                         <Desc>M</Desc>
    2138                                                                                         <Index>0</Index>
    2139                                                                                         <Values>0.128317</Values>
    2140                                                                                         <Status>0</Status>
    2141                                                                                         <Unit>kmol</Unit>
    2142                                                                                         <Index>1</Index>