Ignore:
Timestamp:
Jul 28, 2009, 6:24:54 PM (13 years ago)
Author:
gerson bicca
Message:

updates

File:
1 edited

Legend:

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

    r793 r806  
    8888end
    8989
    90 Model Section_ColumnBasicX
     90
     91Model SectionColumnBasic
    9192
    9293ATTRIBUTES
     
    9798
    9899PARAMETERS
    99         outer PP                                                        as Plugin                       (Brief="External Physical Properties", Type="PP");
    100         outer NComp                                     as Integer              (Brief="Number of components");
     100        outer PP                as Plugin               (Brief="External Physical Properties", Type="PP");
     101        outer NComp     as Integer              (Brief="Number of components");
    101102#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    102103# Section Column Feed Tray - Side Streams  Location and Numbering
    103104#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     105        NumberOfFeeds                                           as Integer                      (Brief="Number of Feed Trays",Default=3,Protected=true);
     106        FeedTrayLocation(NumberOfFeeds)         as Integer                      (Brief="Feed tray Location",Default=2);
    104107        NumberOfTrays                                           as Integer                      (Brief="Number of trays", Default=8);
    105108        LiqSideTrayIndex(NumberOfTrays)         as Integer                      (Brief="Liquid Side Tray Index", Default=0,Hidden=true);
    106109        VapSideTrayIndex(NumberOfTrays)         as Integer                      (Brief="Vapour Side Tray Index", Default=0,Hidden=true);
    107         FeedTrayTopLocation                                     as Integer                      (Brief="Top Feed tray Location", Default=2);
    108         FeedTrayBottomLocation                                  as Integer                      (Brief="Bottom Feed tray Location", Default=3);
     110
    109111        LiquidSideStreamLocation                        as Integer                      (Brief="Liquid Side Stream Location", Default=2);
    110112        VapourSideStreamLocation                        as Integer                      (Brief="Vapour Side Stream Location", Default=2);
     
    125127        WeirLength                      as length               (Brief="Weir length");
    126128        WeirHeight                      as length               (Brief="Weir height");
    127         FeeheryCoeff            as Real                 (Brief="Feeherys correlation coefficient", Unit='1/m^4', Default=1);
    128         ElgueCoeff                      as Real                 (Brief="Elgues correlation coefficient", Unit='kg/m/mol^2', Default=1);
    129         OlsenCoeff                      as Real                 (Brief="Olsens correlation coefficient", Default=1);
     129        FeeheryCoeff            as Real                 (Brief="Feeherys correlation coefficient", Unit='1/m^4', Default=1,Hidden=true);
     130        ElgueCoeff                      as Real                 (Brief="Elgues correlation coefficient", Unit='kg/m/mol^2', Default=1,Hidden=true);
     131        OlsenCoeff                      as Real                 (Brief="Olsens correlation coefficient", Default=1,Hidden=true);
    130132        TrayLiquidPasses        as Real                 (Brief="Number of liquid passes in the tray", Default=1);
    131133       
     
    176178# Column Feed - Side Stream Flow and Murphree Efficiency
    177179#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++             
    178         in      FeedTrayTop                             as stream               (Brief="Feed stream", PosX=0, PosY=0.45);
    179         in      FeedTrayBottom                  as stream               (Brief="Feed stream", PosX=0, PosY=0.65);
    180        
    181                 TRAYS(NumberOfTrays)    as tray                 (Brief="Number of trays in the Column Section");
    182                 VapourDrawOffFlow               as flow_mol     (Brief="Vapour Draw Off Stream Molar Flow Rate");
    183                 LiquidDrawOffFlow               as flow_mol     (Brief="Vapour Draw Off Stream Molar Flow Rate");
    184                 MurphreeEff                     as Real                 (Brief="Murphree efficiency for All Trays",Lower=0.01,Upper=1);
    185 
     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);
     185       
     186        TRAYS(NumberOfTrays)    as tray                 (Brief="Number of trays in the Column Section");
     187        VapourDrawOffFlow               as flow_mol     (Brief="Vapour Draw Off Stream Molar Flow Rate");
     188        LiquidDrawOffFlow               as flow_mol     (Brief="Vapour Draw Off Stream Molar Flow Rate");
     189        MurphreeEff                     as Real                 (Brief="Murphree efficiency for All Trays",Lower=0.01,Upper=1);
     190
     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);
    186199CONNECTIONS
    187200#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     
    190203        TRAYS([2:NumberOfTrays]).OutletVapour   to TRAYS([1:NumberOfTrays-1]).InletVapour;
    191204        TRAYS([1:NumberOfTrays-1]).OutletLiquid         to TRAYS([2:NumberOfTrays]).InletLiquid;
     205       
     206#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     207# Connecting Connectors
     208#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     209    LiquidConnector to TRAYS(1).InletLiquid;
     210    VapourConnector to TRAYS(NumberOfTrays).InletVapour;
    192211       
    193212INITIAL
     
    226245        #PCI*'atm' = TRAYS(min([NumberOfTrays, CONTROL.Pindicator_TrayNumber])).OutletVapour.P;
    227246        PCI*'atm' = TRAYS(CONTROL.Pindicator_TrayNumber).OutletVapour.P;
    228 
    229 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    230 # Equating Feed Trays Variables to Trays Variables
    231 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    232 
    233 for i in 1:NumberOfTrays do
    234 
    235 if   i equal FeedTrayTopLocation then   
    236 
    237 "FeedTrayTop Inlet Flow"       
    238         FeedTrayTop.F= TRAYS(i).Inlet.F;
    239 
    240 "FeedTrayTop Inlet Temperature"
    241         FeedTrayTop.T = TRAYS(i).Inlet.T;
    242 
    243 "FeedTrayTop Inlet Pressure"
    244         FeedTrayTop.P = TRAYS(i).Inlet.P;
    245 
    246 "FeedTrayTop Inlet Composition"
    247         FeedTrayTop.z = TRAYS(i).Inlet.z;
    248 
    249 "FeedTrayTop Inlet Vapour Fraction"
    250         FeedTrayTop.v = TRAYS(i).Inlet.v;
    251 
    252 "FeedTrayTop Inlet Enthalpy"
    253         FeedTrayTop.h = TRAYS(i).Inlet.h;
    254 
    255 else if   i equal FeedTrayBottomLocation then   
    256 
    257 "FeedTrayBottom Inlet Flow"     
    258         FeedTrayBottom.F= TRAYS(i).Inlet.F;
    259 
    260 "FeedTrayBottom Inlet Temperature"
    261         FeedTrayBottom.T = TRAYS(i).Inlet.T;
    262 
    263 "FeedTrayBottom Inlet Pressure"
    264         FeedTrayBottom.P = TRAYS(i).Inlet.P;
    265 
    266 "FeedTrayBottom Inlet Composition"
    267         FeedTrayBottom.z = TRAYS(i).Inlet.z;
    268 
    269 "FeedTrayBottom Inlet Vapour Fraction"
    270         FeedTrayBottom.v = TRAYS(i).Inlet.v;
    271 
    272 "FeedTrayBottom Inlet Enthalpy"
    273         FeedTrayBottom.h = TRAYS(i).Inlet.h;
    274 
    275 else
    276 
    277 "Inlet Tray - Flow Sealed"     
    278         0*'mol/h'= TRAYS(i).Inlet.F;
    279 
    280 "Inlet Tray -  Temperature"
    281         FeedTrayBottom.T = TRAYS(i).Inlet.T;
    282 
    283 "Inlet Tray -  Pressure"
    284         FeedTrayBottom.P = TRAYS(i).Inlet.P;
    285 
    286 "Inlet Tray -  Composition"
    287         FeedTrayBottom.z = TRAYS(i).Inlet.z;
    288 
    289 "Inlet Tray -  Vapour Fraction"
    290         FeedTrayBottom.v = TRAYS(i).Inlet.v;
    291 
    292 "Inlet Tray -  Enthalpy"
    293         FeedTrayBottom.h = TRAYS(i).Inlet.h;
    294 
    295 end
    296 
    297 end
    298 
    299 end
    300247
    301248#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     
    379326end
    380327
    381 end
    382 
    383 
    384 Model SectionColumnBasic
     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
     431end
     432
     433Model Section_Column    as SectionColumnBasic
    385434
    386435ATTRIBUTES
    387         Pallete         = false;
    388         Brief   = "Model of a basic column section.";
     436        Pallete         = true;
     437        Icon            = "icon/SectionColumn";
     438        Brief   = "Model of a column section.";
    389439        Info            =
    390 "Model of a basic column section containing a vetor of TRAYS numbered from the top-down.";
     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
     456SET
     457        NumberOfFeeds = 1;
     458
     459VARIABLES
     460       
     461        in      FeedTray        as stream               (Brief="Feed stream", PosX=0, PosY=0.55);
     462
     463EQUATIONS
     464#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     465# Equating Feed Tray Variables to Trays Variables
     466#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     467for i in 1:NumberOfTrays do
     468
     469if   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
     489else
     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
     509end
     510
     511end
     512
     513end
     514
     515Model Section_Column2   as SectionColumnBasic
     516
     517ATTRIBUTES
     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
     538SET
     539        NumberOfFeeds = 2;
     540
     541VARIABLES
     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
     546EQUATIONS
     547
     548for i in 1:NumberOfTrays do
     549
     550if   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
     570else 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
     590else
     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
     610end
     611
     612end
     613
     614end
     615
     616end
     617
     618Model Section_Column3   as SectionColumnBasic
     619
     620ATTRIBUTES
     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
     641SET
     642        NumberOfFeeds = 3;
     643
     644VARIABLES
     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
     650EQUATIONS
     651
     652for i in 1:NumberOfTrays do
     653
     654if   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
     674else 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
     694else 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
     714else
     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
     734end
     735
     736end
     737
     738end
     739
     740end
     741
     742end
     743
     744
     745Model ColumnBasic
     746
     747ATTRIBUTES
     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.";
    391752
    392753PARAMETERS
    393         outer PP                as Plugin               (Brief="External Physical Properties", Type="PP");
    394         outer NComp     as Integer              (Brief="Number of components");
    395 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    396 # Section Column Feed Tray - Side Streams  Location and Numbering
    397 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     754        outer PP                as Plugin       (Brief="External Physical Properties", Type="PP");
     755        outer NComp     as Integer      (Brief="Number of components");
     756
    398757        NumberOfFeeds                                           as Integer                      (Brief="Number of Feed Trays",Default=3,Protected=true);
    399758        FeedTrayLocation(NumberOfFeeds)         as Integer                      (Brief="Feed tray Location",Default=2);
     
    401760        LiqSideTrayIndex(NumberOfTrays)         as Integer                      (Brief="Liquid Side Tray Index", Default=0,Hidden=true);
    402761        VapSideTrayIndex(NumberOfTrays)         as Integer                      (Brief="Vapour Side Tray Index", Default=0,Hidden=true);
    403 
    404762        LiquidSideStreamLocation                        as Integer                      (Brief="Liquid Side Stream Location", Default=2);
    405763        VapourSideStreamLocation                        as Integer                      (Brief="Vapour Side Stream Location", Default=2);
    406764        g                                                                       as acceleration         (Brief="Gravity Acceleration",Default=9.81,Hidden=true);
    407765        Mw(NComp)                                                       as molweight            (Brief="Component Mol Weight",Hidden=true);
    408 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    409 # Section Column Flow Model for Liquid and Vapour
    410 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     766
    411767        VapourFlowModel         as Switcher     (Valid = ["Reepmeyer", "Feehery_Fv", "Roffel_Fv", "Klingberg", "Wang_Fv", "Elgue"], Default = "Reepmeyer");
    412768        LiquidFlowModel         as Switcher     (Valid = ["default", "Wang_Fl", "Olsen", "Feehery_Fl", "Roffel_Fl"], Default = "default");
    413 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    414 # Section Column Tray Geometry and Auxiliar Parameters
    415 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     769
    416770        VolumeOfTray            as volume               (Brief="Total Volume of the tray");
    417771        HeatSupply                      as heat_rate    (Brief="Rate of heat supply");
     
    420774        WeirLength                      as length               (Brief="Weir length");
    421775        WeirHeight                      as length               (Brief="Weir height");
     776        TrayLiquidPasses        as Real                 (Brief="Number of liquid passes in the tray", Default=1);
     777       
    422778        FeeheryCoeff            as Real                 (Brief="Feeherys correlation coefficient", Unit='1/m^4', Default=1,Hidden=true);
    423779        ElgueCoeff                      as Real                 (Brief="Elgues correlation coefficient", Unit='kg/m/mol^2', Default=1,Hidden=true);
    424780        OlsenCoeff                      as Real                 (Brief="Olsens correlation coefficient", Default=1,Hidden=true);
    425         TrayLiquidPasses        as Real                 (Brief="Number of liquid passes in the tray", Default=1);
    426781       
    427782        V                               as volume               (Brief="Total Volume of the tray",Hidden=true);
     
    458813
    459814VARIABLES
    460 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    461 # Tray Initialization For the Whole Column Section
    462 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     815
    463816        INITIALIZATION as InitializeSection (Brief = "Column Model Initialization");
    464 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    465 # Control Ports
    466 #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    467         CONTROL as ControlSection (Brief = "Control");
    468         out     TCI as control_signal   (Brief="Temperature  Indicator", Protected = true, PosX=1, PosY=0.73);
    469         out     PCI as control_signal   (Brief="Pressure Indicator", Protected = true, PosX=0, PosY=0.24);
    470 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    471 # Column Feed - Side Stream Flow and Murphree Efficiency
    472 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++             
    473 #       in      FeedTrayTop                             as stream               (Brief="Feed stream", PosX=0, PosY=0.45);
    474 #       in      FeedTrayBottom                  as stream               (Brief="Feed stream", PosX=0, PosY=0.65);
    475        in      LiquidInlet             as      stream                  (Brief="Liquid Inlet in the section", PosX=0.70, PosY=0);
    476         out     VapourOutlet    as vapour_stream        (Brief="Vapour Outlet in the section", PosX=0.30, PosY=0);
    477        
    478         out     VapourDrawOff   as vapour_stream        (Brief="Vapour Draw Off Port in the section", PosX=1, PosY=0.35,Protected = true);
    479                 out     LiquidDrawOff   as liquid_stream        (Brief="Liquid Draw Off Port in the section", PosX=1, PosY=0.65,Protected = true);
    480        
    481                 TRAYS(NumberOfTrays)    as tray                 (Brief="Number of trays in the Column Section");
    482                 VapourDrawOffFlow               as flow_mol     (Brief="Vapour Draw Off Stream Molar Flow Rate");
    483                 LiquidDrawOffFlow               as flow_mol     (Brief="Vapour Draw Off Stream Molar Flow Rate");
    484                 MurphreeEff                     as Real                 (Brief="Murphree efficiency for All Trays",Lower=0.01,Upper=1);
    485 
    486 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    487 # Section Inlet Vapour and Outlet Liquid Material Ports
    488 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    489         in      VapourInlet             as stream                       (Brief="Vapour Inlet in the section", PosX=0.30, PosY=1);
    490         out     LiquidOutlet    as liquid_stream        (Brief="Liquid Outlet in the section", PosX=0.70, PosY=1);
    491        
    492                 LiquidConnector as stream       (Brief="Liquid connection in the middle TRAYS", PosX=0.75, PosY=1,Hidden=true);
    493             VapourConnector as stream       (Brief="Vapour connection in the middle TRAYS", PosX=0.55, PosY=0,Hidden=true);
     817        CONTROL                 as ControlSection (Brief = "Control");
     818       
     819        out     TCI as control_signal   (Brief="Temperature  Indicator", Protected = true, PosX=1, PosY=0.63);
     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
    494830CONNECTIONS
    495 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    496 # Connecting Intermediate Trays
    497 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     831
     832#Connecting Intermediate Trays
    498833        TRAYS([2:NumberOfTrays]).OutletVapour   to TRAYS([1:NumberOfTrays-1]).InletVapour;
    499834        TRAYS([1:NumberOfTrays-1]).OutletLiquid         to TRAYS([2:NumberOfTrays]).InletLiquid;
    500835       
    501 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    502 # Connecting Connectors
    503 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    504     LiquidConnector to TRAYS(1).InletLiquid;
    505     VapourConnector to TRAYS(NumberOfTrays).InletVapour;
    506        
    507836INITIAL
    508 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    509 # Tray Initialization
    510 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     837
    511838for i in 1:NumberOfTrays do
    512839
     
    529856
    530857EQUATIONS
    531 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    532 # Control Ports
    533 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    534 
     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       
    535872"Tray Temperature Indicator"   
    536873        #TCI*'K' = TRAYS(min([NumberOfTrays, CONTROL.Tindicator_TrayNumber])).OutletVapour.T;
     
    540877        #PCI*'atm' = TRAYS(min([NumberOfTrays, CONTROL.Pindicator_TrayNumber])).OutletVapour.P;
    541878        PCI*'atm' = TRAYS(CONTROL.Pindicator_TrayNumber).OutletVapour.P;
    542 
    543 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    544 # Equating Feed Trays Variables to Trays Variables
    545 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    546 #*
    547 for i in 1:NumberOfTrays do
    548 
    549 if   i equal FeedTrayTopLocation then   
    550 
    551 "FeedTrayTop Inlet Flow"       
    552         FeedTrayTop.F= TRAYS(i).Inlet.F;
    553 
    554 "FeedTrayTop Inlet Temperature"
    555         FeedTrayTop.T = TRAYS(i).Inlet.T;
    556 
    557 "FeedTrayTop Inlet Pressure"
    558         FeedTrayTop.P = TRAYS(i).Inlet.P;
    559 
    560 "FeedTrayTop Inlet Composition"
    561         FeedTrayTop.z = TRAYS(i).Inlet.z;
    562 
    563 "FeedTrayTop Inlet Vapour Fraction"
    564         FeedTrayTop.v = TRAYS(i).Inlet.v;
    565 
    566 "FeedTrayTop Inlet Enthalpy"
    567         FeedTrayTop.h = TRAYS(i).Inlet.h;
    568 
    569 else if   i equal FeedTrayBottomLocation then   
    570 
    571 "FeedTrayBottom Inlet Flow"     
    572         FeedTrayBottom.F= TRAYS(i).Inlet.F;
    573 
    574 "FeedTrayBottom Inlet Temperature"
    575         FeedTrayBottom.T = TRAYS(i).Inlet.T;
    576 
    577 "FeedTrayBottom Inlet Pressure"
    578         FeedTrayBottom.P = TRAYS(i).Inlet.P;
    579 
    580 "FeedTrayBottom Inlet Composition"
    581         FeedTrayBottom.z = TRAYS(i).Inlet.z;
    582 
    583 "FeedTrayBottom Inlet Vapour Fraction"
    584         FeedTrayBottom.v = TRAYS(i).Inlet.v;
    585 
    586 "FeedTrayBottom Inlet Enthalpy"
    587         FeedTrayBottom.h = TRAYS(i).Inlet.h;
    588 
    589 else
    590 
    591 "Inlet Tray - Flow Sealed"     
    592         0*'mol/h'= TRAYS(i).Inlet.F;
    593 
    594 "Inlet Tray -  Temperature"
    595         FeedTrayBottom.T = TRAYS(i).Inlet.T;
    596 
    597 "Inlet Tray -  Pressure"
    598         FeedTrayBottom.P = TRAYS(i).Inlet.P;
    599 
    600 "Inlet Tray -  Composition"
    601         FeedTrayBottom.z = TRAYS(i).Inlet.z;
    602 
    603 "Inlet Tray -  Vapour Fraction"
    604         FeedTrayBottom.v = TRAYS(i).Inlet.v;
    605 
    606 "Inlet Tray -  Enthalpy"
    607         FeedTrayBottom.h = TRAYS(i).Inlet.h;
    608 
    609 end
    610 
    611 end
    612 
    613 end
    614 *#
    615 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    616 # Trays Equations
    617 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    618879
    619880for i in [1:NumberOfTrays] do
     
    693954end
    694955
    695 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    696 # Equating Inlet Liquid Connector Variables
    697 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    698 "Liquid Inlet Flow"     
    699         LiquidConnector.F = LiquidInlet.F;
    700 
    701 "Liquid Inlet Temperature"             
    702         LiquidConnector.T = LiquidInlet.T;
    703 
    704 "Liquid Inlet Pressure"         
    705         LiquidConnector.P = LiquidInlet.P;
    706 
    707 "Liquid Inlet Composition"             
    708         LiquidConnector.z = LiquidInlet.z;
    709 
    710 "Liquid Inlet Vapour Fraction"         
    711         LiquidConnector.v = LiquidInlet.v;
    712 
    713 "Liquid Inlet Enthalpy"         
    714         LiquidConnector.h = LiquidInlet.h;
    715 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    716 # Equating Inlet Vapour Connector Variables
    717 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    718 "Vapour Inlet Flow"             
    719         VapourConnector.F = VapourInlet.F;
    720 
    721 "Vapour Inlet Temperature"             
    722         VapourConnector.T = VapourInlet.T;
    723 
    724 "Vapour Inlet Pressure"         
    725         VapourConnector.P = VapourInlet.P;
    726 
    727 "Vapour Inlet Composition"             
    728         VapourConnector.z = VapourInlet.z;
    729 
    730 "Vapour Inlet Vapour Fraction"         
    731         VapourConnector.v = VapourInlet.v;
    732 
    733 "Vapour Inlet Enthalpy"         
    734         VapourConnector.h = VapourInlet.h;
    735 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    736 # Equating Outlet Liquid Variables
    737 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    738 "Liquid Outlet Flow"   
    739         LiquidOutlet.F = TRAYS(NumberOfTrays).OutletLiquid.F;
    740 
    741 "Liquid Outlet Temperature"     
    742         LiquidOutlet.T = TRAYS(NumberOfTrays).OutletLiquid.T;
    743 
    744 "Liquid Outlet Pressure"       
    745         LiquidOutlet.P = TRAYS(NumberOfTrays).OutletLiquid.P;
    746 
    747 "Liquid Outlet Composition"     
    748         LiquidOutlet.z = TRAYS(NumberOfTrays).OutletLiquid.z;
    749 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    750 # Equating Outlet Vapour Variables
    751 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    752 "Vapour Outlet Flow"           
    753         VapourOutlet.F = TRAYS(1).OutletVapour.F;
    754 
    755 "Vapour Outlet Temperature"             
    756         VapourOutlet.T = TRAYS(1).OutletVapour.T;
    757 
    758 "Vapour Outlet Pressure"               
    759         VapourOutlet.P = TRAYS(1).OutletVapour.P;
    760 
    761 "Vapour Outlet Composition"             
    762         VapourOutlet.z = TRAYS(1).OutletVapour.z;
    763 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    764 # Equating Outlet Vapour Side Stream Variables
    765 #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    766 "Vapour Draw Off Stream - Flow"         
    767         VapourDrawOff.F*VapSideTrayIndex= TRAYS.VapourSideStream.F;
    768 
    769 "Vapour Draw Off Stream - Temperature"         
    770         VapourDrawOff.T = TRAYS(VapourSideStreamLocation).VapourSideStream.T;
    771 
    772 "Vapour Draw Off Stream - Pressure"             
    773         VapourDrawOff.P = TRAYS(VapourSideStreamLocation).VapourSideStream.P;
    774 
    775 "Vapour Draw Off Stream - Composition"         
    776         VapourDrawOff.z = TRAYS(VapourSideStreamLocation).VapourSideStream.z;
    777 
    778 "Vapour Draw Off Stream"       
    779         VapourDrawOffFlow = VapourDrawOff.F;
    780 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    781 # Equating Outlet Liquid Side Stream Variables
    782 #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    783 "Liquid Draw Off Stream - Flow"         
    784         LiquidDrawOff.F*LiqSideTrayIndex= TRAYS.LiquidSideStream.F;
    785 
    786 "Liquid Draw Off Stream - Temperature" 
    787         LiquidDrawOff.T = TRAYS(LiquidSideStreamLocation).LiquidSideStream.T;
    788 
    789 "Liquid Draw Off Stream - Pressure"                     
    790         LiquidDrawOff.P = TRAYS(LiquidSideStreamLocation).LiquidSideStream.P;
    791 
    792 "Liquid Draw Off Stream - Composition" 
    793         LiquidDrawOff.z = TRAYS(LiquidSideStreamLocation).LiquidSideStream.z;
    794 
    795 "Liquid Draw Off Stream"       
    796         LiquidDrawOffFlow = LiquidDrawOff.F;
    797 
    798 end
    799 
    800 Model Section_Column    as SectionColumnBasic
    801 
    802 ATTRIBUTES
    803         Pallete         = true;
    804         Icon            = "icon/SectionColumn";
    805         Brief   = "Model of a column section.";
    806         Info            =
    807 "== Model of a column section containing ==
    808 * NumberOfTrays TRAYS.
    809 * One Feed Inlet.
    810        
    811 == Specify ==
    812 * the feed stream of each tray (Inlet);
    813 * the Murphree eficiency for each tray Emv;
    814 * the InletLiquid stream of the top tray;
    815 * the InletVapour stream of the bottom tray.
    816        
    817 == Initial Conditions ==
    818 * the TRAYS temperature (OutletLiquid.T);
    819 * the TRAYS liquid level (Level) OR the TRAYS liquid flow (OutletLiquid.F);
    820 * (NoComps - 1) OutletLiquid (OR OutletVapour) compositions for each tray.
    821 ";
    822 
    823 SET
    824         NumberOfFeeds = 1;
    825 
    826 VARIABLES
    827        
    828         in      FeedTray        as stream               (Brief="Feed stream", PosX=0, PosY=0.55);
    829 
    830 EQUATIONS
    831 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    832 # Equating Feed Tray Variables to Trays Variables
    833 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    834 for i in 1:NumberOfTrays do
    835 
    836 if   i equal FeedTrayLocation(1) then   
    837 
    838 "FeedTrayTop Inlet Flow"       
    839         FeedTray.F= TRAYS(i).Inlet.F;
    840 
    841 "FeedTrayTop Inlet Temperature"
    842         FeedTray.T = TRAYS(i).Inlet.T;
    843 
    844 "FeedTrayTop Inlet Pressure"
    845         FeedTray.P = TRAYS(i).Inlet.P;
    846 
    847 "FeedTrayTop Inlet Composition"
    848         FeedTray.z = TRAYS(i).Inlet.z;
    849 
    850 "FeedTrayTop Inlet Vapour Fraction"
    851         FeedTray.v = TRAYS(i).Inlet.v;
    852 
    853 "FeedTrayTop Inlet Enthalpy"
    854         FeedTray.h = TRAYS(i).Inlet.h;
    855 
    856 else
    857 
    858 "Inlet Tray - Flow Sealed"     
    859         0*'mol/h'= TRAYS(i).Inlet.F;
    860 
    861 "Inlet Tray -  Temperature"
    862         FeedTray.T = TRAYS(i).Inlet.T;
    863 
    864 "Inlet Tray -  Pressure"
    865         FeedTray.P = TRAYS(i).Inlet.P;
    866 
    867 "Inlet Tray -  Composition"
    868         FeedTray.z = TRAYS(i).Inlet.z;
    869 
    870 "Inlet Tray -  Vapour Fraction"
    871         FeedTray.v = TRAYS(i).Inlet.v;
    872 
    873 "Inlet Tray -  Enthalpy"
    874         FeedTray.h = TRAYS(i).Inlet.h;
    875 
    876 end
    877 
    878 end
    879 
    880 end
    881 
    882 Model Section_Column2   as SectionColumnBasic
    883 
    884 ATTRIBUTES
    885         Pallete         = true;
    886         Icon            = "icon/SectionColumn";
    887         Brief   = "Model of a column section.";
    888         Info            =
    889 "== Model of a column section containing ==
    890 * NumberOfTrays TRAYS.
    891 * Two Feed Inlets.
    892        
    893 == Specify ==
    894 * the feed stream of each tray (Inlet);
    895 * the Murphree eficiency for each tray Emv;
    896 * the InletLiquid stream of the top tray;
    897 * the InletVapour stream of the bottom tray.
    898        
    899 == Initial Conditions ==
    900 * the TRAYS temperature (OutletLiquid.T);
    901 * the TRAYS liquid level (Level) OR the TRAYS liquid flow (OutletLiquid.F);
    902 * (NoComps - 1) OutletLiquid (OR OutletVapour) compositions for each tray.
    903 ";
    904 
    905 SET
    906         NumberOfFeeds = 2;
    907 
    908 VARIABLES
    909        
    910         in      FeedTrayOne     as stream               (Brief="Feed stream", PosX=0, PosY=0.45);
    911         in      FeedTrayTwo     as stream               (Brief="Feed stream", PosX=0, PosY=0.65);
    912 
    913 EQUATIONS
    914 
    915 for i in 1:NumberOfTrays do
    916 
    917 if   i equal FeedTrayLocation(1) then   
    918 
    919 "FeedTrayTop Inlet Flow"       
    920         FeedTrayOne.F= TRAYS(i).Inlet.F;
    921 
    922 "FeedTrayTop Inlet Temperature"
    923         FeedTrayOne.T = TRAYS(i).Inlet.T;
    924 
    925 "FeedTrayTop Inlet Pressure"
    926         FeedTrayOne.P = TRAYS(i).Inlet.P;
    927 
    928 "FeedTrayTop Inlet Composition"
    929         FeedTrayOne.z = TRAYS(i).Inlet.z;
    930 
    931 "FeedTrayTop Inlet Vapour Fraction"
    932         FeedTrayOne.v = TRAYS(i).Inlet.v;
    933 
    934 "FeedTrayTop Inlet Enthalpy"
    935         FeedTrayOne.h = TRAYS(i).Inlet.h;
    936 
    937 else if   i equal FeedTrayLocation(2) then   
    938 
    939 "FeedTrayBottom Inlet Flow"     
    940         FeedTrayTwo.F= TRAYS(i).Inlet.F;
    941 
    942 "FeedTrayBottom Inlet Temperature"
    943         FeedTrayTwo.T = TRAYS(i).Inlet.T;
    944 
    945 "FeedTrayBottom Inlet Pressure"
    946         FeedTrayTwo.P = TRAYS(i).Inlet.P;
    947 
    948 "FeedTrayBottom Inlet Composition"
    949         FeedTrayTwo.z = TRAYS(i).Inlet.z;
    950 
    951 "FeedTrayBottom Inlet Vapour Fraction"
    952         FeedTrayTwo.v = TRAYS(i).Inlet.v;
    953 
    954 "FeedTrayBottom Inlet Enthalpy"
    955         FeedTrayTwo.h = TRAYS(i).Inlet.h;
    956 
    957 else
    958 
    959 "Inlet Tray - Flow Sealed"     
    960         0*'mol/h'= TRAYS(i).Inlet.F;
    961 
    962 "Inlet Tray -  Temperature"
    963         FeedTrayTwo.T = TRAYS(i).Inlet.T;
    964 
    965 "Inlet Tray -  Pressure"
    966         FeedTrayTwo.P = TRAYS(i).Inlet.P;
    967 
    968 "Inlet Tray -  Composition"
    969         FeedTrayTwo.z = TRAYS(i).Inlet.z;
    970 
    971 "Inlet Tray -  Vapour Fraction"
    972         FeedTrayTwo.v = TRAYS(i).Inlet.v;
    973 
    974 "Inlet Tray -  Enthalpy"
    975         FeedTrayTwo.h = TRAYS(i).Inlet.h;
    976 
    977 end
    978 
    979 end
    980 
    981 end
    982 
    983 end
    984 
    985 Model Section_Column3   as SectionColumnBasic
    986 
    987 ATTRIBUTES
    988         Pallete         = true;
    989         Icon            = "icon/SectionColumn";
    990         Brief   = "Model of a column section.";
    991         Info            =
    992 "== Model of a column section containing ==
    993 * NumberOfTrays TRAYS.
    994 * Three Feed Inlets.
    995        
    996 == Specify ==
    997 * the feed stream of each tray (Inlet);
    998 * the Murphree eficiency for each tray Emv;
    999 * the InletLiquid stream of the top tray;
    1000 * the InletVapour stream of the bottom tray.
    1001        
    1002 == Initial Conditions ==
    1003 * the TRAYS temperature (OutletLiquid.T);
    1004 * the TRAYS liquid level (Level) OR the TRAYS liquid flow (OutletLiquid.F);
    1005 * (NoComps - 1) OutletLiquid (OR OutletVapour) compositions for each tray.
    1006 ";
    1007 
    1008 SET
    1009         NumberOfFeeds = 3;
    1010 
    1011 VARIABLES
    1012        
    1013         in      FeedTrayOne     as stream               (Brief="Feed stream", PosX=0, PosY=0.45);
    1014         in      FeedTrayTwo     as stream               (Brief="Feed stream", PosX=0, PosY=0.65);
    1015         in      FeedTrayThree   as stream               (Brief="Feed stream", PosX=0, PosY=0.85);
    1016 
    1017 EQUATIONS
    1018 
    1019 for i in 1:NumberOfTrays do
    1020 
    1021 if   i equal FeedTrayLocation(1) then   
    1022 
    1023 "FeedTrayTop Inlet Flow"       
    1024         FeedTrayOne.F= TRAYS(i).Inlet.F;
    1025 
    1026 "FeedTrayTop Inlet Temperature"
    1027         FeedTrayOne.T = TRAYS(i).Inlet.T;
    1028 
    1029 "FeedTrayTop Inlet Pressure"
    1030         FeedTrayOne.P = TRAYS(i).Inlet.P;
    1031 
    1032 "FeedTrayTop Inlet Composition"
    1033         FeedTrayOne.z = TRAYS(i).Inlet.z;
    1034 
    1035 "FeedTrayTop Inlet Vapour Fraction"
    1036         FeedTrayOne.v = TRAYS(i).Inlet.v;
    1037 
    1038 "FeedTrayTop Inlet Enthalpy"
    1039         FeedTrayOne.h = TRAYS(i).Inlet.h;
    1040 
    1041 else if   i equal FeedTrayLocation(2) then   
    1042 
    1043 "FeedTrayBottom Inlet Flow"     
    1044         FeedTrayTwo.F= TRAYS(i).Inlet.F;
    1045 
    1046 "FeedTrayBottom Inlet Temperature"
    1047         FeedTrayTwo.T = TRAYS(i).Inlet.T;
    1048 
    1049 "FeedTrayBottom Inlet Pressure"
    1050         FeedTrayTwo.P = TRAYS(i).Inlet.P;
    1051 
    1052 "FeedTrayBottom Inlet Composition"
    1053         FeedTrayTwo.z = TRAYS(i).Inlet.z;
    1054 
    1055 "FeedTrayBottom Inlet Vapour Fraction"
    1056         FeedTrayTwo.v = TRAYS(i).Inlet.v;
    1057 
    1058 "FeedTrayBottom Inlet Enthalpy"
    1059         FeedTrayTwo.h = TRAYS(i).Inlet.h;
    1060 
    1061 else if   i equal FeedTrayLocation(3) then   
    1062 
    1063 "FeedTrayBottom Inlet Flow"     
    1064         FeedTrayThree.F= TRAYS(i).Inlet.F;
    1065 
    1066 "FeedTrayBottom Inlet Temperature"
    1067         FeedTrayThree.T = TRAYS(i).Inlet.T;
    1068 
    1069 "FeedTrayBottom Inlet Pressure"
    1070         FeedTrayThree.P = TRAYS(i).Inlet.P;
    1071 
    1072 "FeedTrayBottom Inlet Composition"
    1073         FeedTrayThree.z = TRAYS(i).Inlet.z;
    1074 
    1075 "FeedTrayBottom Inlet Vapour Fraction"
    1076         FeedTrayThree.v = TRAYS(i).Inlet.v;
    1077 
    1078 "FeedTrayBottom Inlet Enthalpy"
    1079         FeedTrayThree.h = TRAYS(i).Inlet.h;
    1080 
    1081 else
    1082 
    1083 "Inlet Tray - Flow Sealed"     
    1084         0*'mol/h'= TRAYS(i).Inlet.F;
    1085 
    1086 "Inlet Tray -  Temperature"
    1087         FeedTrayTwo.T = TRAYS(i).Inlet.T;
    1088 
    1089 "Inlet Tray -  Pressure"
    1090         FeedTrayTwo.P = TRAYS(i).Inlet.P;
    1091 
    1092 "Inlet Tray -  Composition"
    1093         FeedTrayTwo.z = TRAYS(i).Inlet.z;
    1094 
    1095 "Inlet Tray -  Vapour Fraction"
    1096         FeedTrayTwo.v = TRAYS(i).Inlet.v;
    1097 
    1098 "Inlet Tray -  Enthalpy"
    1099         FeedTrayTwo.h = TRAYS(i).Inlet.h;
    1100 
    1101 end
    1102 
    1103 end
    1104 
    1105 end
    1106 
    1107 end
    1108 
    1109 end
    1110 
    1111 
    1112 Model Distillation_kettle_cond  as Section_ColumnBasicX
     956end
     957
     958Model Distillation_kettle_cond  as ColumnBasic
    1113959
    1114960ATTRIBUTES
     
    1139985* (NoComps - 1) OutletLiquid (OR OutletVapour) compositions.
    1140986";
    1141        
    1142 PARAMETERS
    1143         CondenserVapourFlow             as Switcher     (Valid = ["on", "off"], Default = "on",Hidden=true);
    1144 
     987
     988SET
     989        NumberOfFeeds = 1;
     990       
    1145991VARIABLES
    1146         out     VapourDrawOff   as vapour_stream                (Brief="Vapour Outlet in the section", PosX=1, PosY=0.375,Protected = true);
    1147         out     LiquidDrawOff           as liquid_stream                        (Brief="Liquid Outlet in the section", PosX=1, PosY=0.42,Protected = true);
    1148 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    1149 # Column Devices
    1150 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     
     992
     993        out     TI_reb  as control_signal       (Brief="Temperature Indicator of Reboiler ",Protected = true, PosX=0.515, PosY=1);
     994        out     LI_reb  as control_signal       (Brief="Level Indicator of Reboiler", Protected = true, PosX=1, PosY=0.935);
     995        out     PI_reb  as control_signal       (Brief="Pressure Indicator of Reboiler", Protected = true, PosX=0.41, PosY=1);
     996       
     997        out     TI_cond         as control_signal       (Brief="Temperature Indicator of Condenser ", Protected = true, PosX=0.52, PosY=0);
     998        out     LI_cond         as control_signal       (Brief="Level Indicator of Condenser", Protected = true, PosX=1, PosY=0.084);
     999        out     PI_cond         as control_signal       (Brief="Pressure Indicator of Condenser", Protected = true, PosX=0.42, PosY=0);
     1000       
     1001        in      FeedTray        as stream               (Brief="Feed stream", PosX=0, PosY=0.55);
     1002
    11511003        CONDENSER               as condenser;
    11521004        REBOILER                as reboiler;
    11531005        SPLITTER                as splitter2;
    11541006        PUMP                    as pump;
    1155         alfaTopo                as Real;
    1156 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    1157 # Heat Ports
    1158 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    1159         in      HeatToReboiler  as power (Brief="Heat supplied to Reboiler",Protected = true, PosX=1, PosY=0.90);
    1160         in      HeatToCondenser as power (Brief="Heat supplied to Condenser", Protected = true, PosX=1, PosY=0.034);
    1161 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    1162 # Column Connectors
    1163 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     
    1164                 ConnectorHeatReboiler   as power        (Brief="Heat supplied to Reboiler", Hidden=true);
    1165                 ConnectorHeatCondenser  as power        (Brief="Heat supplied to Condenser", Hidden=true);
     1007
     1008        in      HeatToReboiler  as power (Brief="Heat supplied to Reboiler",Protected = true, PosX=1, PosY=0.855);
     1009        in      HeatToCondenser as power (Brief="Heat supplied to Condenser", Protected = true, PosX=1, PosY=0.01);
     1010
     1011
     1012        ConnectorHeatReboiler   as power        (Brief="Heat supplied to Reboiler", Hidden=true);
     1013        ConnectorHeatCondenser  as power        (Brief="Heat supplied to Condenser", Hidden=true);
     1014       
    11661015        in      ConnectorCondenserVout  as stream       (Brief="Connector for Vapour outlet stream From Condenser", Hidden=true);
    11671016        in      ConnectorReboilerLout   as stream       (Brief="Connector for Liquid outlet stream From Reboiler", Hidden=true);
    11681017        in      ConnectorSplitterOut    as stream       (Brief="Connector for Liquid outlet stream From Top Splitter", Hidden=true);
    1169 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    1170 # Column products
    1171 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     
    1172         out     VapourDistillate        as vapour_stream        (Brief="Vapour outlet stream From Condenser", PosX=0.66, PosY=0);
    1173         out     LiquidDistillate        as liquid_stream        (Brief="Liquid outlet stream From Top Splitter", PosX=1, PosY=0.20);
    1174         out     BottomProduct           as liquid_stream        (Brief="Liquid outlet stream From Reboiler", PosX=0.67, PosY=1);
     1018
     1019        out     VapourDistillate        as vapour_stream        (Brief="Vapour outlet stream From Condenser", PosX=0.615, PosY=0);
     1020        out     LiquidDistillate        as liquid_stream        (Brief="Liquid outlet stream From Top Splitter", PosX=1, PosY=0.235);
     1021        out     BottomProduct           as liquid_stream        (Brief="Liquid outlet stream From Reboiler", PosX=0.62, PosY=1);
    11751022
    11761023EQUATIONS
    11771024
    1178 switch CondenserVapourFlow
    1179 
    1180         case "on":
    1181                 CONDENSER.InletVapour.F*TRAYS(1).vV = alfaTopo *Ah * sqrt(2*(TRAYS(1).OutletVapour.P -
    1182                 CONDENSER.OutletLiquid.P + 1e-8 * 'atm') / (alfa*TRAYS(1).rhoV));
    1183                 when CONDENSER.InletVapour.F < 1e-6 * 'kmol/h' switchto "off";
    1184 
    1185         case "off":
    1186                 CONDENSER.InletVapour.F = 0 * 'mol/s';
    1187                 when TRAYS(1).OutletVapour.P > CONDENSER.OutletLiquid.P + 1e-1 * 'atm' switchto "on";
    1188 
    1189 end     
     1025        TI_reb  = REBOILER.TI ;
     1026        LI_reb  = REBOILER.LI;
     1027        PI_reb  = REBOILER.PI;
     1028       
     1029        TI_cond = CONDENSER.TI;
     1030        LI_cond = CONDENSER.LI;
     1031        PI_cond = CONDENSER.PI;
     1032       
     1033for i in 1:NumberOfTrays do
     1034
     1035if i equal FeedTrayLocation(1) then   
     1036
     1037"FeedTrayTop Inlet Flow"       
     1038        FeedTray.F= TRAYS(i).Inlet.F;
     1039
     1040"FeedTrayTop Inlet Temperature"
     1041        FeedTray.T = TRAYS(i).Inlet.T;
     1042
     1043"FeedTrayTop Inlet Pressure"
     1044        FeedTray.P = TRAYS(i).Inlet.P;
     1045
     1046"FeedTrayTop Inlet Composition"
     1047        FeedTray.z = TRAYS(i).Inlet.z;
     1048
     1049"FeedTrayTop Inlet Vapour Fraction"
     1050        FeedTray.v = TRAYS(i).Inlet.v;
     1051
     1052"FeedTrayTop Inlet Enthalpy"
     1053        FeedTray.h = TRAYS(i).Inlet.h;
     1054
     1055else
     1056
     1057"Inlet Tray - Flow Sealed"     
     1058        0*'mol/h'= TRAYS(i).Inlet.F;
     1059
     1060"Inlet Tray -  Temperature"
     1061        FeedTray.T = TRAYS(i).Inlet.T;
     1062
     1063"Inlet Tray -  Pressure"
     1064        FeedTray.P = TRAYS(i).Inlet.P;
     1065
     1066"Inlet Tray -  Composition"
     1067        FeedTray.z = TRAYS(i).Inlet.z;
     1068
     1069"Inlet Tray -  Vapour Fraction"
     1070        FeedTray.v = TRAYS(i).Inlet.v;
     1071
     1072"Inlet Tray -  Enthalpy"
     1073        FeedTray.h = TRAYS(i).Inlet.h;
     1074
     1075end
     1076
     1077end
    11901078
    11911079# Condenser Connector Equations
     
    12071095        ConnectorReboilerLout.z = BottomProduct.z;
    12081096
    1209         VapourDrawOff.F*VapSideTrayIndex= TRAYS.VapourSideStream.F;
    1210         VapourDrawOff.T = TRAYS(VapourSideStreamLocation).VapourSideStream.T;
    1211         VapourDrawOff.P = TRAYS(VapourSideStreamLocation).VapourSideStream.P;
    1212         VapourDrawOff.z = TRAYS(VapourSideStreamLocation).VapourSideStream.z;
    1213 
    1214         LiquidDrawOff.F*LiqSideTrayIndex= TRAYS.LiquidSideStream.F;
    1215         LiquidDrawOff.T = TRAYS(LiquidSideStreamLocation).LiquidSideStream.T;
    1216         LiquidDrawOff.P = TRAYS(LiquidSideStreamLocation).LiquidSideStream.P;
    1217         LiquidDrawOff.z = TRAYS(LiquidSideStreamLocation).LiquidSideStream.z;
    1218 
    1219         VapourDrawOffFlow = VapourDrawOff.F;
    1220         LiquidDrawOffFlow = LiquidDrawOff.F;
    1221 
    12221097        HeatToReboiler  = ConnectorHeatReboiler;
    12231098        HeatToCondenser = ConnectorHeatCondenser;
     
    12301105#liquid
    12311106        CONDENSER.OutletLiquid                          to      SPLITTER.Inlet;
    1232         SPLITTER.Outlet2                        to      PUMP.Inlet;
    1233         PUMP.Outlet                                     to      TRAYS(1).InletLiquid;
     1107        SPLITTER.Outlet2                                        to      PUMP.Inlet;
     1108        PUMP.Outlet                                             to      TRAYS(1).InletLiquid;
    12341109        TRAYS(NumberOfTrays).OutletLiquid       to      REBOILER.InletLiquid;
    12351110
    12361111#Connectors
    12371112        CONDENSER.OutletVapour  to ConnectorCondenserVout;
    1238         SPLITTER.Outlet1 to ConnectorSplitterOut;
     1113        SPLITTER.Outlet1                to ConnectorSplitterOut;
    12391114        REBOILER.OutletLiquid   to ConnectorReboilerLout;
    12401115
     
    12441119end
    12451120
     1121#*
    12461122Model Distillation_thermosyphon_subcooling      as Section_ColumnBasicX
    12471123        ATTRIBUTES
     
    27862662end
    27872663
     2664*#
Note: See TracChangeset for help on using the changeset viewer.