Ignore:
Timestamp:
Jan 30, 2007, 7:42:28 PM (16 years ago)
Author:
gerson bicca
Message:

testing with switcher in heat exchangers model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/newlanguage/sample/heat_exchangers/sampleEshell_LMTD.mso

    r100 r146  
    2929PARAMETERS
    3030
    31 PP              as CalcObject (Brief="Physical Properties",File="vrpp");
     31PP              as Plugin (Brief="Physical Properties",File="vrpp");
    3232NComp   as Integer;
    3333       
     
    3535DEVICES
    3636exchanger       as E_Shell_LMTD;
    37 streamhot       as streamTP;
    38 streamcold  as streamTP;
     37streamhot       as source;
     38streamcold  as source;
    3939
    4040SET
    4141
    42 PP.LiquidModel  = "PR";
    43 PP.VapourModel  = "PR";
     42PP.LiquidModel          = "PR";
     43PP.VapourModel          = "PR";
    4444PP.Components   = ["water","n-butane", "benzene", "n-octane" ];
    45 NComp                   = PP.NumberOfComponents;
     45NComp                           = PP.NumberOfComponents;
    4646
    47         exchanger.HE.LMTDcorrection     = "Bowmann";
    48 #       exchanger.HE.LMTDcorrection     = "Fakeri";
     47        exchanger.LMTDcorrection        = "Bowmann";
     48#       exchanger.LMTDcorrection        = "Fakeri";
    4949       
    5050
    5151CONNECTIONS
    5252
    53 streamhot       to exchanger.Inlet.Hot;
    54 streamcold      to exchanger.Inlet.Cold;
     53streamhot.Outlet        to exchanger.Inlet.Hot;
     54streamcold.Outlet       to exchanger.Inlet.Cold;
    5555       
    5656SPECIFY
     
    6161exchanger.PressureDrop.Cold.Pdrop   = 0.2*"kPa";
    6262
    63 streamhot.F             = 20    * "kmol/h";
    64 streamhot.T             = 450   * "K";
    65 streamhot.P             = 120   * "kPa";
    66 streamhot.z             = [1,0,0,0];
     63streamhot.Outlet.F              = 20    * "kmol/h";
     64streamhot.Outlet.T              = 450   * "K";
     65streamhot.Outlet.P              = 120   * "kPa";
     66streamhot.Outlet.z              = [1,0,0,0];
    6767
    68 streamcold.F            = 10 * "kmol/h";
    69 streamcold.P            = 120 * "kPa";
    70 streamcold.T            = 300 * "K";   
    71 streamcold.z            = [0,0.5, 0.1, 0.4];
     68streamcold.Outlet.F             = 10 * "kmol/h";
     69streamcold.Outlet.P             = 120 * "kPa";
     70streamcold.Outlet.T             = 300 * "K";   
     71streamcold.Outlet.z             = [0,0.5, 0.1, 0.4];
    7272
    7373exchanger.Outlet.Cold.T = 330*"K";
    7474       
    7575OPTIONS
    76  mode   = "steady";
     76
     77 Dynamic        = false;
     78
    7779 end
Note: See TracChangeset for help on using the changeset viewer.