# Fenicsx\_pml just released

**URL:** <https://fenicsproject.discourse.group/t/fenicsx-pml-just-released/19557>\
**Category:** External libraries\
**Created:** [February 27, 2026, 2:00pm UTC](https://fenicsproject.discourse.group/t/fenicsx-pml-just-released/19557 "2026-02-27T14:00:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bay\_swiss](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/bay_swiss/32/8778_2.png) [@bay\_swiss](https://fenicsproject.discourse.group/u/bay_swiss)\
**Post date:** [February 27, 2026, 2:00pm UTC](https://fenicsproject.discourse.group/t/fenicsx-pml-just-released/19557/1 "2026-02-27T14:00:34Z")

</div>

I have just released fenicsx\_pml.

This module is a complete refactor and serves as the official replacement for the legacy autogen\_LC\_PML repository.

Updates include:

- Custom vectorized layer extrusion. Extrudes directly from gmsh meshes. The old geometry-only approach is gone.
- Fully MPI-ready
- Simplified math: I completely removed the need to calculate principal curvatures and principal directions.

There is a working demo for acoustic wave propagation (Helmholtz) included in the repo.

Regarding electromagnetics, the exact same coordinate stretching could be applied to the time-harmonic Maxwell’s equations. If you are an EM expert who actually enjoys assembling curl-curl operators in UFL, we can add another demo!

Repo: [https://github.com/bayswiss/fenicsx\_pml](https://github.com/bayswiss/fenicsx_pml)

Install:

```bash
git clone https://github.com/bayswiss/fenicsx_pml.git
cd fenicsx_pml
pip install .

```

P.S. report any bugs you may find, thank you!
