Ignore:
Timestamp:
Jan 15, 2007, 4:43:56 PM (16 years ago)
Author:
Rafael de Pelegrini Soares
Message:

Updated streams and flash models to the new language being proposed

File:
1 edited

Legend:

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

    r72 r117  
    4141Model flash
    4242        PARAMETERS
    43 ext PP as CalcObject;
    44 ext NComp as Integer;
     43        outer PP as Plugin(Brief = "External Physical Properties");
     44        outer NComp as Integer (Brief = "Number of chemical components", Lower = 1);
    4545        V as volume(Brief="Total Volume of the flash");
    4646        Mw(NComp) as molweight;
     
    5151       
    5252        VARIABLES
    53 in      Inlet as stream; #(Brief="Feed Stream");
    54 out     OutletL as stream_therm; #(Brief="Liquid outlet stream");
    55 out     OutletV as stream_therm; #(Brief="Vapour outlet stream");
    56 in      Q as heat_rate (Brief="Rate of heat supply");
     53        in      Inlet as stream(Brief="Feed Stream");
     54        out     OutletL as liquid_stream(Brief="Liquid outlet stream");
     55        out     OutletV as vapour_stream(Brief="Vapour outlet stream");
     56        in      Q as heat_rate (Brief="Rate of heat supply");
    5757
    5858        M(NComp) as mol (Brief="Molar Holdup in the tray");
     
    101101        "Liquid Level"
    102102        ML* vL = Across * Level;
    103        
    104         "vaporization fraction "
    105         OutletV.v = 1.0;
    106         "vaporization fraction "
    107         OutletL.v = 0.0;
    108 
    109103end
    110104
     
    112106* Model of a  Steady State flash
    113107*---------------------------------------------------------------------*#
    114 Model flash_Steady
     108Model flash_steady
    115109        PARAMETERS
    116 ext PP as CalcObject;
    117 ext NComp as Integer;
     110        outer PP as Plugin(Brief = "External Physical Properties");
    118111       
    119112        VARIABLES
    120 in      Inlet as stream; #(Brief="Feed Stream");
    121 out     OutletL as stream_therm; #(Brief="Liquid outlet stream");
    122 out     OutletV as stream_therm; #(Brief="Vapour outlet stream");
    123 in      Q as heat_rate (Brief="Rate of heat supply");
     113        in      Inlet as stream(Brief="Feed Stream");
     114        out     OutletL as liquid_stream(Brief="Liquid outlet stream");
     115        out     OutletV as vapour_stream(Brief="Vapour outlet stream");
     116        in      Q as heat_rate (Brief="Rate of heat supply");
    124117        vfrac as fraction;
    125118
     
    130123        "Global Molar Balance"
    131124        Inlet.F = OutletV.F + OutletL.F;
     125        "Vaporisation Fraction"
    132126        OutletV.F = Inlet.F * vfrac;
    133                
     127       
    134128        "Energy Balance"
    135129        Inlet.F*Inlet.h  + Q = OutletL.F*OutletL.h + OutletV.F*OutletV.h;
     
    140134        "Mechanical Equilibrium"
    141135        OutletV.P = OutletL.P;
    142        
    143         "vaporization fraction "
    144         OutletV.v = 1.0;
    145         "vaporization fraction "
    146         OutletL.v = 0.0;
    147136end
    148 
Note: See TracChangeset for help on using the changeset viewer.