Ignore:
Timestamp:
Nov 13, 2009, 5:04:29 PM (13 years ago)
Author:
gerson bicca
Message:

added more folders

File:
1 edited

Legend:

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

    r889 r890  
    2323
    2424Model stream
    25         ATTRIBUTES
     25
     26ATTRIBUTES
    2627        Pallete = false;
    2728        Brief = "General Material Stream";
     
    3132        from this model.";
    3233       
    33         PARAMETERS
     34PARAMETERS
    3435        outer NComp as Integer (Brief = "Number of chemical components", Lower = 1);
    3536
    36         VARIABLES
     37VARIABLES
    3738        F as flow_mol                   (Brief = "Stream Molar Flow Rate");
    3839        T as temperature                (Brief = "Stream Temperature");
     
    4445
    4546Model liquid_stream as stream
    46         ATTRIBUTES
     47
     48ATTRIBUTES
    4749        Pallete = false;
    4850        Brief = "Liquid Material Stream";
     
    5254        is known ''a priori''.";
    5355
    54         PARAMETERS
     56PARAMETERS
    5557        outer PP as Plugin(Brief = "External Physical Properties", Type="PP");
    5658       
    57         EQUATIONS
    58         "Liquid Enthalpy"
     59EQUATIONS
     60"Liquid Enthalpy"
    5961        h = PP.LiquidEnthalpy(T, P, z);
    60         "Liquid stream"
     62
     63"Liquid stream"
    6164        v = 0;
    6265end
    6366
    6467Model vapour_stream as stream
    65         ATTRIBUTES
     68
     69ATTRIBUTES
    6670        Pallete = false;
    6771        Brief = "Vapour Material Stream";
     
    7175        is known ''a priori''.";
    7276
    73         PARAMETERS
     77PARAMETERS
    7478        outer PP as Plugin(Brief = "External Physical Properties", Type="PP");
    7579       
    76         EQUATIONS
    77         "Vapour Enthalpy"
     80EQUATIONS
     81"Vapour Enthalpy"
    7882        h = PP.VapourEnthalpy(T, P, z);
    79         "Vapour stream"
     83
     84"Vapour stream"
    8085        v = 1;
    8186end
    8287
    83 Model streamPH as stream
    84         ATTRIBUTES
     88Model streamPH          as stream
     89
     90ATTRIBUTES
    8591        Brief = "Stream with built-in flash calculation";
    8692        Info = "
     
    97103        Pallete = false;
    98104       
    99         PARAMETERS
     105PARAMETERS
    100106        outer PP as Plugin(Brief = "External Physical Properties", Type="PP");
    101107       
    102         VARIABLES
     108VARIABLES
    103109        x(NComp) as fraction    (Brief = "Liquid Molar Fraction",Hidden=true);
    104110        y(NComp) as fraction    (Brief = "Vapour Molar Fraction",Hidden=true);
    105111
    106         EQUATIONS
    107         "Flash Calculation"
     112EQUATIONS
     113"Flash Calculation"
    108114        [v, x, y] = PP.FlashPH(P, h, z);
    109115       
    110         "Enthalpy"
     116"Enthalpy"
    111117        h = (1-v)*PP.LiquidEnthalpy(T, P, x) + v*PP.VapourEnthalpy(T, P, y);
    112118       
    113119end
    114120
    115 Model streamPHS as streamPH
    116         ATTRIBUTES
     121Model streamPHS         as streamPH
     122
     123ATTRIBUTES
    117124        Brief = "Stream with built-in flash calculation";
    118125        Info = "
Note: See TracChangeset for help on using the changeset viewer.