On 5/16/23 12:52, Pranshul Thakur wrote:
>
> I am currently implementing a test case of optimization-based meshing where
> the mesh nodes are moved to obtain an optimal mesh. As the mesh can get
> distorted during the process, I am looking for a way to collapse distorted
> elements during optimization.
>
> Does anyone know if there is a way to perform local mesh operations such as
> diagonal collapse or other equivalents of edge swapping/node insertion/removal
> for quadrilateral meshes through deal.II?
This is not easily possible in deal.II. deal.II is not a meshing tool -- it
assumes that the logical connections of the mesh remain unchanged, even though
it can move vertices around.
> I am also looking for a way to
> interpolate the solution after these mesh operations.
That, too, is difficult. FEFieldFunction can do some of this, but it's
expensive. There are likely more efficient tools for this step, outside of
deal.II, if you have large meshes and want to interpolate from one mesh to
another.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/