[firedrake] Firedrake .PVD visualisation

Lawrence Mitchell lawrence.mitchell at imperial.ac.uk
Thu Feb 23 14:57:41 GMT 2017



On 23/02/17 14:51, Robert Long [RPG] wrote:
> Hello Firedrake peoples,
> 
> 
> I have ran a simulation which outputs a time dependent series of
> results files, with a .pvd extension, and a load of .vtu files.
> 
> When i try to visualise these in firedrake i just see the x-domain
> (its a 1d problem) with a function of intensities on it.
> 
> DO you know how i can take the values of the function and plot them
> against x for an x-y plot?
> 
> If not, are there alternative output options?

You can "warp by scalar" in the paraview interface.

Alternately, you can use the matplotlib plotting we have for 1-D
functions:

while t < tend:
    ax = plot(one_d_function)
    # save figure here.

This page has more information:

http://firedrakeproject.org/visualisation.html

Lawrence

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.ic.ac.uk/pipermail/firedrake/attachments/20170223/08272dbf/attachment-0001.sig>


More information about the firedrake mailing list