Ignore:
Timestamp:
Nov 10, 2006, 2:28:01 PM (16 years ago)
Author:
Rodolfo Rodrigues
Message:

Add problem 2-4 and fixed bounds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mso/sample/reactors/fogler/chap2/series_reactors.mso

    r28 r51  
    6363out     Outlet  as stream; # Outlet stream
    6464        r               as reaction_mol(Brief="Rate of reaction", Unit="mol/l/s");
    65         V       as volume          (Brief="Volume", Unit="l");
     65        V       as volume          (Brief="Volume", Unit="l", Upper=2e3);
    6666
    6767        EQUATIONS
     
    8282in      Inlet   as stream; # Inlet stream
    8383out     Outlet  as stream; # Outlet stream
    84         V       as volume          (Brief="Volume", Unit="l");
     84        V       as volume          (Brief="Volume", Unit="l", Upper=2e3);
    8585        r               as reaction_mol(Brief="Rate of reaction", Unit="mol/l/s");
    8686       
     
    103103Model pfr_d
    104104        PARAMETERS
    105         N       as Integer              (Brief="Number of descrete points", Default=200);
     105        N       as Integer              (Brief="Number of discrete points", Default=200);
    106106       
    107107        VARIABLES
    108108in      Inlet   as stream; # Inlet stream
    109109out     Outlet  as stream; # Outlet stream
    110         V(N)    as volume           (Brief="Volume", Unit="l");
     110        V(N)    as volume           (Brief="Volume", Unit="l", Upper=2e3);
    111111        X(N)    as fraction             (Brief="Molar conversion");
    112112        dx      as fraction     (Brief="Conversion increment");
     
    258258
    259259#*---------------------------------------------------------------------
     260* Example 2-4: Comparing volumes between one CSTR and one PFR
     261*--------------------------------------------------------------------*#
     262
     263FlowSheet comparative
     264        VARIABLES
     265        V_cstr  as volume       (Brief="CSTR volume", Unit="l");
     266        V_pfr   as volume       (Brief="PFR volume", Unit="l");
     267       
     268        DEVICES
     269        Inlet   as stream; # Inlet stream
     270        CSTR    as cstr;
     271        PFR             as pfr_d;
     272
     273        CONNECTIONS
     274        Inlet   to CSTR.Inlet;
     275        Inlet   to PFR.Inlet;
     276       
     277        EQUATIONS
     278        "Rate of reaction in CSTR"
     279        (-CSTR.r) = (0.0092*CSTR.Outlet.X^3 - 0.0153*CSTR.Outlet.X^2 + 0.0013*CSTR.Outlet.X + 0.0053)*"mol/l/s";
     280        "Rate of reaction in PFR"
     281        (-PFR.r) = (0.0092*PFR.X^3 - 0.0153*PFR.X^2 + 0.0013*PFR.X + 0.0053)*"mol/l/s";
     282       
     283        "CSTR volume"
     284        V_cstr = CSTR.V;
     285        "PFR volume"
     286        V_pfr = PFR.V(PFR.N);
     287       
     288#       SET
     289#       PFR.N   = 100;
     290       
     291        SPECIFY
     292        "Inlet molar flow"
     293        Inlet.F = 5.0*"mol/s";
     294        "Inlet conversion"
     295        Inlet.X = 0.0;
     296       
     297        "Required CSTR conversion"
     298        CSTR.Outlet.X = 0.6;
     299        "Required PFR conversion"
     300        PFR.Outlet.X = 0.6;
     301       
     302        "Initial volume in PFR"
     303        PFR.V(1) = 0.0*"l";
     304       
     305        OPTIONS
     306        mode = "steady";
     307end
     308
     309
     310#*---------------------------------------------------------------------
    260311* Example 2-5: two CSTRs in serie
    261312*--------------------------------------------------------------------*#
     
    306357
    307358#*---------------------------------------------------------------------
    308 * Example 2-6: two PFRs in series (descreted)
     359* Example 2-6: two PFRs in series (discreted)
    309360*--------------------------------------------------------------------*#
    310361
Note: See TracChangeset for help on using the changeset viewer.