Ignore:
Timestamp:
Jul 23, 2008, 7:54:46 PM (14 years ago)
Author:
gerson bicca
Message:

streamPHS created (new gui)

File:
1 edited

Legend:

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

    r555 r562  
    103103        x(NComp) as fraction    (Brief = "Liquid Molar Fraction",Hidden=true);
    104104        y(NComp) as fraction    (Brief = "Vapour Molar Fraction",Hidden=true);
    105         s as entr_mol                   (Brief = "Stream Entropy");
    106105
    107106        EQUATIONS
     
    113112                v*PP.VapourEnthalpy(T, P, y);
    114113       
    115         "Entropy"
    116         s = (1-v)*PP.LiquidEntropy(T, P, x) +
    117                 v*PP.VapourEntropy(T, P, y);
     114end
     115
     116Model streamPHS as streamPH
     117        ATTRIBUTES
     118        Brief = "Stream with built-in flash calculation";
     119        Info = "
     120        This model should be used when the vaporization fraction
     121        is unknown.
     122       
     123        The built-in flash calculation will determine the stream
     124        state as a function of the overall composition '''z''', the
     125        pressure '''P''' and the enthalpy '''h'''.
     126       
     127        Additionally, the liquid composition '''x''' and the vapor
     128        composition '''y''' are calculated.     
     129        ";
     130        Pallete = false;
     131       
     132PARAMETERS
     133        outer PP as Plugin(Brief = "External Physical Properties", Type="PP");
     134       
     135VARIABLES
     136        s as entr_mol   (Brief = "Stream Entropy");
     137
     138EQUATIONS
     139
     140"Entropy"
     141        s = (1-v)*PP.LiquidEntropy(T, P, x) +   v*PP.VapourEntropy(T, P, y);
     142       
    118143end
    119144
     
    385410        Pallete = true;
    386411        Icon = "icon/energy_source";
    387         Brief = "Enegry stream source";
     412        Brief = "Energy stream source";
    388413
    389414        VARIABLES
Note: See TracChangeset for help on using the changeset viewer.