Dear All,
I'm working on a code which is fairly similar to step-18, but it includes data storage at quadrature points because I want to describe damage and/or plasticity. My code requires the transfer of data after mesh refinement. Could you please let me know what is the easiest way to do that? Please note that I am aware of the Solution Transfer of DoF which doesn't help in this situation.
Kind regards
Ali
On 14 Jun 2016, at 16:51, dealii...@gmail.com wrote:Hi
I am solving a problem using Trilinos and parallel::distributed triangulation. It works well. I transfer solution data and old solution data during mesh refinement as follow,
std::vector<const LA::MPI::BlockVector *> x(2);
x[0] = &relevant_solution;
x[1] = &solution_old;
parallel::distributed::SolutionTransfer<dim, LA::MPI::BlockVector>
solution_transfer(dof_handler);
solution_transfer.prepare_for_coarsening_and_refinement(x);
triangulation.execute_coarsening_and_refinement();
setup_system();
LA::MPI::BlockVector tmp_v(partition);
LA::MPI::BlockVector tmp_vv(partition);
std::vector<LA::MPI::BlockVector *> tmp(2);
tmp[0] = &solution;
tmp[1] = &tmp_2;
solution_transfer.interpolate(tmp);
solution_old = tmp_2;
Now, I also want to transfer quadrature point's data to the new mesh based on the method explained at the end of step-18 in which we can use a discontinuous field that matches the values in the quadrature points. Now using this method, I can prepare a global field (history_field) and I want to transfer the history_field vector as usual using the SolutionTransfer class.
Can I attach the history_field with relevant_solution and solution_old during solution transfer method?
Or I must use two solution transfers, the first one for relevant_solution and solution using dof_handler and the second one for history_field using history_dof_handler? I can't understand this step and the relation between FE_DGQ for history field and FE_Q for the main problem during refinement.
--
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 a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/OSaxZJR19W8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thank you. Is this class available in the release version 8.3.0?
I set separate dofhandler (history_dof_handler) for FE_DGQ. I just confusing because the history_field vector has different size respect to the main solution vector and it also has different DoFHandler. I attached dof_handler defined for the main problem for FE_Q, to the solution_transfer, so I am confusing how we can use this solution_transfer which defined based on the dof_handler to transfer history_field?!