Ignore:
Timestamp:
Oct 23, 2006, 1:47:17 PM (16 years ago)
Author:
Paula Bettio Staudt
Message:

Fixed warning and error messages

File:
1 edited

Legend:

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

    r1 r37  
    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);
    4243
    4344        PARAMETERS
     
    6061                (1-Inlet.v)*PP.LiquidDensity((Inlet.T+Outlet.T)/2, (Inlet.P+Outlet.P)/2, Outlet.z);
    6162
     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
    6267        #if Inlet.P > Outlet.P then
    6368        #       "Flow"
    64                 Outlet.F = k*x*sqrt((Inlet.P - Outlet.P)*rho_ref / rho );
     69                Outlet.F * v = k*x*sqrt((Inlet.P - Outlet.P)*rho_ref / rho ) ;
    6570        #else
    6671        #       "Closed"
Note: See TracChangeset for help on using the changeset viewer.