Hi

I'm trying to use the DataOutStack class to visualise a 1-D solution a la 
step-25.

I've followed the example in the class documentation.  However, 
1. the simulation slows to a crawl whereas it used to take about 28 seconds.
2. the output is just a line as opposed to the 2d space-time plots from the 1D 
time-dependent solutions that is expected.

What is is that I'm  doing incorrectly ?

My code looks something like so:

DataOutStack<dim> data_out_stack;
data_out_stack.declare_data_vector("U", DataOutStack<dim>::dof_vector);
const std::string filename = "solution-1d-stacked.vtk";
std::ofstream output (filename.c_str());
for (timestep_number=1, time=time_step; time<=500; time+=time_step, 
++timestep_number)
    {
..... // Compute Something

// Now for output

data_out_stack.new_parameter_value(time, time_step);
data_out_stack.attach_dof_handler(dof_handler);
data_out_stack.add_data_vector(solution_u, "U");
data_out_stack.build_patches(2);
data_out_stack.finish_parameter_value();
data_out_stack.write_vtk (output);
}

Regards

Ted



      
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to