Ignore:
Timestamp:
Jan 22, 2007, 5:57:16 PM (15 years ago)
Author:
Rafael de Pelegrini Soares
Message:

Updated some models for the new language proposal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/newlanguage/sample/stage_separators/sample_column.mso

    r112 r125  
    3232FlowSheet SectionColumn_Test_with2tray
    3333        PARAMETERS
    34         PP      as CalcObject(Brief="Physical Properties",File="vrpp");
     34        PP      as Plugin(Brief="Physical Properties",File="vrpp");
    3535        NComp   as Integer;
    3636
     
    4343        DEVICES
    4444        sec as Section_Column;
    45         feed as stream_therm;
    46         reb as stream_therm;
    47         cond as stream_therm;
     45        feed as liquid_stream;
     46        reb as vapour_stream;
     47        cond as liquid_stream;
    4848        zero as stream;
    4949       
     
    5959        feed.P = 168.3 * "kPa";
    6060        feed.z = [0.5, 0.5];
    61         feed.v = 0;
    6261
    6362        zero.F = 0 * "kmol/h";
     
    7170        cond.P = 150 * "kPa";
    7271        cond.T = 281.75 * "K";
    73         cond.v = 0.0;
    7472        cond.z = [0.6664, 0.3336];
    7573
     
    7876        reb.T = 328.12 * "K";
    7977        reb.z = [0.001848, 0.9982];
    80         reb.v = 1.0;
    8178       
    8279        sec.trays.Emv = 1;
     
    10299        #relativeAccuracy = 1e-3;
    103100        NLASolver = "sundials";
    104         time = [0:10:1000];
     101        TimeStep = 10;
     102        TimeEnd = 1000;
    105103       
    106104# After running few seconds of transient the steady-state
     
    114112FlowSheet SectionColumn_Test_with8tray
    115113        PARAMETERS
    116         PP      as CalcObject(Brief="Physical Properties",File="vrpp");
     114        PP      as Plugin(Brief="Physical Properties",File="vrpp");
    117115        NComp   as Integer;
    118116
     
    126124        DEVICES
    127125        sec as Section_Column;
    128         feed as stream_therm;
    129         reb as stream_therm;
    130         cond as stream_therm;
     126        feed as liquid_stream;
     127        reb as vapour_stream;
     128        cond as liquid_stream;
    131129        zero as stream;
    132130       
     
    145143        feed.P = 168.3 * "kPa";
    146144        feed.z = [0.5, 0.5];
    147         feed.v = 0;
    148145
    149146        zero.F = 0 * "kmol/h";
     
    157154        cond.P = 150 * "kPa";
    158155        cond.T = 281.75 * "K";
    159         cond.v = 0.0;
    160156        cond.z = [0.6664, 0.3336];
    161157
     
    164160        reb.T = 328.12 * "K";
    165161        reb.z = [0.001848, 0.9982];
    166         reb.v = 1.0;
    167162       
    168163        sec.trays.Emv = 1;
     
    186181       
    187182        OPTIONS
    188         relativeAccuracy = 1e-5;
    189         time = [0:1:100];
     183        RelativeAccuracy = 1e-5;
     184        TimeStep = 1;
     185        TimeEnd = 100;
    190186        #guessFile="SectionColumn_Test_with8tray.rlt";
    191187        #mode = "steady";
     
    195191FlowSheet Distillation_kettle_cond_Test
    196192        PARAMETERS
    197         PP      as CalcObject(Brief="Physical Properties",File="vrpp");
     193        PP      as Plugin(Brief="Physical Properties",File="vrpp");
    198194        NComp   as Integer;
    199195       
     
    212208        DEVICES
    213209        col as Distillation_kettle_cond;
    214         feed as streamTP;
     210        feed as source;
    215211        zero as stream;
    216212       
     
    224220       
    225221        SPECIFY
    226         feed.F = 113.4 * "kmol/h";
    227         feed.T = 291 * "K";
    228         feed.P = 168.3 * "kPa";
    229         feed.z = 1/NComp;
     222        feed.Outlet.F = 113.4 * "kmol/h";
     223        feed.Outlet.T = 291 * "K";
     224        feed.Outlet.P = 168.3 * "kPa";
     225        feed.Outlet.z = 1/NComp;
    230226       
    231227        zero.F = 0 * "kmol/h";
     
    277273
    278274        OPTIONS
    279         relativeAccuracy = 1e-3;
    280         time = [0:0.01:1, 2:50];
     275        RelativeAccuracy = 1e-3;
     276        TimeStep = 0.01;
     277        TimeEnd = 50;
     278        #time = [0:0.01:1, 2:50];
    281279        #guessFile="Distillation_kettle_cond_Test.rlt";
    282280        #mode = "steady";       
     
    285283FlowSheet Column_ctrl
    286284        PARAMETERS
    287         PP      as CalcObject(Brief="Physical Properties",File="vrpp");
     285        PP      as Plugin(Brief="Physical Properties",File="vrpp");
    288286        NComp   as Integer;
    289287       
     
    324322        DEVICES
    325323        col as Distillation_kettle_cond;
    326         feed as streamTP;
     324        feed as source;
    327325        zero as stream;
    328326        TCcond as PIDIncr_Ideal_AW;
     
    421419
    422420        SPECIFY
    423         feed.F = 113.4 * "kmol/h";
    424         feed.T = 291 * "K";
    425         feed.P = 168.3 * "kPa";
    426         feed.z = 1/NComp;
     421        feed.Outlet.F = 113.4 * "kmol/h";
     422        feed.Outlet.T = 291 * "K";
     423        feed.Outlet.P = 168.3 * "kPa";
     424        feed.Outlet.z = 1/NComp;
    427425       
    428426        zero.F = 0 * "kmol/h";
     
    486484
    487485        OPTIONS
    488         relativeAccuracy = 1e-3;
    489         time = [0:0.01:0.1, 0.11:0.01:2]*"h";
     486        RelativeAccuracy = 1e-3;
     487        TimeStep = 0.01;
     488        TimeEnd = 2;
     489        TimeUnit = "h";
     490        #time = [0:0.01:0.1, 0.11:0.01:2]*"h";
    490491        #initialFile = "Column_ctrl.rlt";
    491492        #guessFile = "Column_ctrl.rlt";
Note: See TracChangeset for help on using the changeset viewer.