12.07.2015 Views

DOLFIN User Manual - FEniCS Project

DOLFIN User Manual - FEniCS Project

DOLFIN User Manual - FEniCS Project

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>DOLFIN</strong> <strong>User</strong> <strong>Manual</strong>Hoffman, Jansson, Logg, WellsMesh mesh;File in(‘‘mesh.xml.gz’’);in >> mesh;File out(‘‘mesh.xml’’);out mesh.xmlon the command-line.There is currently no visualization tool that can read <strong>DOLFIN</strong> XML files,so the main purpose of this format is to save and transfer data.9.2.2 VTKData saved in VTK format [13] can be visualized using various packages. Thepowerful and freely available ParaView [10] is recommended. Alternatively,VTK data can be visualized in MayaVi [5], which is recommended for qualityvector PostScript output. Time-dependent data is handled automatically inthe VTK format.The below code illustrates how to export a function in VTK format:Function u;File out(‘‘data.pvd’’);out

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

Saved successfully!

Ooh no, something went wrong!