Hi Lawrence,


thanks for the quick reply, but I can't find sub triangulate in the documentation. It's indeed a 2d function. To be more precise I attached a minimal example of what I want in fenics language.


All the best,

Tobias



Von: firedrake-bounces@imperial.ac.uk <firedrake-bounces@imperial.ac.uk> im Auftrag von Lawrence Mitchell <lawrence.mitchell@imperial.ac.uk>
Gesendet: Donnerstag, 20. Oktober 2016 23:12
An: firedrake
Betreff: Re: [firedrake] visualising 2nd order element
 


On 20 Oct 2016, at 21:24, Schwedes, Tobias <t.schwedes14@imperial.ac.uk> wrote:

Hi all,


I would like to visualize the result of simulations based on 2nd order elements. However, using plot(u) only gives a linear interpolation. I know this from fenics and the workaround is to interpolate u onto a finer mesh and plot the outcome then. Does that work in firedrake, and if so how do I do it?


Thanks a lot in advance for your help!


plot of a 2d function will sub triangulate and do the appropriate evaluation. So you can just do that. See the docstring (particularly the nun_sample_points argument).
In 1d it uses cubic brazier curves...

Cheers,
Lawrence 


All the best,

Tobias

_______________________________________________
firedrake mailing list
firedrake@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/firedrake