Skip to content

Commit

Permalink
Merge pull request #801 from XinShen-CHN/Update_Xin
Browse files Browse the repository at this point in the history
Update the information in the XDMF section
  • Loading branch information
RemDelaporteMathurin authored Jul 8, 2024
2 parents 362cf71 + 69437de commit 1add5fc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
Binary file added docs/source/images/paraview_guide_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/paraview_guide_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 20 additions & 2 deletions docs/source/userguide/export_post_processing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,26 @@ The following example shows how to export the solution of a 1D problem:

...

Running this should produce a file called ``mobile_conc.xdmf`` in the current directory.
The file can then be opened in Paraview or any other software that can read XDMF files.
Running this should produce two files called ``mobile_conc.xdmf`` and `ˋmobile_conc.h5`` in the current directory.
The file can then be opened in Paraview or any other software that can read XDMF files. Here are some tips for using Paraview:

- Make sure to have the h5 file in the same directory as the XDMF file

- Do not modify the name of the files after their creation by FESTIM. This would result in not being able to open the file in paraview because the XDMF points to the h5 file

- Open the XDMF file then select the reader Xdmf3 Reader S

.. thumbnail:: ../images/paraview_guide_1.png
:width: 400
:align: center

- Edit the colour map and rescale the colourbar to present the proper view of results

.. thumbnail:: ../images/paraview_guide_2.png
:width: 400
:align: center

- Find out more information on `Paraview tutorials <https://www.paraview.org/tutorials/>`_

For transient simulations, by default, :class:`festim.XDMFExport` will export the solution at each timestep.
It is possible to change this behaviour to limit the number of times the file is written to.
Expand Down

0 comments on commit 1add5fc

Please sign in to comment.