Ignore:
Timestamp:
Mar 15, 2007, 4:40:55 PM (16 years ago)
Author:
Rafael de Pelegrini Soares
Message:

Adapted some samples to the new Plugin mechanism

Location:
branches/newlanguage/sample
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • branches/newlanguage/sample/pressure_changers/sample_compressor.mso

    r210 r213  
    3636       
    3737        PARAMETERS
    38         PP              as Plugin       (Brief="External Physical Properties", File="vrpp");
     38        PP              as Plugin       (Brief="External Physical Properties",
     39                Type="PP",
     40                Components = ["nitrogen", "oxygen"],
     41                LiquidModel = "IdealLiquid",
     42                VapourModel = "Ideal"
     43        );
    3944        NComp   as Integer              (Default= 1);
    4045       
    4146        SET
    42         PP.Components = ["nitrogen", "oxygen"];
    43         PP.LiquidModel = "IdealLiquid";
    44         PP.VapourModel = "Ideal";
    4547        NComp = PP.NumberOfComponents;
    46         PP.Derivatives = 0;
    4748
    4849        SPECIFY
     
    5455       
    5556        C1.Outlet.P = 3 * 'atm';
    56 end             
     57end
  • branches/newlanguage/sample/pressure_changers/sample_pump.mso

    r196 r213  
    3535       
    3636        PARAMETERS
    37         PP              as Plugin       (Brief="External Physical Properties", File="vrpp");
     37        PP              as Plugin       (Brief="External Physical Properties",
     38                Type="PP",
     39                Components = ["water", "benzene"],
     40                LiquidModel = "PR",
     41                VapourModel = "PR"
     42        );
    3843        Mw              as positive     (Brief = "Molar Mass", Unit = 'kg/kmol');
    3944        NComp   as Integer              (Default= 1);
    4045
    4146        SET
    42         PP.Components = ["water", "benzene"];   
    43         PP.LiquidModel = "PR";
    44         PP.VapourModel = "PR";
    4547        NComp = PP.NumberOfComponents;
    46         PP.Derivatives = 0;
    4748        P1.N = 1000                     * 'rpm';               
    4849        P1.Lev = 0                      * 'm';
     
    6566FlowSheet pump_Test
    6667        PARAMETERS
    67         PP      as Plugin(Brief="Physical Properties",File="vrpp");
     68        PP              as Plugin       (Brief="External Physical Properties",
     69                Type="PP",
     70                Components = ["water", "benzene"],
     71                LiquidModel = "PR",
     72                VapourModel = "PR"
     73        );
    6874        NComp   as Integer;
    6975
    7076        SET
    71         PP.Components = ["water", "benzene"];
    72         PP.LiquidModel = "PR";
    73         PP.VapourModel = "PR";
    7477        NComp = PP.NumberOfComponents;
    7578       
  • branches/newlanguage/sample/pressure_changers/sample_turbine.mso

    r210 r213  
    3636       
    3737        PARAMETERS
    38         PP              as Plugin               (Brief="External Physical Properties", File="vrpp");
     38        PP              as Plugin               (Brief="External Physical Properties",
     39                Type="PP",
     40                Components = ["water", "benzene"],
     41                LiquidModel = "PR",
     42                VapourModel = "PR"
     43        );
    3944        Mw              as positive     (Brief = "Molar Mass", Unit = 'kg/kmol');
    4045        NComp   as Integer              (Default= 1);
    4146       
    4247        SET
    43         PP.Components = ["water", "benzene"];   
    44         PP.LiquidModel = "PR";
    45         PP.VapourModel = "PR";
    46         PP.Derivatives = 0;
    47         NComp = PP.NumberOfComponents;
     48        NComp = PP.NumberOfComponents();
    4849       
    4950        SPECIFY
  • branches/newlanguage/sample/pressure_changers/sample_valve.mso

    r206 r213  
    2929# with vapour conditions
    3030        PARAMETERS
    31         PP      as Plugin(Brief="Physical Properties",File="vrpp");
     31        PP      as Plugin(Brief="Physical Properties",
     32                Type="PP",
     33                Components = [ "isobutane", "benzene"],
     34                LiquidModel = "PR",
     35                VapourModel = "PR"
     36        );
    3237        NComp   as Integer;
    3338
    3439        SET
    35         PP.Components = [ "isobutane", "benzene"];
    36         PP.LiquidModel = "PR";
    37         PP.VapourModel = "PR";
    3840        NComp = PP.NumberOfComponents;
    3941       
     
    6466#with liquid conditions
    6567        PARAMETERS
    66         PP      as Plugin(Brief="Physical Properties",File="vrpp");
     68        PP      as Plugin(Brief="Physical Properties",
     69                Type="PP",
     70                Components = [ "isobutane", "benzene"],
     71                LiquidModel = "PR",
     72                VapourModel = "PR"
     73        );
    6774        NComp   as Integer;
    6875
    6976        SET
    70         PP.Components = [ "isobutane", "benzene"];
    71         PP.LiquidModel = "PR";
    72         PP.VapourModel = "PR";
    7377        NComp = PP.NumberOfComponents;
    7478       
     
    106110       
    107111        PARAMETERS
    108         PP              as Plugin               (Brief="External Physical Properties", File="vrpp");
     112        PP      as Plugin(Brief="Physical Properties",
     113                Type="PP",
     114                Components = [ "isobutane", "benzene"],
     115                LiquidModel = "PR",
     116                VapourModel = "PR"
     117        );
    109118        NComp   as Integer              (Default= 1);
    110119       
    111120        SET
    112         PP.Components = ["water"];     
    113         PP.LiquidModel = "IdealLiquid";
    114         PP.VapourModel = "Ideal";
    115         PP.Derivatives = 0;
    116121        NComp = PP.NumberOfComponents;
    117122        V1.valve_type = "linear"; #"parabolic", "equal", "quick", "hyperbolic"
  • branches/newlanguage/sample/reactors/sample_cstr.mso

    r208 r213  
    2929
    3030PARAMETERS
    31         PP              as Plugin       (Brief="Physical Properties",File="vrpp");
     31        PP              as Plugin(Brief="Physical Properties",
     32                Type = "PP",
     33                Components  = ["1,2-propylene oxide", "methanol","water","1,2-propylene glycol" ],
     34                LiquidModel = "PR",
     35                VapourModel = "PR"
     36        );
    3237        NComp   as Integer;
    3338        R                       as Real         (Default=8.3145, Unit='J/mol/K');
     
    3843
    3944SET
    40 
    41         PP.Components   = ["1,2-propylene oxide", "methanol","water","1,2-propylene glycol" ];
    42         PP.LiquidModel  = "PR";
    43         PP.VapourModel  = "PR";
    44 
    4545        NComp                   = PP.NumberOfComponents;
    4646        Reac.NReac      = 1;
  • branches/newlanguage/sample/reactors/sample_pfr.mso

    r194 r213  
    3939PARAMETERS
    4040
    41         PP              as Plugin (Brief="Physical Properties",File="vrpp");
     41        PP              as Plugin (Brief="Physical Properties",
     42                Type = "PP",
     43                Components = ["acetone", "acetic anhydride", "methane" ],
     44                LiquidModel = "PR",
     45                VapourModel = "PR"
     46        );
    4247        NComp   as Integer;
    4348
     
    4853
    4954SET
    50 
    51         PP.Components   = ["acetone", "acetic anhydride", "methane" ];
    52         PP.LiquidModel  = "PR";
    53         PP.VapourModel  = "PR";
    54        
    5555        NComp = PP.NumberOfComponents;
    5656       
     
    105105        TimeStep        = 0.05;
    106106        TimeEnd         = 3;
    107         NLASolver       = "sundials";
    108107        #Dynamic = false;
    109108        #DAESolver = "dassl";
  • branches/newlanguage/sample/stage_separators/sample_batch_dist.mso

    r202 r213  
    2929       
    3030        PARAMETERS
    31         PP      as Plugin(Brief="Physical Properties",File="vrpp");
     31        PP      as Plugin(Brief="Physical Properties",
     32                Type="PP",
     33                Components = [ "isobutane", "benzene" ],
     34                LiquidModel = "PR",
     35                VapourModel = "PR"
     36        );
    3237        NComp   as Integer;
    3338
    3439        SET
    35         PP.Components = [ "isobutane", "benzene" ];
    36         PP.LiquidModel = "PR";
    37         PP.VapourModel = "PR";
    3840        NComp = PP.NumberOfComponents;
    3941       
  • branches/newlanguage/sample/stage_separators/sample_batch_dist_PID.mso

    r202 r213  
    2929       
    3030        PARAMETERS
    31         PP              as Plugin(Brief="Physical Properties",File="vrpp");
     31        PP              as Plugin(Brief="Physical Properties",
     32                Type="PP", Components = [ "isobutane", "benzene" ],
     33                LiquidModel = "PR", VapourModel = "PR");
    3234        NComp   as Integer;
    3335        P_max   as pressure(Brief="Maximum Pressure on distillator");
     
    3941
    4042        SET
    41         PP.Components = [ "isobutane", "benzene" ];
    42         PP.LiquidModel = "PR";
    43         PP.VapourModel = "PR";
    4443        NComp = PP.NumberOfComponents;
    4544       
  • branches/newlanguage/sample/stage_separators/sample_column.mso

    r208 r213  
    3232FlowSheet SectionColumn_Test_with2tray
    3333        PARAMETERS
    34         PP      as Plugin(Brief="Physical Properties",File="vrpp");
     34        PP      as Plugin(Brief="Physical Properties",
     35                Type="PP",
     36                Components = [ "isobutane", "benzene"],
     37                LiquidModel = "PR",
     38                VapourModel = "PR"
     39        );
    3540        NComp   as Integer;
    3641
    3742        SET
    38         PP.Components = [ "isobutane", "benzene"];
    39         PP.LiquidModel = "PR";
    40         PP.VapourModel = "PR";
    4143        NComp = PP.NumberOfComponents;
    4244       
     
    112114FlowSheet SectionColumn_Test_with8tray
    113115        PARAMETERS
    114         PP      as Plugin(Brief="Physical Properties",File="vrpp");
     116        PP      as Plugin(Brief="Physical Properties",
     117                Type="PP",
     118                Components = [ "isobutane", "benzene"],
     119                LiquidModel = "PR",
     120                VapourModel = "PR"
     121        );
    115122        NComp   as Integer;
    116123
    117124        SET
    118         PP.Components = [ "isobutane", "benzene"];
    119         PP.LiquidModel = "PR";
    120         PP.VapourModel = "PR";
    121         PP.Derivatives = 0;
    122125        NComp = PP.NumberOfComponents;
    123126       
     
    191194FlowSheet Distillation_kettle_cond_Test
    192195        PARAMETERS
    193         PP      as Plugin(Brief="Physical Properties",File="vrpp");
     196        PP      as Plugin(Brief="Physical Properties",
     197                Type="PP",
     198                Components = [ "isobutane", "benzene"],
     199                LiquidModel = "PR",
     200                VapourModel = "PR"
     201        );
    194202        NComp   as Integer;
    195203       
     
    199207       
    200208        SET
    201         PP.Components = [ "isobutane", "n-pentane", "propylene",
    202                 "benzene", "isobutene" ];
    203         PP.LiquidModel = "PR";
    204         PP.VapourModel = "PR";
    205         PP.Derivatives = 1;
    206209        NComp = PP.NumberOfComponents;
    207210
     
    283286FlowSheet Column_ctrl
    284287        PARAMETERS
    285         PP      as Plugin(Brief="Physical Properties",File="vrpp");
     288        PP      as Plugin(Brief="Physical Properties",
     289                Type="PP",
     290                Components = [ "isobutane", "n-pentane", "propylene",
     291                        "benzene", "isobutene" ],
     292                LiquidModel = "PR",
     293                VapourModel = "PR"
     294        );
    286295        NComp   as Integer;
    287296       
     
    313322
    314323        SET
    315         PP.Components = [ "isobutane", "n-pentane", "propylene",
    316                 "benzene", "isobutene" ];
    317         PP.LiquidModel = "PR";
    318         PP.VapourModel = "PR";
    319         PP.Derivatives = 1;
    320324        NComp = PP.NumberOfComponents;
    321325
  • branches/newlanguage/sample/stage_separators/sample_columnReact.mso

    r208 r213  
    2828FlowSheet Startup_ReactiveDistillation
    2929        PARAMETERS
    30         PP              as Plugin(Brief="Physical Properties",File="vrpp");
     30        PP              as Plugin(Brief="Physical Properties",
     31                Type="PP",
     32                Components = [ "acetic acid", "ethanol",  "ethyl acetate", "water"],
     33                LiquidModel = "UNIFAC",
     34                VapourModel = "Ideal",
     35                Derivatives = 1
     36        );
    3137        NComp   as Integer;
    3238       
    3339        SET
    34         PP.Components = [ "acetic acid", "ethanol",  "ethyl acetate", "water"];
    35         PP.LiquidModel = "UNIFAC";
    36         PP.VapourModel = "Ideal";
    37         PP.Derivatives = 1;
    3840        NComp = PP.NumberOfComponents;
    3941       
  • branches/newlanguage/sample/stage_separators/sample_condenser.mso

    r208 r213  
    2929FlowSheet condenser_Test
    3030        PARAMETERS
    31         PP      as Plugin(Brief="Physical Properties",File="vrpp");
     31        PP      as Plugin(Brief="Physical Properties",
     32                Type="PP",
     33                Components = [ "isobutane", "benzene"],
     34                LiquidModel = "PR",
     35                VapourModel = "PR"
     36        );
    3237        NComp   as Integer;
    3338
     
    3641       
    3742        SET
    38         PP.Components = [ "isobutane", "benzene"];
    39         PP.LiquidModel = "PR";
    40         PP.VapourModel = "PR";
    4143        NComp = PP.NumberOfComponents;
    4244       
     
    7981FlowSheet condenserSteady_Test
    8082        PARAMETERS
    81         PP      as Plugin(Brief="Physical Properties",File="vrpp");
     83        PP      as Plugin(Brief="Physical Properties",
     84                Type="PP",
     85                Components = [ "isobutane", "benzene"],
     86                LiquidModel = "PR",
     87                VapourModel = "PR"
     88        );
    8289        NComp   as Integer;
    8390
     
    8693       
    8794        SET
    88         PP.Components = [ "isobutane", "benzene"];
    89         PP.LiquidModel = "PR";
    90         PP.VapourModel = "PR";
    9195        NComp = PP.NumberOfComponents;
    9296       
  • branches/newlanguage/sample/stage_separators/sample_flash.mso

    r176 r213  
    2828FlowSheet flash_Test
    2929        PARAMETERS
    30         PP as Plugin(Brief="Physical Properties", File="vrpp");
     30        PP as Plugin(Brief="Physical Properties",
     31                Type="PP",
     32                Components = ["1,3-butadiene", "isobutene", "n-pentane",
     33                        "1-pentene", "1-hexene", "benzene"],
     34                LiquidModel = "PR",
     35                VapourModel = "PR"
     36        );
    3137        NComp as Integer;
    3238
     
    3541       
    3642        SET
    37         PP.Components = ["1,3-butadiene", "isobutene", "n-pentane", "1-pentene", "1-hexene", "benzene"];
    38         PP.LiquidModel = "PR";
    39         PP.VapourModel = "PR";
    4043        NComp = PP.NumberOfComponents;
    4144       
     
    8790FlowSheet flashSteady_Test
    8891        PARAMETERS
    89         PP as Plugin(Brief="Physical Properties", File="vrpp");
     92        PP as Plugin(Brief="Physical Properties",
     93                Type="PP",
     94                Components = ["1,3-butadiene", "isobutene", "n-pentane",
     95                        "1-pentene", "1-hexene", "benzene"],
     96                LiquidModel = "PR",
     97                VapourModel = "PR"
     98        );
    9099        NComp as Integer;
    91100
     
    94103       
    95104        SET
    96         PP.Components = ["1,3-butadiene", "isobutene", "n-pentane", "1-pentene", "1-hexene", "benzene"];
    97         PP.LiquidModel = "PR";
    98         PP.VapourModel = "PR";
    99105        NComp = PP.NumberOfComponents;
    100106       
  • branches/newlanguage/sample/stage_separators/sample_flashPH.mso

    r208 r213  
    2727FlowSheet FlashPHTest
    2828        PARAMETERS
    29         PP      as Plugin(Brief="Physical Properties",File="vrpp");
     29        PP      as Plugin(Brief="Physical Properties",
     30                Type="PP",
     31                Components = ["methane", "isobutene", "benzene"],
     32                LiquidModel = "IdealLiquid",
     33                VapourModel = "Ideal"
     34        );
    3035        NComp   as Integer;
    3136
     
    3439       
    3540        SET
    36         PP.Components = ["methane", "isobutene", "benzene"];
    37         PP.LiquidModel = "IdealLiquid";
    38         PP.VapourModel = "Ideal";
    3941        NComp = PP.NumberOfComponents;
    4042       
  • branches/newlanguage/sample/stage_separators/sample_reboiler.mso

    r208 r213  
    2727FlowSheet reboiler_Test
    2828        PARAMETERS
    29         PP      as Plugin(Brief="Physical Properties",File="vrpp");
     29        PP      as Plugin(Brief="Physical Properties",
     30                Type="PP",
     31                Components = [ "isobutane", "benzene"],
     32                LiquidModel = "PR",
     33                VapourModel = "PR"
     34        );
    3035        NComp   as Integer;
    3136
     
    3439
    3540        SET
    36         PP.Components = [ "isobutane", "benzene"];
    37         PP.LiquidModel = "PR";
    38         PP.VapourModel = "PR";
    3941        NComp = PP.NumberOfComponents;
    4042       
     
    8587FlowSheet reboilerSteady_Test
    8688        PARAMETERS
    87         PP      as Plugin(Brief="Physical Properties",File="vrpp");
     89        PP      as Plugin(Brief="Physical Properties",
     90                Type="PP",
     91                Components = [ "isobutane", "benzene"],
     92                LiquidModel = "PR",
     93                VapourModel = "PR"
     94        );
    8895        NComp   as Integer;
    8996
     
    9299
    93100        SET
    94         PP.Components = [ "isobutane", "benzene"];
    95         PP.LiquidModel = "PR";
    96         PP.VapourModel = "PR";
    97101        NComp = PP.NumberOfComponents;
    98102       
  • branches/newlanguage/sample/stage_separators/sample_tank.mso

    r174 r213  
    2727FlowSheet tank_Test
    2828        PARAMETERS
    29         PP      as Plugin(Brief="Physical Properties",File="vrpp");
     29        PP      as Plugin(Brief="Physical Properties",
     30                Type="PP",
     31                Components = ["methane", "isobutane", "benzene"],
     32                LiquidModel = "PR",
     33                VapourModel = "PR"
     34        );
    3035        NComp   as Integer;
    3136        SET
    32         PP.Components = ["methane", "isobutane", "benzene"];
    33         PP.LiquidModel = "PR";
    34         PP.VapourModel = "PR";
    3537        NComp = PP.NumberOfComponents;
    3638       
     
    7274FlowSheet tank_cylindrical_Test
    7375        PARAMETERS
    74         PP      as Plugin(Brief="Physical Properties",File="vrpp");
     76        PP      as Plugin(Brief="Physical Properties",
     77                Type="PP",
     78                Components = ["methane", "isobutane", "benzene"],
     79                LiquidModel = "PR",
     80                VapourModel = "PR"
     81        );
    7582        NComp   as Integer;
    7683        SET
    77         PP.Components = ["methane", "isobutane", "benzene"];
    78         PP.LiquidModel = "PR";
    79         PP.VapourModel = "PR";
    8084        NComp = PP.NumberOfComponents;
    8185
  • branches/newlanguage/sample/stage_separators/sample_tray.mso

    r208 r213  
    2727FlowSheet tray_Test
    2828        PARAMETERS
    29         PP      as Plugin(Brief="Physical Properties",File="vrpp");
     29        PP      as Plugin(Brief="Physical Properties",
     30                Type="PP",
     31                Components = [ "n-pentane", "benzene"],
     32                LiquidModel = "PR",
     33                VapourModel = "PR"
     34        );
    3035        NComp   as Integer;
    3136
    3237        SET
    33         PP.Components = [ "n-pentane", "benzene"];
    34         PP.LiquidModel = "PR";
    35         PP.VapourModel = "PR";
    3638        NComp = PP.NumberOfComponents;
    3739       
Note: See TracChangeset for help on using the changeset viewer.