# Changeset 51 for mso/sample/reactors/fogler/chap2/series_reactors.mso

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

Add problem 2-4 and fixed bounds

File:
1 edited

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

 r28 out     Outlet  as stream; # Outlet stream r               as reaction_mol(Brief="Rate of reaction", Unit="mol/l/s"); V       as volume          (Brief="Volume", Unit="l"); V       as volume          (Brief="Volume", Unit="l", Upper=2e3); EQUATIONS in      Inlet   as stream; # Inlet stream out     Outlet  as stream; # Outlet stream V       as volume          (Brief="Volume", Unit="l"); V       as volume          (Brief="Volume", Unit="l", Upper=2e3); r               as reaction_mol(Brief="Rate of reaction", Unit="mol/l/s"); Model pfr_d PARAMETERS N       as Integer              (Brief="Number of descrete points", Default=200); N       as Integer              (Brief="Number of discrete points", Default=200); VARIABLES in      Inlet   as stream; # Inlet stream out     Outlet  as stream; # Outlet stream V(N)    as volume           (Brief="Volume", Unit="l"); V(N)    as volume           (Brief="Volume", Unit="l", Upper=2e3); X(N)    as fraction             (Brief="Molar conversion"); dx      as fraction     (Brief="Conversion increment"); #*--------------------------------------------------------------------- * Example 2-4: Comparing volumes between one CSTR and one PFR *--------------------------------------------------------------------*# FlowSheet comparative VARIABLES V_cstr  as volume       (Brief="CSTR volume", Unit="l"); V_pfr   as volume       (Brief="PFR volume", Unit="l"); DEVICES Inlet   as stream; # Inlet stream CSTR    as cstr; PFR             as pfr_d; CONNECTIONS Inlet   to CSTR.Inlet; Inlet   to PFR.Inlet; EQUATIONS "Rate of reaction in CSTR" (-CSTR.r) = (0.0092*CSTR.Outlet.X^3 - 0.0153*CSTR.Outlet.X^2 + 0.0013*CSTR.Outlet.X + 0.0053)*"mol/l/s"; "Rate of reaction in PFR" (-PFR.r) = (0.0092*PFR.X^3 - 0.0153*PFR.X^2 + 0.0013*PFR.X + 0.0053)*"mol/l/s"; "CSTR volume" V_cstr = CSTR.V; "PFR volume" V_pfr = PFR.V(PFR.N); #       SET #       PFR.N   = 100; SPECIFY "Inlet molar flow" Inlet.F = 5.0*"mol/s"; "Inlet conversion" Inlet.X = 0.0; "Required CSTR conversion" CSTR.Outlet.X = 0.6; "Required PFR conversion" PFR.Outlet.X = 0.6; "Initial volume in PFR" PFR.V(1) = 0.0*"l"; OPTIONS mode = "steady"; end #*--------------------------------------------------------------------- * Example 2-5: two CSTRs in serie *--------------------------------------------------------------------*# #*--------------------------------------------------------------------- * Example 2-6: two PFRs in series (descreted) * Example 2-6: two PFRs in series (discreted) *--------------------------------------------------------------------*#
Note: See TracChangeset for help on using the changeset viewer.