Ignore:
Timestamp:
Jan 19, 2007, 12:03:14 PM (16 years ago)
Author:
Rafael de Pelegrini Soares
Message:

More stream and flash updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/newlanguage/eml/streams.mso

    r117 r123  
    2626        Pallete = false;
    2727        Brief = "General Material Stream";
    28         Documentation =
     28        Info =
    2929        "This is the basic building block for the EML models.
    3030        Every model should have input and output streams derived
     
    4747        Pallete = false;
    4848        Brief = "Liquid Material Stream";
    49         Documentation =
     49        Info =
    5050        "Model for liquid material streams.
    5151        This model should be used only when the phase of the stream
     
    6666        Pallete = false;
    6767        Brief = "Vapour Material Stream";
    68         Documentation =
     68        Info =
    6969        "Model for vapour material streams.
    7070        This model should be used only when the phase of the stream
     
    8383Model source
    8484        ATTRIBUTES
    85         Documentation =
     85        Info =
    8686        "Material stream source.
    8787        This model should be used for boundary streams.
     
    9797        x(NComp) as fraction(Brief = "Liquid Molar Fraction");
    9898        y(NComp) as fraction(Brief = "Vapour Molar Fraction");
     99        hl as enth_mol;
     100        hv as enth_mol;
    99101       
    100102        EQUATIONS
     
    104106        Outlet.h = (1-Outlet.v)*PP.LiquidEnthalpy(Outlet.T, Outlet.P, x) +
    105107                Outlet.v*PP.VapourEnthalpy(Outlet.T, Outlet.P, y);
     108       
     109        hl = PP.LiquidEnthalpy(Outlet.T, Outlet.P, x);
     110        hv = PP.VapourEnthalpy(Outlet.T, Outlet.P, y);
     111end
     112
     113Model sink2
     114        VARIABLES
     115        in Inlet as stream;
    106116end
    107117
    108118Model sink
    109119        ATTRIBUTES
    110         Documentation =
     120        Info =
    111121        "Material stream sink.
    112122        This model should be used for boundary streams.";
     
    124134        EQUATIONS
    125135        "Flash Calculation"
    126         [v, x, y] = PP.PHFlash(Inlet.P, Inlet.h, Inlet.z);
     136        [v, x, y] = PP.FlashPH(Inlet.P, Inlet.h, Inlet.z);
    127137end
Note: See TracChangeset for help on using the changeset viewer.