12.07.2015 Views

DOLFIN User Manual - FEniCS Project

DOLFIN User Manual - FEniCS Project

DOLFIN User Manual - FEniCS Project

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DOLFIN</strong> <strong>User</strong> <strong>Manual</strong>Hoffman, Jansson, Logg, WellsThe sample code produces the file data.pvd, which can be read by ParaView.The file data.pvd contains a list of files which contain the resultscomputed by <strong>DOLFIN</strong>. For the above example, these files would be nameddataXXX.vtu, where XXX is a counter which is incremented each time thefunction is saved. If the function u was to be saved three times, the filesdata000000.vtudata000001.vtudata000002.vtuwould be produced. Individual snapshots can be visualized by opening thedesired file with the extension .vtu using ParaView.ParaView can produce on-screen animations. High quality animations invarious formats can be produced using a combination of ParaView and MEncoder[6].◮ Developer’s note: Add MEncoder example to create animation.9.2.3 OpenDXOpenDX [9] is a powerful free visualization tool based on IBM’s VisualizationData Explorer. To visualize data with OpenDX, a user needs to build avisual program that instructs OpenDX how to extract and visualize relevantparts of your data. <strong>DOLFIN</strong> provides a ready-made visual program suitablefor visualization of <strong>DOLFIN</strong> data in OpenDX. The visual program can befound in the subdirectory src/utils/opendx/ of the <strong>DOLFIN</strong> source tree(file dolfin.net and accompanying configuration dolfin.cfg).9.2.4 GNU OctaveGNU Octave [7] is a free clone of MATLAB that can be used to visualizesolutions computed in <strong>DOLFIN</strong>, using the commands pdemesh, pdesurf61

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!