Changeset 787 for branches


Ignore:
Timestamp:
Jul 13, 2009, 4:27:33 PM (13 years ago)
Author:
gerson bicca
Message:

improved section column model (1,2,3 inputs)

File:
1 edited

Legend:

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

    r781 r787  
    8888end
    8989
    90 Model Section_ColumnBasic
     90Model Section_ColumnBasicX
    9191
    9292ATTRIBUTES
     
    382382
    383383
    384 Model Section_Column
     384Model SectionColumnBasic
    385385
    386386ATTRIBUTES
    387         Pallete         = true;
    388         Icon            = "icon/SectionColumn";
    389         Brief   = "Model of a column section.";
     387        Pallete         = false;
     388        Brief   = "Model of a basic column section.";
    390389        Info            =
    391 "== Model of a column section containing ==
    392 * NumberOfTrays TRAYS.
    393        
    394 == Specify ==
    395 * the feed stream of each tray (Inlet);
    396 * the Murphree eficiency for each tray Emv;
    397 * the InletLiquid stream of the top tray;
    398 * the InletVapour stream of the bottom tray.
    399        
    400 == Initial Conditions ==
    401 * the TRAYS temperature (OutletLiquid.T);
    402 * the TRAYS liquid level (Level) OR the TRAYS liquid flow (OutletLiquid.F);
    403 * (NoComps - 1) OutletLiquid (OR OutletVapour) compositions for each tray.
    404 ";
     390"Model of a basic column section containing a vetor of TRAYS numbered from the top-down.";
    405391
    406392PARAMETERS
    407         outer PP                                                        as Plugin                       (Brief="External Physical Properties", Type="PP");
    408         outer NComp                                             as Integer                      (Brief="Number of components");
     393        outer PP                as Plugin               (Brief="External Physical Properties", Type="PP");
     394        outer NComp     as Integer              (Brief="Number of components");
    409395#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    410396# Section Column Feed Tray - Side Streams  Location and Numbering
    411397#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     398        NumberOfFeeds                                           as Integer                      (Brief="Number of Feed Trays",Default=3,Protected=true);
     399        FeedTrayLocation(NumberOfFeeds)         as Integer                      (Brief="Feed tray Location",Default=2);
    412400        NumberOfTrays                                           as Integer                      (Brief="Number of trays", Default=8);
    413         FeedTrayIndex(NumberOfTrays)            as Integer                      (Brief="Feed Tray Index", Default=0,Hidden=true);
    414401        LiqSideTrayIndex(NumberOfTrays)         as Integer                      (Brief="Liquid Side Tray Index", Default=0,Hidden=true);
    415402        VapSideTrayIndex(NumberOfTrays)         as Integer                      (Brief="Vapour Side Tray Index", Default=0,Hidden=true);
    416         FeedTrayLocation                                        as Integer                      (Brief="Feed tray Location", Default=2);
     403
    417404        LiquidSideStreamLocation                        as Integer                      (Brief="Liquid Side Stream Location", Default=2);
    418405        VapourSideStreamLocation                        as Integer                      (Brief="Vapour Side Stream Location", Default=2);
     
    433420        WeirLength                      as length               (Brief="Weir length");
    434421        WeirHeight                      as length               (Brief="Weir height");
    435         FeeheryCoeff            as Real                 (Brief="Feeherys correlation coefficient", Unit='1/m^4', Default=1);
    436         ElgueCoeff                      as Real                 (Brief="Elgues correlation coefficient", Unit='kg/m/mol^2', Default=1);
    437         OlsenCoeff                      as Real                 (Brief="Olsens correlation coefficient", Default=1);
     422        FeeheryCoeff            as Real                 (Brief="Feeherys correlation coefficient", Unit='1/m^4', Default=1,Hidden=true);
     423        ElgueCoeff                      as Real                 (Brief="Elgues correlation coefficient", Unit='kg/m/mol^2', Default=1,Hidden=true);
     424        OlsenCoeff                      as Real                 (Brief="Olsens correlation coefficient", Default=1,Hidden=true);
    438425        TrayLiquidPasses        as Real                 (Brief="Number of liquid passes in the tray", Default=1);
    439426       
     
    450437        fw                              as Real                 (Brief="Olsens correlation coefficient", Default=1,Hidden=true);
    451438        Np                              as Real                 (Brief="Number of liquid passes in the tray", Default=1,Hidden=true);
    452        
     439
    453440        VapourFlow      as Switcher     (Valid = ["on", "off"], Default = "on",Hidden=true);
    454441        LiquidFlow      as Switcher     (Valid = ["on", "off"], Default = "on",Hidden=true);
    455442
    456443SET
    457         FeedTrayIndex(FeedTrayLocation) =1;
    458         VapSideTrayIndex(FeedTrayLocation) =1;
    459         LiqSideTrayIndex(FeedTrayLocation) =1;
     444        VapSideTrayIndex(VapourSideStreamLocation) =1;
     445        LiqSideTrayIndex(LiquidSideStreamLocation) =1;
    460446        Mw = PP.MolecularWeight();
    461447
     
    480466#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    481467        CONTROL as ControlSection (Brief = "Control");
    482         out     TCI as control_signal   (Brief="Temperature  Indicator", Protected = true, PosX=1, PosY=0.90);
    483         out     PCI as control_signal   (Brief="Pressure Indicator", Protected = true, PosX=1, PosY=0.80);
    484 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    485 # Section Inlet Liquid and Outlet Vapour Material Ports
    486 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    487         in      LiquidInlet             as      stream                  (Brief="Liquid Inlet in the section", PosX=0.70, PosY=0);
    488         out     VapourOutlet    as vapour_stream        (Brief="Vapour Outlet in the section", PosX=0.30, PosY=0);
    489        
    490         out     VapourDrawOff   as vapour_stream        (Brief="Vapour Draw Off Port in the section", PosX=1, PosY=0.35,Protected = true);
    491         out     LiquidDrawOff   as liquid_stream        (Brief="Liquid Draw Off Port in the section", PosX=1, PosY=0.65,Protected = true);
     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);
    492470#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    493471# Column Feed - Side Stream Flow and Murphree Efficiency
    494472#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++             
    495         in      FeedTray                                as stream               (Brief="Feed stream", PosX=0, PosY=0.55);
     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       
    496481                TRAYS(NumberOfTrays)    as tray                 (Brief="Number of trays in the Column Section");
    497                 VapourDrawOffFlow               as flow_mol     (Brief="Stream Molar Flow Rate");
    498                 LiquidDrawOffFlow               as flow_mol     (Brief="Stream Molar Flow Rate");
    499                 MurphreeEff                     as positive             (Brief="Murphree efficiency for All Trays");
     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
    500486#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    501487# Section Inlet Vapour and Outlet Liquid Material Ports
    502488#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    503         in      VapourInlet             as stream                       (Brief="Vapour Inlet in the section", PosX=0.30, PosY=1);
    504         out     LiquidOutlet    as liquid_stream        (Brief="Liquid Outlet in the section", PosX=0.70, PosY=1);
    505 
    506         LiquidConnector as stream       (Brief="Liquid connection in the middle TRAYS", PosX=0.75, PosY=1,Hidden=true);
    507         VapourConnector as stream       (Brief="Vapour connection in the middle TRAYS", PosX=0.55, PosY=0,Hidden=true);
    508 
     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);
    509494CONNECTIONS
    510495#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     
    513498        TRAYS([2:NumberOfTrays]).OutletVapour   to TRAYS([1:NumberOfTrays-1]).InletVapour;
    514499        TRAYS([1:NumberOfTrays-1]).OutletLiquid         to TRAYS([2:NumberOfTrays]).InletLiquid;
    515 
     500       
    516501#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    517502# Connecting Connectors
    518503#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    519         LiquidConnector to TRAYS(1).InletLiquid;
    520         VapourConnector to TRAYS(NumberOfTrays).InletVapour;
    521 
     504    LiquidConnector to TRAYS(1).InletLiquid;
     505    VapourConnector to TRAYS(NumberOfTrays).InletVapour;
     506       
    522507INITIAL
    523508#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     
    557542
    558543#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    559 # Equating Feed Tray Variables to Trays Variables
    560 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    561 "Feed Tray Inlet Flow" 
    562         FeedTray.F*FeedTrayIndex= TRAYS.Inlet.F;
    563 
    564 "Feed Tray Inlet Temperature"
    565         FeedTray.T = TRAYS.Inlet.T;
    566 
    567 "Feed Tray Inlet Pressure"
    568         FeedTray.P = TRAYS.Inlet.P;
    569 
    570 "Feed Tray Inlet Composition"
    571         FeedTray.z = TRAYS.Inlet.z;
    572 
    573 "Feed Tray Inlet Vapour Fraction"
    574         FeedTray.v = TRAYS.Inlet.v;
    575 
    576 "Feed Tray Inlet Enthalpy"
    577         FeedTray.h = TRAYS.Inlet.h;
    578 
     544# Equating Feed Trays Variables to Trays Variables
     545#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     546#*
     547for i in 1:NumberOfTrays do
     548
     549if   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
     569else 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
     589else
     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
     609end
     610
     611end
     612
     613end
     614*#
    579615#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    580616# Trays Equations
    581617#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     618
    582619for i in [1:NumberOfTrays] do
    583620
     
    761798end
    762799
    763 Model Distillation_kettle_cond  as Section_ColumnBasic
     800Model Section_Column    as SectionColumnBasic
     801
     802ATTRIBUTES
     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
     823PARAMETERS
     824        FeedTrayIndex(NumberOfTrays)            as Integer                      (Brief="Feed Tray Index", Default=0,Hidden=true);
     825
     826SET
     827        NumberOfFeeds = 1;
     828        FeedTrayIndex(FeedTrayLocation(1)) =1;
     829
     830VARIABLES
     831       
     832        in      FeedTray        as stream               (Brief="Feed stream", PosX=0, PosY=0.55);
     833
     834EQUATIONS
     835#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     836# Equating Feed Tray Variables to Trays Variables
     837#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     838"Feed Tray Inlet Flow" 
     839        FeedTray.F*FeedTrayIndex= TRAYS.Inlet.F;
     840
     841"Feed Tray Inlet Temperature"
     842        FeedTray.T = TRAYS.Inlet.T;
     843
     844"Feed Tray Inlet Pressure"
     845        FeedTray.P = TRAYS.Inlet.P;
     846
     847"Feed Tray Inlet Composition"
     848        FeedTray.z = TRAYS.Inlet.z;
     849
     850"Feed Tray Inlet Vapour Fraction"
     851        FeedTray.v = TRAYS.Inlet.v;
     852
     853"Feed Tray Inlet Enthalpy"
     854        FeedTray.h = TRAYS.Inlet.h;
     855
     856end
     857
     858Model Section_Column2   as SectionColumnBasic
     859
     860ATTRIBUTES
     861        Pallete         = true;
     862        Icon            = "icon/SectionColumn";
     863        Brief   = "Model of a column section.";
     864        Info            =
     865"== Model of a column section containing ==
     866* NumberOfTrays TRAYS.
     867* Two Feed Inlets.
     868       
     869== Specify ==
     870* the feed stream of each tray (Inlet);
     871* the Murphree eficiency for each tray Emv;
     872* the InletLiquid stream of the top tray;
     873* the InletVapour stream of the bottom tray.
     874       
     875== Initial Conditions ==
     876* the TRAYS temperature (OutletLiquid.T);
     877* the TRAYS liquid level (Level) OR the TRAYS liquid flow (OutletLiquid.F);
     878* (NoComps - 1) OutletLiquid (OR OutletVapour) compositions for each tray.
     879";
     880
     881SET
     882        NumberOfFeeds = 2;
     883
     884VARIABLES
     885       
     886        in      FeedTrayOne     as stream               (Brief="Feed stream", PosX=0, PosY=0.45);
     887        in      FeedTrayTwo     as stream               (Brief="Feed stream", PosX=0, PosY=0.65);
     888
     889EQUATIONS
     890
     891for i in 1:NumberOfTrays do
     892
     893if   i equal FeedTrayLocation(1) then   
     894
     895"FeedTrayTop Inlet Flow"       
     896        FeedTrayOne.F= TRAYS(i).Inlet.F;
     897
     898"FeedTrayTop Inlet Temperature"
     899        FeedTrayOne.T = TRAYS(i).Inlet.T;
     900
     901"FeedTrayTop Inlet Pressure"
     902        FeedTrayOne.P = TRAYS(i).Inlet.P;
     903
     904"FeedTrayTop Inlet Composition"
     905        FeedTrayOne.z = TRAYS(i).Inlet.z;
     906
     907"FeedTrayTop Inlet Vapour Fraction"
     908        FeedTrayOne.v = TRAYS(i).Inlet.v;
     909
     910"FeedTrayTop Inlet Enthalpy"
     911        FeedTrayOne.h = TRAYS(i).Inlet.h;
     912
     913else if   i equal FeedTrayLocation(2) then   
     914
     915"FeedTrayBottom Inlet Flow"     
     916        FeedTrayTwo.F= TRAYS(i).Inlet.F;
     917
     918"FeedTrayBottom Inlet Temperature"
     919        FeedTrayTwo.T = TRAYS(i).Inlet.T;
     920
     921"FeedTrayBottom Inlet Pressure"
     922        FeedTrayTwo.P = TRAYS(i).Inlet.P;
     923
     924"FeedTrayBottom Inlet Composition"
     925        FeedTrayTwo.z = TRAYS(i).Inlet.z;
     926
     927"FeedTrayBottom Inlet Vapour Fraction"
     928        FeedTrayTwo.v = TRAYS(i).Inlet.v;
     929
     930"FeedTrayBottom Inlet Enthalpy"
     931        FeedTrayTwo.h = TRAYS(i).Inlet.h;
     932
     933else
     934
     935"Inlet Tray - Flow Sealed"     
     936        0*'mol/h'= TRAYS(i).Inlet.F;
     937
     938"Inlet Tray -  Temperature"
     939        FeedTrayTwo.T = TRAYS(i).Inlet.T;
     940
     941"Inlet Tray -  Pressure"
     942        FeedTrayTwo.P = TRAYS(i).Inlet.P;
     943
     944"Inlet Tray -  Composition"
     945        FeedTrayTwo.z = TRAYS(i).Inlet.z;
     946
     947"Inlet Tray -  Vapour Fraction"
     948        FeedTrayTwo.v = TRAYS(i).Inlet.v;
     949
     950"Inlet Tray -  Enthalpy"
     951        FeedTrayTwo.h = TRAYS(i).Inlet.h;
     952
     953end
     954
     955end
     956
     957end
     958
     959end
     960
     961Model Section_Column3   as SectionColumnBasic
     962
     963ATTRIBUTES
     964        Pallete         = true;
     965        Icon            = "icon/SectionColumn";
     966        Brief   = "Model of a column section.";
     967        Info            =
     968"== Model of a column section containing ==
     969* NumberOfTrays TRAYS.
     970* Three Feed Inlets.
     971       
     972== Specify ==
     973* the feed stream of each tray (Inlet);
     974* the Murphree eficiency for each tray Emv;
     975* the InletLiquid stream of the top tray;
     976* the InletVapour stream of the bottom tray.
     977       
     978== Initial Conditions ==
     979* the TRAYS temperature (OutletLiquid.T);
     980* the TRAYS liquid level (Level) OR the TRAYS liquid flow (OutletLiquid.F);
     981* (NoComps - 1) OutletLiquid (OR OutletVapour) compositions for each tray.
     982";
     983
     984SET
     985        NumberOfFeeds = 3;
     986
     987VARIABLES
     988       
     989        in      FeedTrayOne     as stream               (Brief="Feed stream", PosX=0, PosY=0.45);
     990        in      FeedTrayTwo     as stream               (Brief="Feed stream", PosX=0, PosY=0.65);
     991        in      FeedTrayThree   as stream               (Brief="Feed stream", PosX=0, PosY=0.85);
     992
     993EQUATIONS
     994
     995for i in 1:NumberOfTrays do
     996
     997if   i equal FeedTrayLocation(1) then   
     998
     999"FeedTrayTop Inlet Flow"       
     1000        FeedTrayOne.F= TRAYS(i).Inlet.F;
     1001
     1002"FeedTrayTop Inlet Temperature"
     1003        FeedTrayOne.T = TRAYS(i).Inlet.T;
     1004
     1005"FeedTrayTop Inlet Pressure"
     1006        FeedTrayOne.P = TRAYS(i).Inlet.P;
     1007
     1008"FeedTrayTop Inlet Composition"
     1009        FeedTrayOne.z = TRAYS(i).Inlet.z;
     1010
     1011"FeedTrayTop Inlet Vapour Fraction"
     1012        FeedTrayOne.v = TRAYS(i).Inlet.v;
     1013
     1014"FeedTrayTop Inlet Enthalpy"
     1015        FeedTrayOne.h = TRAYS(i).Inlet.h;
     1016
     1017else if   i equal FeedTrayLocation(2) then   
     1018
     1019"FeedTrayBottom Inlet Flow"     
     1020        FeedTrayTwo.F= TRAYS(i).Inlet.F;
     1021
     1022"FeedTrayBottom Inlet Temperature"
     1023        FeedTrayTwo.T = TRAYS(i).Inlet.T;
     1024
     1025"FeedTrayBottom Inlet Pressure"
     1026        FeedTrayTwo.P = TRAYS(i).Inlet.P;
     1027
     1028"FeedTrayBottom Inlet Composition"
     1029        FeedTrayTwo.z = TRAYS(i).Inlet.z;
     1030
     1031"FeedTrayBottom Inlet Vapour Fraction"
     1032        FeedTrayTwo.v = TRAYS(i).Inlet.v;
     1033
     1034"FeedTrayBottom Inlet Enthalpy"
     1035        FeedTrayTwo.h = TRAYS(i).Inlet.h;
     1036
     1037else if   i equal FeedTrayLocation(3) then   
     1038
     1039"FeedTrayBottom Inlet Flow"     
     1040        FeedTrayThree.F= TRAYS(i).Inlet.F;
     1041
     1042"FeedTrayBottom Inlet Temperature"
     1043        FeedTrayThree.T = TRAYS(i).Inlet.T;
     1044
     1045"FeedTrayBottom Inlet Pressure"
     1046        FeedTrayThree.P = TRAYS(i).Inlet.P;
     1047
     1048"FeedTrayBottom Inlet Composition"
     1049        FeedTrayThree.z = TRAYS(i).Inlet.z;
     1050
     1051"FeedTrayBottom Inlet Vapour Fraction"
     1052        FeedTrayThree.v = TRAYS(i).Inlet.v;
     1053
     1054"FeedTrayBottom Inlet Enthalpy"
     1055        FeedTrayThree.h = TRAYS(i).Inlet.h;
     1056
     1057else
     1058
     1059"Inlet Tray - Flow Sealed"     
     1060        0*'mol/h'= TRAYS(i).Inlet.F;
     1061
     1062"Inlet Tray -  Temperature"
     1063        FeedTrayTwo.T = TRAYS(i).Inlet.T;
     1064
     1065"Inlet Tray -  Pressure"
     1066        FeedTrayTwo.P = TRAYS(i).Inlet.P;
     1067
     1068"Inlet Tray -  Composition"
     1069        FeedTrayTwo.z = TRAYS(i).Inlet.z;
     1070
     1071"Inlet Tray -  Vapour Fraction"
     1072        FeedTrayTwo.v = TRAYS(i).Inlet.v;
     1073
     1074"Inlet Tray -  Enthalpy"
     1075        FeedTrayTwo.h = TRAYS(i).Inlet.h;
     1076
     1077end
     1078
     1079end
     1080
     1081end
     1082
     1083end
     1084
     1085end
     1086
     1087Model Distillation_kettle_cond  as Section_ColumnBasicX
    7641088
    7651089ATTRIBUTES
     
    8951219end
    8961220
    897 Model Distillation_thermosyphon_subcooling      as Section_ColumnBasic
     1221Model Distillation_thermosyphon_subcooling      as Section_ColumnBasicX
    8981222        ATTRIBUTES
    8991223        Pallete         = true;
     
    10581382end
    10591383
    1060 Model Distillation_thermosyphon_cond as Section_ColumnBasic
     1384Model Distillation_thermosyphon_cond as Section_ColumnBasicX
    10611385        ATTRIBUTES
    10621386        Pallete         = true;
     
    12001524end
    12011525
    1202 Model Distillation_kettle_subcooling as Section_ColumnBasic
     1526Model Distillation_kettle_subcooling as Section_ColumnBasicX
    12031527
    12041528ATTRIBUTES
     
    13341658end
    13351659
    1336 Model Rectifier as Section_ColumnBasic
     1660Model Rectifier as Section_ColumnBasicX
    13371661
    13381662ATTRIBUTES
     
    14691793end
    14701794
    1471 Model Rectifier_subcooling as Section_ColumnBasic
     1795Model Rectifier_subcooling as Section_ColumnBasicX
    14721796
    14731797ATTRIBUTES
     
    16021926end
    16031927
    1604 Model Reboiled_Stripping_kettle as Section_ColumnBasic
     1928Model Reboiled_Stripping_kettle as Section_ColumnBasicX
    16051929       
    16061930ATTRIBUTES
     
    17062030end
    17072031
    1708 Model Reboiled_Stripping_thermosyphon as Section_ColumnBasic
     2032Model Reboiled_Stripping_thermosyphon as Section_ColumnBasicX
    17092033
    17102034ATTRIBUTES
Note: See TracChangeset for help on using the changeset viewer.