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

Updated some models for the new language proposal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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"
Note: See TracChangeset for help on using the changeset viewer.