Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • mso/eml/pressure_changers/valve.mso

    r37 r1  
    4040        x as fraction (Brief="Plug Position");
    4141        rho as dens_mass (Brief="Fluid Density", Default=1e3);
    42         v as vol_mol (Brief="Specific volume", Default=1e3);
    4342
    4443        PARAMETERS
     
    6160                (1-Inlet.v)*PP.LiquidDensity((Inlet.T+Outlet.T)/2, (Inlet.P+Outlet.P)/2, Outlet.z);
    6261
    63         "Volume"
    64         v = Inlet.v*PP.VapourVolume((Inlet.T+Outlet.T)/2, (Inlet.P+Outlet.P)/2, Outlet.z) +
    65                 (1-Inlet.v)*PP.LiquidVolume((Inlet.T+Outlet.T)/2, (Inlet.P+Outlet.P)/2, Outlet.z);
    66 
    6762        #if Inlet.P > Outlet.P then
    6863        #       "Flow"
    69                 Outlet.F * v = k*x*sqrt((Inlet.P - Outlet.P)*rho_ref / rho ) ;
     64                Outlet.F = k*x*sqrt((Inlet.P - Outlet.P)*rho_ref / rho );
    7065        #else
    7166        #       "Closed"
Note: See TracChangeset for help on using the changeset viewer.