Finite element simulations of hydrogen transport
Project description
FESTIM
FESTIM (Finite Elements Simulation of Tritium in Materials) is a tool for modeling hydrogen transport in materials. FESTIM simulates the diffusion and trapping of hydrogen, coupled to heat transfer.
The following features are included:
- Mesh import from XDMF files
- Adaptive stepsize
- Temperature from solving transient/stationnary heat equation
- Multiple intrinsic/extrinsic traps with non-homogeneous density distribution
- Wide range of built-in boundary conditions (Sievert's law, recombination flux, user-defined expression...)
- Derived quantities computation (surface fluxes, volume integrations, extrema over domains, mean values over domains...)
- Soret effect
- ...
FESTIM spatially discretises the PDEs using the Finite Element Methods and heavily relies on FEniCS.
Examples
Examples can be found here.
Installation
FESTIM can be installed via pip
pip install FESTIM
FESTIM requires FEniCS to run. The FEniCS project provides a Docker image with FEniCS and its dependencies (python3, UFL, DOLFIN, numpy, sympy...) already installed. See their "FEniCS in Docker" manual.
For Windows users:
docker run -ti -v ${PWD}:/home/fenics/shared --name fenics quay.io/fenicsproject/stable:latest
For Linux users:
docker run -ti -v $(pwd):/home/fenics/shared --name fenics quay.io/fenicsproject/stable:latest
Run the tests:
pytest-3 test/
Visualisation
FESTIM results are exported to .csv, .txt or XDMF. The latter can then be opened in visualisation tools like ParaView or VisIt.
References
-
R. Delaporte-Mathurin, et al., Finite Element Analysis of Hydrogen Retention in ITER Plasma Facing Components using FESTIM. Nuclear Materials and Energy 21: 100709. DOI: 10.1016/j.nme.2019.100709.
-
R. Delaporte-Mathurin, et al., Parametric Optimisation Based on TDS Experiments for Rapid and Efficient Identification of Hydrogen Transport Materials Properties. Nuclear Materials and Energy, 26 mars 2021, 100984. https://doi.org/10.1016/j.nme.2021.100984.
-
R. Delaporte-Mathurin, et al., Parametric Study of Hydrogenic Inventory in the ITER Divertor Based on Machine Learning. Scientific Reports 10: 17798. https://doi.org/10.1038/s41598-020-74844-w.
-
R. Delaporte-Mathurin, et al., Influence of Interface Conditions on Hydrogen Transport Studies. Nuclear Fusion 61 (2021): 036038. https://doi.org/10.1088/1741-4326/abd95f.
-
R. Delaporte-Mathurin, et al., Fuel Retention in WEST and ITER Divertors Based on FESTIM Monoblock Simulations. Nuclear Fusion 61, nᵒ 12: 126001. https://doi.org/10.1088/1741-4326/ac2bbd.
-
E. A. Hodille et al., Modelling of Hydrogen Isotopes Trapping, Diffusion and Permeation in Divertor Monoblocks under ITER-like Conditions. Nuclear Fusion, 2021. https://doi.org/10.1088/1741-4326/ac2abc.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.