Skip to content

Commit

Permalink
temperature from xdmf
Browse files Browse the repository at this point in the history
  • Loading branch information
RemDelaporteMathurin committed Jan 16, 2024
1 parent 89aea4c commit 4e127a2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/userguide/export_post_processing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Setting it to ``last`` will export the solution only at the last timestep.
)
]
In order for the XDMF file to be readable by FESTIM, the ``checkpoint`` attribute must be set to ``True``.

^^^^^^^^^^^^^^^
TXT export (1D)
Expand Down
15 changes: 15 additions & 0 deletions docs/source/userguide/temperature.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,18 @@ For a steady-state problem:
my_temp = HeatTransferProblem(transient=False)
:ref:`Boundary conditions<boundary conditions>` and :ref:`heat sources<sources>` can then be applied to this heat transfer problem.

----------------
From a XDMF file
----------------

Temperature can also be read from a XDMF file.

.. code-block:: python
my_temp = TemperatureFromXDMF('temperature.xdmf', label='temperature')
.. note::

The XDMF file must contain a scalar field named 'temperature'.
Moreover, it has to have been exported in "checkpoint" mode (see :ref:`XDMF export`).

0 comments on commit 4e127a2

Please sign in to comment.