Ignore:
Timestamp:
Mar 2, 2007, 10:06:53 AM (16 years ago)
Author:
gerson bicca
Message:

some modifications in the models for the new language (reactors model)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/newlanguage/sample/reactors/fogler/chap6/hidrodesalkeletion.mso

    r82 r171  
    5656        NReac           as Integer              (Brief="Number of reactions");
    5757        stoic(NComp,NReac) as Real      (Brief="Stoichiometric coefficients");
    58         k(NReac)        as Real                 (Brief="Specific velocity reaction", Unit="(ft^3/lbmol)^.5/h");
     58        k(NReac)        as Real                 (Brief="Specific velocity reaction", Unit='(ft^3/lbmol)^.5/h');
    5959        P                       as pressure     (Brief="Pressure of reactor");
    6060        T                       as temperature  (Brief="Temperature of reactor");
    61         R                       as Real                 (Brief="Universal gas constant", Unit="atm*ft^3/degR/lbmol", Default=0.73);
     61        R                       as Real                 (Brief="Universal gas constant", Unit='atm*ft^3/degR/lbmol', Default=0.73);
    6262        yo(NComp)       as fraction     (Brief="Input molar fraction");
    6363        vo                      as flow_vol     (Brief="Input volumetric flow");
    6464       
    6565        VARIABLES
    66         F(NComp)        as flow_mol     (Brief="Molar flow", Unit="lbmol/h");
    67         C(NComp)        as conc_mol     (Brief="Molar concentration", Lower=0, Unit="lbmol/ft^3");
    68         Co(NComp)       as conc_mol     (Brief="Input molar concentration", Lower=0, Unit="lbmol/ft^3");
     66        F(NComp)        as flow_mol     (Brief="Molar flow", Unit='lbmol/h');
     67        C(NComp)        as conc_mol     (Brief="Molar concentration", Lower=0, Unit='lbmol/ft^3');
     68        Co(NComp)       as conc_mol     (Brief="Input molar concentration", Lower=0, Unit='lbmol/ft^3');
    6969       
    70         r(NComp,NReac) as reaction_mol (Brief="Relative rate of reaction", Unit="lbmol/h/ft^3");
    71         rate(NComp)     as reaction_mol (Brief="Overall rate of reaction", Unit="lbmol/h/ft^3");
    72         tau                     as time_h               (Brief="Residence time", Unit="h");
    73         V                       as volume               (Brief="Reactor volume", Unit="ft^3");
     70        r(NComp,NReac) as reaction_mol (Brief="Relative rate of reaction", Unit='lbmol/h/ft^3');
     71        rate(NComp)     as reaction_mol (Brief="Overall rate of reaction", Unit='lbmol/h/ft^3');
     72        tau                     as time_h               (Brief="Residence time", Unit='h');
     73        V                       as volume               (Brief="Reactor volume", Unit='ft^3');
    7474
    7575        EQUATIONS
     
    108108        stoic(:,2) = [ 0, -1, -1, 1, 1]; # X + H -> T + Me
    109109       
    110         vo= 476*"ft^3/h";
    111         T = 1500*"degR";
    112         P = 35*"atm";
     110        vo= 476*'ft^3/h';
     111        T = 1500*'degR';
     112        P = 35*'atm';
    113113        yo= [1/3, 2/3, 0.0, 0.0, 0.0];
    114         k = [55.2, 30.2]*"(ft^3/lbmol)^.5/h";
     114        k = [55.2, 30.2]*'(ft^3/lbmol)^.5/h';
    115115       
    116116        INITIAL
     
    119119       
    120120        OPTIONS
    121         time=[0:0.01:0.5]*"h";
     121        TimeStep =0.01;
     122        TimeEnd  =0.5;
     123        TimeUnit = 'h';
    122124end
Note: See TracChangeset for help on using the changeset viewer.