Ignore:
Timestamp:
Jan 30, 2007, 4:01:53 PM (16 years ago)
Author:
gerson bicca
Message:

testing some modifications for the new language

File:
1 edited

Legend:

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

    r100 r144  
    2929PARAMETERS
    3030
    31 PP               as CalcObject (Brief="Physical Properties",File="vrpp");
     31PP               as Plugin (Brief="Physical Properties",File="vrpp");
    3232NComp   as Integer;
    3333       
     34DEVICES
    3435
    35        
    36 DEVICES
    3736exchanger       as HeatExchanger_LMTD;
    38 streamhot       as streamTP;
    39 streamcold  as streamTP;
     37streamhot       as source;
     38streamcold  as source;
     39
    4040SET
    4141
     
    4343PP.VapourModel          = "PR";
    4444PP.Components           = ["water","n-butane", "benzene", "n-octane" ];
    45 NComp                           = PP.NumberOfComponents;
    46 exchanger.HE.FlowDirection    = "Cocurrent";   
     45NComp                                   = PP.NumberOfComponents;
     46
     47exchanger.FlowDirection    = "cocurrent";
     48
    4749CONNECTIONS
    4850
    49 streamhot       to exchanger.Inlet.Hot;
    50 streamcold      to exchanger.Inlet.Cold;
    51        
     51streamhot.Outlet                to exchanger.Inlet.Hot;
     52streamcold.Outlet               to exchanger.Inlet.Cold;
     53
    5254SPECIFY
    5355
    5456"LMTD Correction Factor"
    55         exchanger.Fc = 1;
     57        exchanger.Fc = 0.8;
    5658       
    5759"Overall Heat Transfer Coefficient"     
     
    6264exchanger.PressureDrop.Cold.Pdrop   = 0.2*"kPa";
    6365
    64 streamhot.F             = 20    * "kmol/h";
    65 streamhot.T             = 450     * "K";
    66 streamhot.P             = 120    * "kPa";
    67 streamhot.z             = [1,0,0,0];
     66streamhot.Outlet.F              = 20    * "kmol/h";
     67streamhot.Outlet.T              = 400     * "K";
     68streamhot.Outlet.P              = 120    * "kPa";
     69streamhot.Outlet.z              = [1,0,0,0];
    6870
    69 streamcold.F            = 10 * "kmol/h";
    70 streamcold.P            = 120 * "kPa";
    71 streamcold.T            = 300 * "K";   
    72 streamcold.z            = [0,0.5, 0.1, 0.4];
     71streamcold.Outlet.F             = 5 * "kmol/h";
     72streamcold.Outlet.P             = 120 * "kPa";
     73streamcold.Outlet.T             = 300 * "K";   
     74streamcold.Outlet.z             = [0,0.5, 0.1, 0.4];
    7375
    74 exchanger.Outlet.Cold.T = 340*"K";
     76exchanger.Outlet.Cold.T = 305*"K";
    7577       
    7678OPTIONS
    77  mode                     = "steady";
     79
     80Dynamic           = false;
     81
    7882 end
Note: See TracChangeset for help on using the changeset viewer.