Ignore:
Timestamp:
Mar 16, 2007, 10:01:23 PM (17 years ago)
Author:
Rafael de Pelegrini Soares
Message:

Updated templates for the new language

Location:
branches/newlanguage/template
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • branches/newlanguage/template/flowsheet.mso

    r33 r219  
    2727         *#
    2828        PARAMETERS
    29         PP      as CalcObject(Brief="Physical Properties", File="vrpp");
     29        PP      as Plugin(Brief="Physical Properties",
     30                Type="PP",
     31                Components = ["1,3-butadiene", "isobutene", "n-pentane", "1-pentene"],
     32                LiquidModel = "PR",
     33                VapourModel = "PR"
     34        );
    3035        NComp   as Integer;
    3136        SET
    32         PP.Components = ["1,3-butadiene", "isobutene", "n-pentane", "1-pentene"];
    33         PP.LiquidModel = "PR";
    34         PP.VapourModel = "PR";
    3537        NComp = PP.NumberOfComponents;
    3638       
     
    4143         *#
    4244        DEVICES
    43         STR101   as stream_therm;
     45        STR101   as source;
    4446        FLASH101 as flash;
     47        Q101     as heat_rate;
    4548
    4649        #*
     
    4952         *#
    5053        CONNECTIONS
    51         STR101     to   FLASH101.Inlet;
     54        STR101.Outlet     to   FLASH101.Inlet;
     55        Q101              to   FLASH101.Q;
    5256
    5357        #*
     
    5559         *#
    5660        SPECIFY
    57         STR101.F = 496.3 * "kmol/h";
    58         STR101.T = 338 * "K";
    59         STR101.P = 507.1 * "kPa";
    60         STR101.v = 0.1380;
    61         STR101.z = [0.2379, 0.3082, 0.09959, 0.35431];
     61        STR101.Outlet.F = 496.3 * 'kmol/h';
     62        STR101.Outlet.T = 338 * 'K';
     63        STR101.Outlet.P = 507.1 * 'kPa';
     64        STR101.Outlet.z = [0.2379, 0.3082, 0.09959, 0.35431];
    6265
    63         FLASH101.OutletV.F = 68.5 * "kmol/h";
    64         FLASH101.OutletL.F = 400*sqrt(FLASH101.Level) * "kmol/h";
    65         FLASH101.Q = 1 * "kJ/h";
     66        FLASH101.OutletV.F = 68.5 * 'kmol/h';
     67        FLASH101.OutletL.F = 400*sqrt(FLASH101.Level/'m') * 'kmol/h';
     68        FLASH101.Q = 1 * 'kJ/h';
    6669       
    6770        #*
     
    7073         *#
    7174        SET
    72         FLASH101.V = 2000 * "m^3";
    73         FLASH101.Across = 1 * "m^2";     
     75        FLASH101.V = 2000 * 'm^3';
     76        FLASH101.Across = 1 * 'm^2';     
    7477         
    7578        #*
     
    7881         *#
    7982        INITIAL
    80         FLASH101.OutletL.T = 330 *"K";
    81         FLASH101.Level = 1 * "m";
     83        FLASH101.OutletL.T = 330 *'K';
     84        FLASH101.Level = 1 * 'm';
    8285        FLASH101.OutletL.z(1) = 0.1;
    8386        FLASH101.OutletL.z(2) = 0.1;
Note: See TracChangeset for help on using the changeset viewer.