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, Wells◮ Developer’s note: Some of the file formats are partly broken after changingthe linear algebra backend to PETSc. (Do grep FIXME in src/kernel/io/.)Format Vector Matrix Mesh Function SampleFile::xml in/out in/out in/out — —File::vtk — — out out —File::opendx — — out out —File::octave out out out out outFile::matlab out out out out outFile::tecplot — — out out —File::gid — — out out —Table 9.2: Matrix of supported combinations of classes and file formats forinput/output in <strong>DOLFIN</strong>.9.2 File formatsIn this section, we give some pointers to each of the file formats supported by<strong>DOLFIN</strong>. For detailed information, we refer to the respective user manualof each format/program.◮ Developer’s note: This section needs to be improved and expanded. Anycontributions are welcome.9.2.1 <strong>DOLFIN</strong> XML<strong>DOLFIN</strong> XML is the native format of <strong>DOLFIN</strong>. As the name says, datais stored in XML ASCII format. This has the advantage of being a robustand human-readable format, and if the files are compressed there is littleoverhead in terms of file size compared to a binary format.<strong>DOLFIN</strong> automatically handles gzipped XML files, as illustrated by the followingexample which reads a Mesh from a compressed <strong>DOLFIN</strong> XML fileand saves the mesh to an uncompressed <strong>DOLFIN</strong> XML file:59

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

Saved successfully!

Ooh no, something went wrong!