Hello,

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*. 

a) So in assemble_system() I removed the absorption terms in cell matrix 
addition:
    /* 
    - absorption_cross_section *
    fe_values.shape_value(i,q_point) *
    fe_values.shape_value(j,q_point)) 
    */
and
b) Removed source term addition in evaluate_diffusion:
    /* 
    for (; cell!=endc; ++cell)
      {
        cell_source = 0.;
        fe_values.reinit (cell);
        for (unsigned int q_point=0; q_point<n_q_points; ++q_point)
          {
            const double source = get_source(time,
                                             
fe_values.quadrature_point(q_point));
            for (unsigned int i=0; i<dofs_per_cell; ++i)
              cell_source(i) += source *
                                fe_values.shape_value(i,q_point) *
                                fe_values.JxW(q_point);
          }
        cell->get_dof_indices(local_dof_indices);
        constraint_matrix.distribute_local_to_global(cell_source,
                                                     local_dof_indices,
                                                     tmp);
      }
      */

additionally

c) I added constraint_matrixe.distribute(solution) after 
'evolve_one_time_step()' function. 

Is there something that I have overlooked?

-- 
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