Page 90 - Process Modelling and Simulation With Finite Element Methods
P. 90

Partial Differential Equations and the Finite Element Method   I1


                   Subdomain Mode
                      0   Select domain 1
                      0   Set f=O;  c=l; d,=l
                          APPlY
                          Select the init tab; set u(tO)= ~ech((x-0.5)*10)~2
                          Set u-t(tO)=  x*(l-x)/lO.
                          APPlY
                          OK
          Now pull down the Solve menu and select the Parameters option.  This pops
          up the Solver Parameters dialog window.
                   Solver Parameters
                          General tab: select time dependent
                          Jacobian: numeric
                          Time-stepping tab.  Take output times 0:0.05:2
                       0   Solve
                          Cancel
                          OK
          Now generate an animation from the Post Menu, Plot Parameters: Animate
          Tab.  The final state at t=2 should look like Figure 2.6.

                                       Waveform at time t=2
                  O9r





















                                                               I    I
                    0   01   02   03   04   05   06   07   08   09   1
                                          x position
                                 Figure 2.6  Waveform at t=2.
   85   86   87   88   89   90   91   92   93   94   95