Ignore:
Timestamp:
Jul 25, 2008, 11:18:50 AM (14 years ago)
Author:
Rafael de Pelegrini Soares
Message:

Updated the models to work with some language constraints

File:
1 edited

Legend:

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

    r446 r574  
    239239        V(1) = 0.0*'l';
    240240
    241         for i in [2:N]
     241        for i in [2:N] do
    242242        "Molar balance"
    243243           V(i) - V(i-1) = -0.5*Inlet.F*dx*(1/r(i-1) + 1/r(i)); # second order
     
    250250        Outlet.F = Inlet.F;
    251251       
    252         for i in [1:N]
     252        for i in [1:N] do
    253253        "Rate of reaction"
    254254                (-r(i)) = sum(a*X(i)^[0:(NT-1)]);
     
    293293       
    294294        SPECIFY
    295         "Inlet conversion"
    296295        Inlet.X = 0.0;
    297         "Required conversion"
    298296        R1.Outlet.X = 0.8;
    299297       
     
    316314       
    317315        SPECIFY
    318         "Inlet molar flow"
    319316        Inlet.F = 0.866541*'mol/s';
    320         "Inlet conversion"
    321317        Inlet.X = 0.0;
    322318       
     
    350346
    351347        SPECIFY
    352         "Inlet molar flow"
    353348        Inlet.F = 0.866541*'mol/s';
    354         "Inlet conversion"
    355349        Inlet.X = 0.0;
    356350
    357         "Required conversion"
    358351        R1.Outlet.X     = 0.8;
    359352       
     
    392385
    393386        SPECIFY
    394         "Inlet molar flow"
    395387        Inlet.F = 5.0*'mol/s';
    396         "Inlet conversion"
    397388        Inlet.X = 0.0;
    398389
    399         "Required CSTR conversion"
    400390        CSTR.Outlet.X = 0.6;
    401         "Required PFR conversion"
    402391        PFR.Outlet.X = 0.6;
    403392       
     
    435424       
    436425        SPECIFY
    437         "Inlet molar flow"
    438426        Inlet.F = 0.866541*'mol/s';
    439         "Inlet conversion"
    440427        Inlet.X = 0.0;
    441428       
    442         "Required 1st reactor conversion"
    443429        R1.Outlet.X = 0.4;
    444         "Required 2nd reactor conversion"
    445430        R2.Outlet.X = 0.8;
    446431       
     
    478463       
    479464        SPECIFY
    480         "Inlet molar flow"
    481465        Inlet.F = 0.866541*'mol/s';
    482         "Inlet conversion"
    483466        Inlet.X = 0.0;
    484467       
    485         "Required 1st reactor conversion"
    486468        R1.Outlet.X = 0.4;
    487         "Required 2nd reactor conversion"
    488469        R2.Outlet.X = 0.8;
    489470       
     
    524505       
    525506        SPECIFY
    526         "Inlet molar flow"
    527507        Inlet.F = 0.866541*'mol/s';
    528         "Inlet conversion"
    529508        Inlet.X = 0.0;
    530509       
    531         "Required 1st reactor conversion"
    532510        R1.Outlet.X = 0.5;
    533         "Required 2nd reactor conversion"
    534511        R2.Outlet.X = 0.8;
    535512       
     
    570547       
    571548        SPECIFY
    572         "Inlet molar flow"
    573549        Inlet.F = 0.866541*'mol/s';
    574         "Inlet conversion"
    575550        Inlet.X = 0.0;
    576551       
    577         "Required 1st reactor conversion"
    578552        R1.Outlet.X = 0.5;
    579         "Required 2nd reactor conversion"
    580553        R2.Outlet.X = 0.8;
    581554       
Note: See TracChangeset for help on using the changeset viewer.