Changes between Version 6 and Version 7 of CalcObject


Ignore:
Timestamp:
Jun 11, 2007, 2:39:32 PM (14 years ago)
Author:
Argimiro Resende Secchi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CalcObject

    v6 v7  
    1818{{{
    1919#!mso
    20 Model stream_therm as stream
    21    PARAMETERS
    22    outer PP as Plugin (Brief = "External Physical Properties", Type = "PP");
    23    
    24    EQUATIONS
    25    h = (1-v)*PP.LiquidEnthalpy(T, P, z) + v*PP.VapourEnthalpy(T, P, z);
     20Model streamPH as stream
     21        PARAMETERS
     22        outer PP as Plugin(Brief = "External Physical Properties", Type="PP");
     23       
     24        VARIABLES
     25        x(NComp) as fraction(Brief = "Liquid Molar Fraction");
     26        y(NComp) as fraction(Brief = "Vapour Molar Fraction");
     27       
     28        EQUATIONS
     29        "Flash Calculation"
     30        [v, x, y] = PP.FlashPH(P, h, z);
     31        "Enthalpy"
     32        h = (1-v)*PP.LiquidEnthalpy(T, P, x) + v*PP.VapourEnthalpy(T, P, y);
    2633end
    2734}}}