Ignore:
Timestamp:
Jan 29, 2007, 1:50:41 PM (17 years ago)
Author:
gerson bicca
Message:

updated models for the new language

Location:
branches/newlanguage/sample/heat_exchangers
Files:
2 edited

Legend:

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

    r110 r139  
    2727
    2828FlowSheet Double_Pipe
     29
     30PARAMETERS
     31
     32        PP                      as Plugin (File="vrpp");
     33        NComp           as Integer;
    2934       
    3035DEVICES
    3136
    3237        exchanger       as DoublePipe_LMTD;
    33         streamhot       as streamTP;
    34         streamcold      as streamTP;
     38        streamhot       as source;
     39        streamcold      as source;
    3540
    3641CONNECTIONS
    3742
    38         streamhot       to exchanger.Inlet.Hot;
    39         streamcold      to exchanger.Inlet.Cold;
     43        streamhot.Outlet        to exchanger.Inlet.Hot;
     44        streamcold.Outlet       to exchanger.Inlet.Cold;
    4045       
    41 PARAMETERS
    42 
    43         PP                      as CalcObject (File="vrpp");
    44         NComp           as Integer;
    45 
    4646SET
    4747
     
    4949PP.VapourModel          = "PR";
    5050PP.Components           = ["n-hexane","water"];
    51 NComp                           = PP.NumberOfComponents;
     51NComp                               = PP.NumberOfComponents;
    5252
    5353#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     
    7373#               Hot Stream
    7474#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    75         streamhot.F = 10                        * "kmol/h";
    76         streamhot.T = (68+273.15)   * "K";
    77         streamhot.P = 5.4                       * "bar";
    78         streamhot.z = [1,0];
     75        streamhot.Outlet.F = 10                         * "kmol/h";
     76        streamhot.Outlet.T = (68+273.15)   * "K";
     77        streamhot.Outlet.P = 5.4                        * "bar";
     78        streamhot.Outlet.z = [1,0];
    7979       
    8080#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    8181#       Cold Stream
    8282#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    83         streamcold.F = 5                        * "kmol/h";
    84         streamcold.P = 5.1              * "bar";
    85         streamcold.T = (23+273.15)      * "K";
    86     streamcold.z = [0,1];
     83        streamcold.Outlet.F = 5                         * "kmol/h";
     84        streamcold.Outlet.P = 5.1               * "bar";
     85        streamcold.Outlet.T = (23+273.15)       * "K";
     86    streamcold.Outlet.z = [0,1];
    8787#=====================================================================
    8888#       Fouling
     
    9393OPTIONS
    9494
    95 mode = "steady";
     95Dynamic = false;
    9696
    9797end
  • branches/newlanguage/sample/heat_exchangers/Sample_DoublePipe_Series.mso

    r100 r139  
    88DEVICES
    99
    10         Pipe(2)         as DoublePipe_LMTD;
    11         streamhot       as streamTP;
    12         streamcold      as streamTP;
     10        Pipe(2)                 as DoublePipe_LMTD;
     11        streamhot       as source;
     12        streamcold      as source;
    1313
    1414CONNECTIONS
    1515
    16         streamhot                       to Pipe(1).Inlet.Hot;
     16        streamhotOutlet.        to Pipe(1).Inlet.Hot;
    1717        Pipe(1).Outlet.Hot      to Pipe(2).Inlet.Hot;
    1818       
    19         streamcold                      to Pipe(1).Inlet.Cold;
    20         Pipe(1).Outlet.Cold to Pipe(2).Inlet.Cold;
     19        streamcoldOutlet.       to Pipe(1).Inlet.Cold;
     20        Pipe(1).Outlet.Cold   to Pipe(2).Inlet.Cold;
    2121       
    2222PARAMETERS
     
    5555#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    5656
    57         streamhot.F = 100               * "kmol/h";
    58         streamhot.T = (70+273.15)   * "K";
    59         streamhot.P = 5                         * "bar";
    60         streamhot.z = [1,0];
     57        streamhot.Outlet.F = 100                * "kmol/h";
     58        streamhot.Outlet.T = (70+273.15)   * "K";
     59        streamhot.Outlet.P = 5                  * "bar";
     60        streamhot.Outlet.z = [1,0];
    6161       
    6262#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     
    6464#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    6565
    66         streamcold.F = 5                        * "kmol/h";
    67         streamcold.P = 5                * "bar";
    68         streamcold.T = (25+273.15)      * "K";
    69     streamcold.z = [0,1];
     66        streamcold.Outlet.F = 5                         * "kmol/h";
     67        streamcold.Outlet.P = 5                 * "bar";
     68        streamcold.Outlet.T = (25+273.15)       * "K";
     69    streamcold.Outlet.z = [0,1];
    7070#=====================================================================
    7171#       Fouling
     
    7575       
    7676OPTIONS
    77 mode            = "steady";
     77
     78Dynamic = false;
    7879
    7980end
Note: See TracChangeset for help on using the changeset viewer.