Thank you very much. With those functions in DofTools I should be able to 
do what I need.

Best,
David.

On Tuesday, 19 March 2019 17:41:32 UTC+1, Wolfgang Bangerth wrote:
>
> On 3/19/19 9:57 AM, David F wrote: 
> > 
> > I am not sure how to answer your question. I'm using a very basic a 
> setup 
> > equivalent to step-8. Therefore, I have a solution vector with final 
> > displacements where each entry corresponds to the displacement of a dof. 
> My 
> > aim is to find the initial position of the vertices in the form of 
> > std::vector<Point<dim>> and the final position (i.e., the initial 
> position + 
> > its displacement) in the same form. 
>
> I see -- you are using the pre-existing mesh and want to interpret the 
> solution as the *displacement* to the mesh. 
>
> If all you are interested in is to output the solution on the deformed 
> mesh, 
> you can call Data::build_patches() with the mapping argument, where you 
> use a 
> MappingQEulerian object initialized with your displacement vector. 
>
> If you want to have a representation in the program, you can use the 
> function 
> in namespace DoFTools that returns a vector of support point locations for 
> each DoF, and then query your solution vector for the corresponding 
> displacements. You might have to juggle with the x, y, and z displacements 
> a 
> bit to get this right, but the infrastructure is all there. 
>
> Best 
>   W. 
>
> -- 
> ------------------------------------------------------------------------ 
> Wolfgang Bangerth          email:                 bang...@colostate.edu 
> <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 dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to