I have applied a constant boundary condition of the value 1 at both the 
faces
    
VectorTools::interpolate_boundary_values(dof_handler,1,ConstantFunction<2>(1.),constraint_matrix);
  constraint_matrix.close();

I am getting the initial boundary conditions as the result, but the results 
remain constant with the time steps. 

Although, when I don't apply the contraint_matrix.distribute(solution) 
command before output, then the value at the boundary changes, but inside 
the boundary the solution continues to be zero. 



Am Dienstag, 4. September 2018 00:59:31 UTC+2 schrieb Wolfgang Bangerth:
>
> On 09/03/2018 12:41 AM, Prateek Sharma wrote: 
> > 
> > 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. 
>
> So what are these boundary conditions, and how does your initial solution 
> then 
> look? Does the solution you get match the initial and boundary conditions 
> you 
> prescribe? 
>
> 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.

Reply via email to