Changeset 145 for branches/newlanguage


Ignore:
Timestamp:
Jan 30, 2007, 4:20:00 PM (17 years ago)
Author:
Rafael de Pelegrini Soares
Message:

Updated switcher sample again

Location:
branches/newlanguage
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/newlanguage/eml/heat_exchangers/HEX_Engine.mso

    r135 r145  
    8686VARIABLES
    8787# Must be streamPH
    88 Hot     as liquid_stream (Brief="Outlet Hot Stream");
    89 Cold    as liquid_stream (Brief="Outlet Cold Stream");
     88Hot     as streamPH (Brief="Outlet Hot Stream");
     89Cold    as streamPH (Brief="Outlet Cold Stream");
    9090
    9191end
  • branches/newlanguage/eml/heat_exchangers/HeatExchangerSimplified.mso

    r144 r145  
    366366VARIABLES
    367367
    368 Eft       as positive (Brief="Effectiveness",Default=0.05,Lower=1e-8);
     368Eft       as positive (Brief="Effectiveness",Default=0.05,Lower=1e-8, Upper=1);
    369369
    370370EQUATIONS       
  • branches/newlanguage/sample/heat_exchangers/Sample_Simplified.mso

    r144 r145  
    3030
    3131        exchanger       as HeatExchanger_LMTD;
    32         streamhot       as stream_therm;
    33         streamcold      as stream_therm;
     32        streamhot       as source;
     33        streamcold      as source;
    3434
    3535CONNECTIONS
    3636
    37         streamhot       to exchanger.Inlet.Hot;
    38         streamcold      to exchanger.Inlet.Cold;
     37        streamhot.Outlet        to exchanger.Inlet.Hot;
     38        streamcold.Outlet       to exchanger.Inlet.Cold;
    3939       
    4040PARAMETERS
    41         PP                      as CalcObject   (File="vrpp");
     41        PP                      as Plugin       (File="vrpp");
    4242        NComp           as Integer;
    4343SET
     
    4848        NComp                           = PP.NumberOfComponents;
    4949       
    50 #       exchanger.HE.FlowDirection      = "Cocurrent";
    51         exchanger.HE.FlowDirection      = "Counter";
     50#       exchanger.FlowDirection      = "cocurrent";
     51        exchanger.FlowDirection      = "counter";
    5252
    5353SPECIFY
     
    6060        exchanger.Fc                                    = 1;
    6161       
    62         streamhot.F                                     = 1000    * "kmol/h";
    63         streamhot.T                                     = 450     * "K";
    64         streamhot.v                                     = 1;
    65         streamhot.P                                     = 1.5     * "atm";
    66         streamhot.z                                     = [1];
     62        streamhot.Outlet.F                                      = 1000    * "kmol/h";
     63        streamhot.Outlet.T                                      = 450     * "K";
     64        #streamhot.Outlet.v                                     = 1;
     65        streamhot.Outlet.P                                      = 1.5     * "atm";
     66        streamhot.Outlet.z                                      = [1];
    6767
    68         streamcold.F                                    = 500   * "kmol/h";
    69         streamcold.P                                    = 1     * "atm";
    70         streamcold.T                                    = 350   * "K";
    71         streamcold.v                                    = 0;
    72     streamcold.z                                        = [1];
     68        streamcold.Outlet.F                                     = 500   * "kmol/h";
     69        streamcold.Outlet.P                                     = 1     * "atm";
     70        streamcold.Outlet.T                                     = 315   * "K";
     71        #streamcold.Outlet.v                                    = 0;
     72    streamcold.Outlet.z                                         = [1];
    7373       
    7474OPTIONS
    75  mode                     = "steady";
    76  relativeAccuracy = 1e-6;
     75 Dynamic                          = false;
     76 RelativeAccuracy = 1e-6;
    7777
    7878end
     
    119119        streamcold.Outlet .F                                    = 500   * "kmol/h";
    120120        streamcold.Outlet .P                                    = 1     * "atm";
    121         streamcold.Outlet .T                                    = 350   * "K";
     121        streamcold.Outlet .T                                    = 315   * "K";
    122122#streamcold.v                                   = 0;
    123123    streamcold.Outlet .z                                        = [1];
  • branches/newlanguage/sample/miscellaneous/sample_switcher.mso

    r142 r145  
    5757       
    5858        OPTIONS
    59         TimeStep = 0.01;
     59        TimeStep = 0.05;
    6060        TimeEnd = 10;
    6161end
Note: See TracChangeset for help on using the changeset viewer.