MEDYPT documentation

MEDYPT is a Python library for simulating MEsoscopic DYnamics of Phase Transitions in materials. It uses finite element method implemented in FEniCSx package to solve coupled field equations. Typical workflow is:

  1. Create mesh by users

  2. Load mesh using load_mesh()

  3. Set physical parameters using params and numerical options using opts

  4. Load physics components using load_physics()

  5. Set boundary conditions using set_bcs()

  6. Create finite element problem using create_problem()

  7. Solve the problem using solve()

Currently MEDYPT only implemented insulator-metal transition (IMT) model. Plan to implement more phase-field models such as that of ferroelectrics in the future.

Installation

MEDYPT itself is a pure Python package and is currently on TestPyPI. You can install it easily for any platform using pip:

pip install --index-url https://test.pypi.org/simple/ --no-deps medypt

But remember to install petsc4py, DOLFINx (need Python interface, and need to be configured with PETSc and ADIOS2), scifem, and Gmsh (need Python interface) first. Follow the instructions on their respective websites for installation.