This repository contains a DOLFINx implementation of the TEAM 30 model.
generate_team30_meshes.py
: A script that generates the two TEAM 30 models (single and three phase) meshes and saves them to xdmf format. To learn about input parameters, runpython3 generate_team30_meshes.py --help
.team30_A_phi.py
: Script for solving the TEAM 30 model for either a single phase or three phase engine. To learn about input parameters, runpython3 team30_A_phi.py --help
.parameteric_study.py
: Script for doing a parametric sweep for either model and comparing with reference data. To learn about input parameters, runpython3 parameteric_study.py --help
utils.py
: File containing utillity functions used in theteam30_A_phi.py
, including post processing and quantities derived from Aztest_team30.py
Testing script verifying the single and three phase implementation for first and second order elements by comparing to reference data. Executed with `python3 -m pytest -xvs
generate_team30_meshes_3D.py
: A script that generates the two 3D TEAM 30 models (single and three phase) meshes and saves them to xdmf format. To learn about input parameters, runpython3 generate_team30_meshes_3D.py --help
.
The list of requirements can be found in requirements.txt.
The docker image can then be started with the following command:
docker run -ti -v $(pwd):/root/shared -w /root/shared/ --shm-size=512m --name=team30 ghcr.io/fenics/dolfinx/dolfinx:v0.7.0
and simply add additional requirements with python3 -m pip install -r requirements.txt