Changeset 209


Ignore:
Timestamp:
Mar 15, 2007, 8:29:10 AM (16 years ago)
Author:
Rafael de Pelegrini Soares
Message:

Updated models to include Type attribute for Plugins

Location:
branches/newlanguage
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/newlanguage/eml/stage_separators/condenser.mso

    r208 r209  
    4343Model condenser
    4444        PARAMETERS
    45         outer PP as Plugin;
     45        outer PP as Plugin(Type="PP");
    4646        outer NComp as Integer;
    4747        V as volume (Brief="Condenser total volume");
     
    135135Model condenserReact
    136136        PARAMETERS
    137         outer PP as Plugin;
     137        outer PP as Plugin(Type="PP");
    138138        outer NComp as Integer;
    139139        V as volume (Brief="Condenser total volume");
  • branches/newlanguage/eml/stage_separators/flashPH.mso

    r208 r209  
    3838Model FlashPHSteady
    3939        PARAMETERS
    40 outer PP as Plugin;
     40outer PP as Plugin(Type="PP");
    4141outer NComp as Integer;
    4242        B as Real(Default=1000, Brief="Regularization Factor");
  • branches/newlanguage/eml/stage_separators/reboiler.mso

    r200 r209  
    4848Model reboiler
    4949        PARAMETERS
    50         outer PP as Plugin;
     50        outer PP as Plugin(Type="PP");
    5151        outer NComp as Integer;
    5252        Across as area (Brief="Cross Section Area of reboiler");
     
    119119Model reboilerSteady
    120120        PARAMETERS
    121         outer PP as Plugin;
     121        outer PP as Plugin(Type="PP");
    122122        outer NComp as Integer;
    123123        DP as press_delta (Brief="Pressure Drop in the reboiler");
     
    155155Model reboilerSteady_fakeH
    156156        PARAMETERS
    157         outer PP as Plugin;
     157        outer PP as Plugin(Type="PP");
    158158        outer NComp as Integer;
    159159        DP as press_delta (Brief="Pressure Drop in the reboiler");
     
    191191Model reboilerReact
    192192        PARAMETERS
    193         outer PP as Plugin;
     193        outer PP as Plugin(Type="PP");
    194194        outer NComp as Integer;
    195195        Across as area (Brief="Cross Section Area of reboiler");
  • branches/newlanguage/eml/stage_separators/tank.mso

    r183 r209  
    3939
    4040        PARAMETERS
    41         outer PP as Plugin;
     41        outer PP as Plugin(Type="PP");
    4242        outer NComp as Integer;
    4343        Across as area (Brief="Tank cross section area", Default=2);
     
    8484
    8585        PARAMETERS
    86         outer PP as Plugin;
     86        outer PP as Plugin(Type="PP");
    8787        outer NComp as Integer;
    8888        radius as length(Brief="Tank radius");
     
    148148
    149149        PARAMETERS
    150         outer PP as Plugin;
     150        outer PP as Plugin(Type="PP");
    151151        outer NComp as Integer;
    152152        Across as area (Brief="Tank cross section area", Default=2);
  • branches/newlanguage/eml/stage_separators/tray.mso

    r200 r209  
    5656
    5757        PARAMETERS
    58         outer PP as Plugin;
     58        outer PP as Plugin(Type="PP");
    5959        outer NComp as Integer;
    6060        V as volume(Brief="Total Volume of the tray");
     
    145145        if Level > (beta * hw) then
    146146                "Francis Equation"
    147                 OutletL.F = 1.84*"m^0.5/s"*lw*((Level-(beta*hw))/(beta))^2/vL;
     147                OutletL.F = 1.84*'1/s'*lw*((Level-(beta*hw))/(beta))^2/vL;
    148148        else
    149149                "Low level"
    150                 OutletL.F = 0 * "mol/h";
     150                OutletL.F = 0 * 'mol/h';
    151151        end
    152152
     
    159159
    160160        PARAMETERS
    161         outer PP as Plugin;
     161        outer PP as Plugin(Type="PP");
    162162        outer NComp as Integer;
    163163        V as volume(Brief="Total Volume of the tray");
  • branches/newlanguage/sample/stage_separators/sample_stream.mso

    r202 r209  
    2828FlowSheet stream_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", "1-pentene", "1-hexene", "benzene"],
     33                LiquidModel = "PR",
     34                VapourModel = "PR"
     35        );
    3136        NComp as Integer;
    3237
    3338        SET
    34         PP.Components = ["1,3-butadiene", "isobutene", "n-pentane", "1-pentene", "1-hexene", "benzene"];
    35         PP.LiquidModel = "PR";
    36         PP.VapourModel = "PR";
    3739        NComp = PP.NumberOfComponents;
    3840       
Note: See TracChangeset for help on using the changeset viewer.