Ignore:
Timestamp:
Jan 22, 2007, 5:57:16 PM (16 years ago)
Author:
Rafael de Pelegrini Soares
Message:

Updated some models for the new language proposal

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

Legend:

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

    r102 r125  
    4646Model Section_Column
    4747        PARAMETERS
    48 ext PP as CalcObject;
    49 ext NComp as Integer;
     48        outer PP as Plugin;
     49        outer NComp as Integer;
    5050        NTrays as Integer(Brief="Number of trays", Default=2);
    5151        topdown as Integer(Brief="Trays counting (1=top-down, -1=bottom-up)", Default=1);
     
    8686Model Distillation_kettle_cond
    8787        PARAMETERS
    88 ext PP as CalcObject;
    89 ext NComp as Integer;
     88        outer PP as Plugin;
     89        outer NComp as Integer;
    9090        NTrays as Integer(Brief="Number of trays", Default=2);
    9191        topdown as Integer(Brief="Trays counting (1=top-down, -1=bottom-up)", Default=1);
     
    157157Model Distillation_thermosyphon_subcooling
    158158        PARAMETERS
    159 ext PP as CalcObject;
    160 ext NComp as Integer;
     159        outer PP as Plugin;
     160        outer NComp as Integer;
    161161        NTrays as Integer(Brief="Number of trays", Default=2);
    162162        topdown as Integer(Brief="Trays counting (1=top-down, -1=bottom-up)", Default=1);
     
    233233Model Distillation_thermosyphon_cond
    234234        PARAMETERS
    235 ext PP as CalcObject;
    236 ext NComp as Integer;
     235        outer PP as Plugin;
     236        outer NComp as Integer;
    237237        NTrays as Integer(Brief="Number of trays", Default=2);
    238238        topdown as Integer(Brief="Trays counting (1=top-down, -1=bottom-up)", Default=1);
     
    305305Model Distillation_kettle_subcooling
    306306        PARAMETERS
    307 ext PP as CalcObject;
    308 ext NComp as Integer;
     307        outer PP as Plugin;
     308        outer NComp as Integer;
    309309        NTrays as Integer(Brief="Number of trays", Default=2);
    310310        topdown as Integer(Brief="Trays counting (1=top-down, -1=bottom-up)", Default=1);
     
    372372Model Rectifier
    373373        PARAMETERS
    374 ext PP as CalcObject;
    375 ext NComp as Integer;
     374        outer PP as Plugin;
     375        outer NComp as Integer;
    376376        NTrays as Integer(Brief="Number of trays", Default=2);
    377377        topdown as Integer(Brief="Trays counting (1=top-down, -1=bottom-up)", Default=1);
     
    428428Model Rectifier_subcooling
    429429        PARAMETERS
    430 ext PP as CalcObject;
    431 ext NComp as Integer;
     430        outer PP as Plugin;
     431        outer NComp as Integer;
    432432        NTrays as Integer(Brief="Number of trays", Default=2);
    433433        topdown as Integer(Brief="Trays counting (1=top-down, -1=bottom-up)", Default=1);
     
    483483Model Refluxed_Stripping
    484484        PARAMETERS
    485 ext PP as CalcObject;
    486 ext NComp as Integer;
     485        outer PP as Plugin;
     486        outer NComp as Integer;
    487487        NTrays as Integer(Brief="Number of trays", Default=2);
    488488        topdown as Integer(Brief="Trays counting (1=top-down, -1=bottom-up)", Default=1);
     
    539539Model Refluxed_Stripping_subcooling
    540540        PARAMETERS
    541 ext PP as CalcObject;
    542 ext NComp as Integer;
     541        outer PP as Plugin;
     542        outer NComp as Integer;
    543543        NTrays as Integer(Brief="Number of trays", Default=2);
    544544        topdown as Integer(Brief="Trays counting (1=top-down, -1=bottom-up)", Default=1);
     
    594594Model Refluxed_Absorption
    595595        PARAMETERS
    596 ext PP as CalcObject;
    597 ext NComp as Integer;
     596        outer PP as Plugin;
     597        outer NComp as Integer;
    598598        NTrays as Integer(Brief="Number of trays", Default=2);
    599599        topdown as Integer(Brief="Trays counting (1=top-down, -1=bottom-up)", Default=1);
     
    651651Model Refluxed_Absorption_subcooling
    652652        PARAMETERS
    653 ext PP as CalcObject;
    654 ext NComp as Integer;
     653        outer PP as Plugin;
     654        outer NComp as Integer;
    655655        NTrays as Integer(Brief="Number of trays", Default=2);
    656656        topdown as Integer(Brief="Trays counting (1=top-down, -1=bottom-up)", Default=1);
     
    706706Model Reboiled_Stripping_kettle
    707707        PARAMETERS
    708 ext PP as CalcObject;
    709 ext NComp as Integer;
     708        outer PP as Plugin;
     709        outer NComp as Integer;
    710710        NTrays as Integer(Brief="Number of trays", Default=2);
    711711        topdown as Integer(Brief="Trays counting (1=top-down, -1=bottom-up)", Default=1);
     
    762762Model Reboiled_Stripping_thermosyphon
    763763        PARAMETERS
    764 ext PP as CalcObject;
    765 ext NComp as Integer;
     764        outer PP as Plugin;
     765        outer NComp as Integer;
    766766        NTrays as Integer(Brief="Number of trays", Default=2);
    767767        topdown as Integer(Brief="Trays counting (1=top-down, -1=bottom-up)", Default=1);
     
    820820Model Reboiled_Absorption_kettle
    821821        PARAMETERS
    822 ext PP as CalcObject;
    823 ext NComp as Integer;
     822        outer PP as Plugin;
     823        outer NComp as Integer;
    824824        NTrays as Integer(Brief="Number of trays", Default=2);
    825825        topdown as Integer(Brief="Trays counting (1=top-down, -1=bottom-up)", Default=1);
     
    876876Model Reboiled_Absorption_thermosyphon
    877877        PARAMETERS
    878 ext PP as CalcObject;
    879 ext NComp as Integer;
     878        outer PP as Plugin;
     879        outer NComp as Integer;
    880880        NTrays as Integer(Brief="Number of trays", Default=2);
    881881        topdown as Integer(Brief="Trays counting (1=top-down, -1=bottom-up)", Default=1);
     
    930930Model ReactiveDistillation
    931931        PARAMETERS
    932 ext PP as CalcObject;
    933 ext NComp as Integer;
     932        outer PP as Plugin;
     933        outer NComp as Integer;
    934934        NTrays as Integer(Brief="Number of trays", Default=2);
    935935       
  • branches/newlanguage/eml/stage_separators/condenser.mso

    r72 r125  
    4343Model condenser
    4444        PARAMETERS
    45 ext PP as CalcObject;
    46 ext NComp as Integer;
     45        outer PP as Plugin;
     46        outer NComp as Integer;
    4747        V as volume (Brief="Condenser total volume");
    4848        Across as area (Brief="Cross Section Area of reboiler");
    4949
    5050        VARIABLES
    51 in      InletV as stream; #(Brief="Vapour inlet stream");
    52 out     OutletL as stream_therm; #(Brief="Liquid outlet stream");
    53 out     OutletV as stream_therm; #(Brief="Vapour outlet stream");
     51in      InletV as stream(Brief="Vapour inlet stream");
     52out     OutletL as liquid_stream(Brief="Liquid outlet stream");
     53out     OutletV as vapour_stream(Brief="Vapour outlet stream");
    5454in      Q as heat_rate (Brief="Heat supplied");
    5555
     
    101101        "Level of liquid phase"
    102102        Level = ML*vL/Across;
    103        
    104         "Vapourisation Fraction"
    105         OutletL.v = 0.0;
    106         OutletV.v = 1.0;
    107103end
    108104
     
    113109Model condenserSteady
    114110        PARAMETERS
    115 ext PP as CalcObject;
    116 ext NComp as Integer;
     111        outer PP as Plugin;
     112        outer NComp as Integer;
    117113
    118114        VARIABLES
    119 in      InletV as stream; #(Brief="Vapour inlet stream");
    120 out     OutletL as stream_therm; #(Brief="Liquid outlet stream");
     115in      InletV as stream(Brief="Vapour inlet stream");
     116out     OutletL as liquid_stream(Brief="Liquid outlet stream");
    121117in      Q as heat_rate (Brief="Heat supplied");
    122118        DP as press_delta (Brief="Pressure Drop in the condenser");
     
    142138Model condenserReact
    143139        PARAMETERS
    144 ext PP as CalcObject;
    145 ext NComp as Integer;
     140        outer PP as Plugin;
     141        outer NComp as Integer;
    146142        V as volume (Brief="Condenser total volume");
    147143        Across as area (Brief="Cross Section Area of reboiler");
     
    152148
    153149        VARIABLES
    154 in      InletV as stream;                       #(Brief="Vapour inlet stream");
    155 out     OutletL as stream_therm;        #(Brief="Liquid outlet stream");
    156 out     OutletV as stream_therm;        #(Brief="Vapour outlet stream");
     150in      InletV as stream(Brief="Vapour inlet stream");
     151out     OutletL as liquid_stream(Brief="Liquid outlet stream");
     152out     OutletV as vapour_stream(Brief="Vapour outlet stream");
    157153
    158154        M(NComp) as mol (Brief="Molar Holdup in the tray");
     
    208204        Level = ML*vL/Across;
    209205       
    210         "Vapourisation Fraction"
    211         OutletL.v = 0.0;
    212         OutletV.v = 1.0;
    213        
    214206        "Chemical Equilibrium"
    215207        PP.LiquidFugacityCoefficient(OutletL.T, OutletL.P, OutletL.z)*OutletL.z =
     
    217209
    218210        sum(OutletL.z)=sum(OutletV.z);
    219 
    220211end
  • branches/newlanguage/eml/stage_separators/reboiler.mso

    r72 r125  
    4848Model reboiler
    4949        PARAMETERS
    50 ext PP as CalcObject;
    51 ext NComp as Integer;
     50        outer PP as Plugin;
     51        outer NComp as Integer;
    5252        Across as area (Brief="Cross Section Area of reboiler");
    5353        V as volume (Brief="Total volume of reboiler");
    5454
    5555        VARIABLES
    56 in      Inlet as stream; # (Brief="Feed Stream");
    57 in      InletL as stream; # (Brief="Liquid inlet stream");
    58 out     OutletL as stream_therm; # (Brief="Liquid outlet stream");
    59 out     OutletV as stream_therm; # (Brief="Vapour outlet stream");
     56in      Inlet as stream(Brief="Feed Stream");
     57in      InletL as stream(Brief="Liquid inlet stream");
     58out     OutletL as liquid_stream(Brief="Liquid outlet stream");
     59out     OutletV as vapour_stream(Brief="Vapour outlet stream");
    6060in      Q as heat_rate (Brief="Heat supplied");
    6161
     
    112112        "Level of liquid phase"
    113113        Level = ML*vL/Across;
    114                
    115         "vaporization fraction"
    116         OutletV.v = 1.0;
    117         OutletL.v = 0.0;
    118114end
    119115
     
    123119Model reboilerSteady
    124120        PARAMETERS
    125 ext PP as CalcObject;
    126 ext NComp as Integer;
     121        outer PP as Plugin;
     122        outer NComp as Integer;
    127123        DP as press_delta (Brief="Pressure Drop in the reboiler");
    128124
    129125        VARIABLES
    130 in      InletL as stream; #(Brief="Liquid inlet stream");
    131 out     OutletV as stream_therm; #(Brief="Vapour outlet stream");
     126in      InletL as stream(Brief="Liquid inlet stream");
     127out     OutletV as vapour_stream(Brief="Vapour outlet stream");
    132128in      Q as heat_rate (Brief="Heat supplied");
    133129        vV as volume_mol (Brief="Vapour Molar volume");
     
    150146        "Pressure"
    151147        DP = InletL.P - OutletV.P;
    152 
    153         "Vapourisation Fraction"
    154         OutletV.v = 1.0;
    155148end
    156149
     
    162155Model reboilerSteady_fakeH
    163156        PARAMETERS
    164 ext PP as CalcObject;
    165 ext NComp as Integer;
     157        outer PP as Plugin;
     158        outer NComp as Integer;
    166159        DP as press_delta (Brief="Pressure Drop in the reboiler");
    167160        k as Real (Brief = "Flow Constant", Unit="mol/J");
    168161       
    169162        VARIABLES
    170 in      InletL as stream; #(Brief="Liquid inlet stream");
    171 out     OutletV as stream; #(Brief="Vapour outlet stream");
     163in      InletL as stream(Brief="Liquid inlet stream");
     164out     OutletV as stream(Brief="Vapour outlet stream");
    172165in      Q as heat_rate (Brief="Heat supplied");
    173166
     
    198191Model reboilerReact
    199192        PARAMETERS
    200 ext PP as CalcObject;
    201 ext NComp as Integer;
     193        outer PP as Plugin;
     194        outer NComp as Integer;
    202195        Across as area (Brief="Cross Section Area of reboiler");
    203196        V as volume (Brief="Total volume of reboiler");
     
    208201
    209202        VARIABLES
    210 in      Inlet as stream;                        #(Brief="Feed Stream");
    211 in      InletL as stream;                       #(Brief="Liquid inlet stream");
    212 out     OutletL as stream_therm;        #(Brief="Liquid outlet stream");
    213 out     OutletV as stream_therm;        #(Brief="Vapour outlet stream");
     203in      Inlet as stream(Brief="Feed Stream");
     204in      InletL as stream(Brief="Liquid inlet stream");
     205out     OutletL as liquid_stream(Brief="Liquid outlet stream");
     206out     OutletV as vapour_stream(Brief="Vapour outlet stream");
    214207
    215208        Q as heat_rate (Brief="Heat supplied");
     
    260253        Vol = ML*vL;
    261254       
    262         "vaporization fraction "
    263         OutletV.v = 1.0;
    264         OutletL.v = 0.0;
    265        
    266255        "Mechanical Equilibrium"
    267256        OutletL.P = OutletV.P;
     
    271260       
    272261        "Geometry Constraint"
    273         V = ML*vL + MV*vV;             
     262        V = ML*vL + MV*vV;
    274263
    275264        "Chemical Equilibrium"
  • branches/newlanguage/eml/stage_separators/tank.mso

    r72 r125  
    3939
    4040        PARAMETERS
    41 ext PP as CalcObject;
    42 ext NComp as Integer;
     41        outer PP as Plugin;
     42        outer NComp as Integer;
    4343        Across as area (Brief="Tank cross section area", Default=2);
    4444       
    4545        VARIABLES
    4646in      Inlet as stream;
    47 out     Outlet as stream_therm;
     47out     Outlet as liquid_stream;
    4848
    4949in      Q as heat_rate (Brief="Rate of heat supply");
     
    7474        "Level of liquid phase"
    7575        Level = sum(M)*vL/Across;
    76        
    77         "Vapourisation Fraction"
    78         Outlet.v = Inlet.v;
    7976end
    8077
     
    8784
    8885        PARAMETERS
    89 ext PP as CalcObject;
    90 ext NComp as Integer;
     86        outer PP as Plugin;
     87        outer NComp as Integer;
    9188        radius as length(Brief="Tank radius");
    9289        L as length(Brief="Tank length");
     
    9491        VARIABLES
    9592in      Inlet as stream;
    96 out     Outlet as stream_therm;
     93out     Outlet as liquid_stream;
    9794
    9895in      Q as heat_rate (Brief="Rate of heat supply");
     
    128125        "Level of liquid phase"
    129126        Level = sum(M)*vL/Across;
    130        
    131         "Vapourisation Fraction"
    132         Outlet.v = Inlet.v;
    133127end
    134128
     
    154148
    155149        PARAMETERS
    156 ext PP as CalcObject;
    157 ext NComp as Integer;
     150        outer PP as Plugin;
     151        outer NComp as Integer;
    158152        Across as area (Brief="Tank cross section area", Default=2);
    159153       
     
    161155in      Feed as stream;
    162156in      Inlet as stream;
    163 out     Outlet as stream_therm;
     157out     Outlet as liquid_stream;
    164158
    165159in      Q as heat_rate (Brief="Rate of heat supply");
     
    190184        "Level of liquid phase"
    191185        Level = sum(M)*vL/Across;
    192        
    193         "Vapourisation Fraction"
    194         Outlet.v = Inlet.v;
    195        
    196186end
Note: See TracChangeset for help on using the changeset viewer.