Conversation
40be910 to
073e15d
Compare
|
The Pr is ready now. We can now do the following with Paraview: grid = uniform_refine( grid_unitsquare( Triangle2D ), 3)
# explode the grid
ex_grid = explode( grid )
# write cell-wise random node data (e.g., discontinuous higher order data)
writeVTK("result.vtu", ex_grid, :some_random_node_data => rand(num_nodes(ex_grid)))This results in
@j-fu what do you think? |
073e15d to
a9f1973
Compare
|
|
A broken FE space does not require a broken/exploded grid (in the sense that there are no shared vertex ids). In fact broken and continuous FE spaces are equal on broken/exploded grids. However, the usual DG operators in ExtendableFEM would not work on the exploded grid (since every face is now twice in FaceNodes and only has one cell neighbour), for that one would have to glue the cells together again to restore the neighbourhood information. I think @pjaap solely wants this to prepare piecewise plotting data for paraview, but not for any actual discretization schemes. Therefore, I think it is okay to call it exploded and not broken. Concerning the lifting, the usual lazy_interpolate! function allows to interpolate any FE function from the original grid to (any FESpace on) the exploded grid. |
|
The naming was suggested by an LLM^^ When I investigated how to pass piecewise linear cell data to Paraview.
|
|
Ah ok - this appears to be quite helpful. But EXPLODE in Autocad does exactly what you propose https://www.youtube.com/watch?v=1wQlwP5FyCo |
|
Ok, thanks for the feedback! I used it already in a project, so it is complete and stable for me. Merge? |
|
As there were no further objections, I'll merge. I do not want to keep this open over the holidays 🎄 |

This creates a grid without any adjacency information form a given grid.
Cells are duplicated and each cell has independent nodes. Some properties like
are also transferred.
I intend to use it for broken VTK exports.