This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Automated adaptivity

0 votes

Hello,
Playing with examples explaining how to use automated adaptivity,
I was wondering if it is possible to plot/save the final mesh ?
Thanks

asked Feb 9, 2014 by micdup FEniCS User (1,120 points)

1 Answer

+2 votes
 
Best answer

Hi, similar to how you obtain solution on initial and then final mesh in this demo, you can get the
meshes by

plot(mesh.root_node(), title="initial mesh")
plot(mesh.leaf_node(), title="final mesh")
answered Feb 9, 2014 by MiroK FEniCS Expert (80,920 points)
selected Feb 10, 2014 by Jan Blechta

Thank you very much!

How to get the mesh between the coarsest one and the finest one, and similarly for other refined quantities?
Thanks very much in advance.

...