Changeset 375 for trunk/sample/reactors


Ignore:
Timestamp:
Sep 26, 2007, 5:23:56 PM (16 years ago)
Author:
Argimiro Resende Secchi
Message:

fixed sample file diagram.

Location:
trunk/sample/reactors/fogler/chap2
Files:
2 edited

Legend:

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

    r374 r375  
    196196#       (-r) = sum(a*Outlet.X^[0:(NT-1)]); # NOT CONVERGE
    197197        (-r) = (a(4)*Outlet.X^3 + a(3)*Outlet.X^2 + a(2)*Outlet.X + a(1));
     198
     199        INITIAL
     200        "Reactor volume"
     201        V = 0.0*'l';
    198202end
    199203
     
    235239        "Discrete interval"
    236240        dx = Outlet.X/N;
    237        
     241
     242        V(1) = 0 * 'l';
     243
    238244        for i in [2:N]
    239245        "Molar balance"
     
    249255        "Rate of reaction"
    250256                (-r(i)) = sum(a*X(i)^[0:(NT-1)]);
    251         end     
     257        end
     258       
    252259end
    253260
     
    317324        Inlet.X = 0.0;
    318325       
    319         INITIAL
    320         "Reactor volume"
    321         R1.V    = 0.0*'l';
    322        
    323326        OPTIONS
    324327        TimeStep = 0.004;
     
    347350
    348351        SET
    349 #       R1.N = 100;
    350        
     352        R1.N = 200;
     353
    351354        SPECIFY
    352355        "Inlet molar flow"
     
    357360        "Required conversion"
    358361        R1.Outlet.X     = 0.8;
    359         "Initial volume"
    360         R1.V(1) = 0.0*'l';
    361362       
    362363        OPTIONS
     
    391392       
    392393        SET
    393 #       PFR.N = 100;
    394        
     394        PFR.N = 200;
     395
    395396        SPECIFY
    396397        "Inlet molar flow"
     
    398399        "Inlet conversion"
    399400        Inlet.X = 0.0;
    400        
     401
    401402        "Required CSTR conversion"
    402403        CSTR.Outlet.X = 0.6;
    403404        "Required PFR conversion"
    404405        PFR.Outlet.X = 0.6;
    405        
    406         "Initial volume in PFR"
    407         PFR.V(1) = 0.0*'l';
    408406       
    409407        OPTIONS
     
    493491        R2.Outlet.X = 0.8;
    494492       
    495         "Initial 1st reactor volume"
    496         R1.V(1) = 0.0*'l';
    497         "Initial 2nd reactor volume"
    498         R2.V(1) = 0.0*'l';
    499        
    500493        OPTIONS
    501494        Dynamic = false;
     
    531524       
    532525        SET
    533 #       R1.N = 100;
     526        R1.N = 200;
    534527       
    535528        SPECIFY
     
    543536        "Required 2nd reactor conversion"
    544537        R2.Outlet.X = 0.8;
    545        
    546         "Initial 1st reactor volume"
    547         R1.V(1) = 0.0*'l';
    548538       
    549539        OPTIONS
     
    580570       
    581571        SET
    582 #       R2.N = 100;
     572        R2.N = 200;
    583573       
    584574        SPECIFY
     
    593583        R2.Outlet.X = 0.8;
    594584       
    595         "Initial 2nd reactor volume"
    596         R2.V(1) = 0.0*'l';
    597        
    598         OPTIONS
    599         Dynamic = false;
    600 end
     585        OPTIONS
     586        Dynamic = false;
     587end
  • trunk/sample/reactors/fogler/chap2/series_reactors.xml

    r374 r375  
    1313                <NLASolver_File_Text>sundials</NLASolver_File_Text>
    1414                <DAESolver_File_Index>0</DAESolver_File_Index>
    15                 <DAESolver_File_Text>sundials</DAESolver_File_Text>
    1615        </Options>
    1716        <Width>2000</Width>
     
    2221                <Show_Grid>1</Show_Grid>
    2322                <Snap_to_Grid>1</Snap_to_Grid>
    24                 <Width>822</Width>
    25                 <Height>419</Height>
     23                <Width>830</Width>
     24                <Height>525</Height>
    2625                <X>-15</X>
    2726                <Y>0</Y>
     
    3130                <Show_Grid>1</Show_Grid>
    3231                <Snap_to_Grid>1</Snap_to_Grid>
    33                 <Width>822</Width>
     32                <Width>830</Width>
    3433                <Height>0</Height>
    3534                <X>0</X>
     
    4039                <Id_String>sink__1</Id_String>
    4140                <Block_Name>sink__1</Block_Name>
    42                 <Image_File_Name>D:\Apps\EMSO\mso\sample\reactors\fogler\chap2\icon/outlet.png</Image_File_Name>
     41                <Image_File_Name>E:\User\Arge\PROJETOS\Alsoc\EMSO\mso\sample\reactors\fogler\chap2\icon/outlet.png</Image_File_Name>
    4342                <X>664</X>
    4443                <Y>194</Y>
     
    5857                        </Base_Models>
    5958                        <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path>
    60                         <Instance_Id>Inlet</Instance_Id>
     59                        <Instance_Id>Inlet.</Instance_Id>
    6160                        <Model_Name>Inlet</Model_Name>
    6261                        <T_Connection>1</T_Connection>
     
    7372                <Id_String>simple_pfr_d_1</Id_String>
    7473                <Block_Name>simple_pfr_d_1</Block_Name>
    75                 <Image_File_Name>D:\Apps\EMSO\mso\sample\reactors\fogler\chap2\icon/simple_pfr.png</Image_File_Name>
     74                <Image_File_Name>E:\User\Arge\PROJETOS\Alsoc\EMSO\mso\sample\reactors\fogler\chap2\icon/simple_pfr.png</Image_File_Name>
    7675                <X>370</X>
    7776                <Y>186</Y>
     
    9190                        </Base_Models>
    9291                        <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path>
    93                         <Instance_Id>Inlet</Instance_Id>
     92                        <Instance_Id>Inlet.</Instance_Id>
    9493                        <Model_Name>Inlet</Model_Name>
    9594                        <T_Connection>1</T_Connection>
     
    107106                        </Base_Models>
    108107                        <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path>
    109                         <Instance_Id>Outlet</Instance_Id>
     108                        <Instance_Id>Outlet.</Instance_Id>
    110109                        <Model_Name>Outlet</Model_Name>
    111110                        <T_Connection>2</T_Connection>
     111                        <Variables>
     112                                <Desc>Outlet.X</Desc>
     113                                <Index>0</Index>
     114                                <Values>0.8</Values>
     115                                <Status>1</Status>
     116                        </Variables>                   
    112117                        </Block_Properties>
    113118                        </Sub_Models>
     
    122127                <Id_String>simple_cstr_1</Id_String>
    123128                <Block_Name>simple_cstr_1</Block_Name>
    124                 <Image_File_Name>D:\Apps\EMSO\mso\sample\reactors\fogler\chap2\icon/simple_cstr.png</Image_File_Name>
     129                <Image_File_Name>E:\User\Arge\PROJETOS\Alsoc\EMSO\mso\sample\reactors\fogler\chap2\icon/simple_cstr.png</Image_File_Name>
    125130                <X>219</X>
    126131                <Y>103</Y>
     
    140145                        </Base_Models>
    141146                        <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path>
    142                         <Instance_Id>Inlet</Instance_Id>
     147                        <Instance_Id>Inlet.</Instance_Id>
    143148                        <Model_Name>Inlet</Model_Name>
    144149                        <T_Connection>1</T_Connection>
     
    153158                        <Model_Name>stream</Model_Name>
    154159                        <T_Connection>2</T_Connection>
    155                         </Block_Properties>
    156                         </Base_Models>
    157                         <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path>
    158                         <Instance_Id>Outlet</Instance_Id>
     160                        <Variables>
     161                                <Desc>Outlet.X</Desc>
     162                                <Index>0</Index>
     163                                <Values>0.5</Values>
     164                                <Status>1</Status>
     165                        </Variables>
     166                        </Block_Properties>
     167                        </Base_Models>
     168                        <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path>
     169                        <Instance_Id>Outlet.</Instance_Id>
    159170                        <Model_Name>Outlet</Model_Name>
    160171                        <T_Connection>2</T_Connection>
     
    171182                <Id_String>source__1</Id_String>
    172183                <Block_Name>source__1</Block_Name>
    173                 <Image_File_Name>D:\Apps\EMSO\mso\sample\reactors\fogler\chap2\icon/inlet.png</Image_File_Name>
     184                <Image_File_Name>E:\User\Arge\PROJETOS\Alsoc\EMSO\mso\sample\reactors\fogler\chap2\icon/inlet.png</Image_File_Name>
    174185                <X>58</X>
    175186                <Y>86</Y>
     
    186197                        <Model_Name>stream</Model_Name>
    187198                        <T_Connection>2</T_Connection>
    188                         </Block_Properties>
    189                         </Base_Models>
    190                         <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path>
    191                         <Instance_Id>Outlet</Instance_Id>
     199                        <Variables>
     200                                <Desc>Outlet.F</Desc>
     201                                <Index>0</Index>
     202                                <Values>0.866541</Values>
     203                                <Status>1</Status>
     204                                <Unit>mol/s</Unit>
     205                        </Variables>
     206                        <Variables>
     207                                <Desc>Outlet.X</Desc>
     208                                <Index>0</Index>
     209                                <Values>0</Values>
     210                                <Status>1</Status>
     211                        </Variables>
     212                        </Block_Properties>
     213                        </Base_Models>
     214                        <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path>
     215                        <Instance_Id>Outlet.</Instance_Id>
    192216                        <Model_Name>Outlet</Model_Name>
    193217                        <T_Connection>2</T_Connection>
Note: See TracChangeset for help on using the changeset viewer.