Changeset 101 for mso/eml


Ignore:
Timestamp:
Jan 9, 2007, 1:59:59 PM (17 years ago)
Author:
Rafael de Pelegrini Soares
Message:

Updated flashPH model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mso/eml/stage_separators/flashPH.mso

    r97 r101  
    4848in      Q as heat_rate (Brief="Rate of heat supply");
    4949        vfrac as fraction(Brief="Real vaporization fraction");
    50         vsat as Real(Lower=-1, Upper=2, Brief="Vaporization fraction if saturated");
     50        vsat as Real(Lower=-5, Upper=5, Brief="Vaporization fraction if saturated");
    5151        Tsat as temperature(Lower=173, Upper=473, Brief="Temperature if saturated");
    5252        xsat(NComp) as Real(Lower=-5, Upper=5, Brief="Liquid composition if saturated");
     
    5858        EQUATIONS
    5959        "Chemical equilibrium"
    60         PP.LiquidFugacityCoefficient(Tsat, OutletL.P, OutletL.z)*xsat =
    61                 PP.VapourFugacityCoefficient(Tsat, OutletV.P, OutletV.z)*ysat;
     60        PP.LiquidFugacityCoefficient(Tsat, OutletL.P, xsat)*xsat =
     61                PP.VapourFugacityCoefficient(Tsat, OutletV.P, ysat)*ysat;
    6262
    6363        "Global Molar Balance"
     
    7171        "Energy Balance if saturated"
    7272        Inlet.F*Inlet.h  + Q =
    73                 Inlet.F*(1-vsat)*PP.LiquidEnthalpy(Tsat, OutletL.P, OutletL.z) +
    74                 Inlet.F*vsat*PP.VapourEnthalpy(Tsat, OutletV.P, OutletV.z);
     73                Inlet.F*(1-vsat)*PP.LiquidEnthalpy(Tsat, OutletL.P, xsat) +
     74                Inlet.F*vsat*PP.VapourEnthalpy(Tsat, OutletV.P, ysat);
    7575
    7676        "Real Energy Balance"
Note: See TracChangeset for help on using the changeset viewer.