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/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
Note: See TracChangeset for help on using the changeset viewer.