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/sampleNTU.mso

    r100 r144  
    2929PARAMETERS
    3030
    31 PP        as CalcObject (Brief="Physical Properties",File="vrpp");
    32 NComp as Integer;
     31PP               as Plugin (Brief="Physical Properties",File="vrpp");
     32NComp   as Integer;
    3333       
    3434DEVICES
    3535
    3636exchanger       as HeatExchanger_NTU;
    37 streamhot       as streamTP;
    38 streamcold  as streamTP;
     37streamhot       as source;
     38streamcold  as source;
     39
    3940
    4041SET
     
    4546NComp                           = PP.NumberOfComponents;
    4647
    47 exchanger.HE.FlowDirection = "Cocurrent";
     48exchanger.FlowDirection = "cocurrent";
    4849
    4950CONNECTIONS
    5051
    51 streamhot               to exchanger.Inlet.Hot;
    52 streamcold              to exchanger.Inlet.Cold;
     52streamhot.Outlet                to exchanger.Inlet.Hot;
     53streamcold.Outlet               to exchanger.Inlet.Cold;
     54
    5355       
    5456SPECIFY
     
    5961exchanger.PressureDrop.Cold.Pdrop   = 0.2*"kPa";
    6062
    61 streamhot.F             = 20    * "kmol/h";
    62 streamhot.T             = 450     * "K";
    63 streamhot.P             = 120    * "kPa";
    64 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];
    6567
    66 streamcold.F            = 10 * "kmol/h";
    67 streamcold.P            = 120 * "kPa";
    68 streamcold.T            = 300 * "K";   
    69 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];
    7072
    7173exchanger.Details.A = 20*"m^2";
     
    7375OPTIONS
    7476
    75  mode = "steady";
     77Dynamic = false;
    7678
    7779end
Note: See TracChangeset for help on using the changeset viewer.