Hello Jean,

Thank you for the reply, the procedure is definitely useful for my case.
But, I have a follow up question, this procedure allow us to access the
coordinates of the vertices through a CellAccessor. And before incrementing
the the coordinates by a calculated value(i.e.* vertex_displacement)*, it
checks if the *vertex is touched or not, *to avoid repeated increments.

I was wondering if there is any method to sequentially access all the
vertex co-ordinates(Point<dim>), similar to tria.get_vertices(). The reason
behind this is, let say, if I need to modify a vertex_index=10, then I need
to loop over all the cells through a CellAccessor, until I hit a cell that
contains this vertex and then modify it. And this could be inefficient, and
I am just curious about any alternate procedures.

With Regards,
Rakesh Raghavaraju




On Thu, Aug 2, 2018 at 3:17 PM, Jean-Paul Pelteret <[email protected]>
wrote:

> Dear Rakesh,
>
> I believe that the move_mesh()
> <https://www.dealii.org/9.0.0/doxygen/deal.II/step_18.html#TopLevelmove_mesh> 
> function
> in step-18 demonstrates exactly this procedure. Does this help?
>
> Best,
> Jean-Paul
>
> On 02 Aug 2018, at 20:51, Rakesh <[email protected]> wrote:
>
> Hello All,
>
> I have Triangulation object, say 'tria', and want to change the
> coordinates of one vertices. I tried using tria.get_vertices() to return a
> vector containing the Point<> data of all the vertices.
>
>    - vertices = tria.get_vertices();
>
> But the return value is a const vector and could not be modified. I am
> wondering if there is any method to modify the co-ordinates of certain
> vertices.
>
> Thank you,
> Rakesh
>
> --
> 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.
>
>
> --
> 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.
>

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