Hello, I forgot to mention that, but I have initialised the solution vector with boundary conditions with the statement constraint_matrix.distribute(solution); before the declaration of the TImeStepping::Implicit(or Explicit)RungeKutta object. I have applied non homgeneous dirichlet b.c. at x=0 and x=5.
Am Samstag, 1. September 2018 01:36:18 UTC+2 schrieb Wolfgang Bangerth: > > On 08/30/2018 10:12 AM, Prateek Sharma wrote: > > > > I am trying to implement diffusion with Runge Kutta. Thankfully there is > > step-52 that already has diffusion with Runge Kutta. > > > > But when I am trying to solve step-52 *after removing the Source term > > and Absorption term* from the code, then the *solution stays constant > > throughout the time steps*. > > The program starts the simulation from a zero vector, but without source > term, the solution will always stay zero. This should be independent of > whether or not have diffusion. You may want to try with initializing the > solution with something different than the zero vector! > > Best > W. > > -- > ------------------------------------------------------------------------ > Wolfgang Bangerth email: [email protected] > <javascript:> > www: http://www.math.colostate.edu/~bangerth/ > -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
