Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

GitHub Workflow Status GitHub release (latest by date) jossstatus

PyPI PyPI - Implementation PyPI - Downloads

Docker Pulls badge

lite-badge

Documentation

A preliminary collection of documentation (demos, tutorials, mini API) can be found here and is also part of the i-tutorials of NGSolve, see here. A simple doxygen collection of NGSolve, ngsxfem and ngstrefftz C++ API can be found here.

About ngsxfem

ngsxfem is an add-on library to the finite element package Netgen/NGSolve which enables the use of unfitted finite element technologies known as XFEM, CutFEM, TraceFEM, Finite Cell, ... . ngsxfem is an academic software. Its primary intention is to facilitate the development and validation of new numerical methods for partial differential equations.

The features of ngsxfem

The main features of ngsxfem are:

  • Tools to work on a subset of the triangulation, the "active mesh" only
  • Numerical integration on geometries that are (implicitly) described through level set functions (for higher order level set functions with the high order quadrature of Algoim).
  • Higher order representation of level set geometries
  • Space-Time Finite Elements for the treatment of moving domain problems
  • All these features combined with the usual flexibility and power of NGSolve.

ngsxfem has been used in a variety of applications. In the document doc/feature-details.md (see also compiled pdf ) more details on the features is given and in doc/literature.md (see also the rendered literature page and the compiled pdf ) an overview of the scientific literature where ngsxfem is used is provided. If you have used ngsxfem in a publication that is missing there, please open an issue or a pull request (the list is generated from doc/literature.yaml).

Not all features of ngsxfem and NGSolve can directly be combined. Here is an overview of ngsxfem and NGSolve features and if they can directly be combined:

Features ⇲ CFE XFE DG Iso MLS ST Gh Ag Hex Tet MPI
CFE: CutFEM form. / / y y y y y y y y y
XFE: XFEM formulation / / y y n n y n y y y
DG: Discont. Galerkin y y / y n y y y y y n
Iso: isoparametric map y y y / n y y y y y y
MLS: multiple level set y n n n / n y y n y y
ST: space-time FEM y n y y n / y n y y y
Gh: Ghost penalty y y y y y y / / y y n
Ag: Agg. FEM y n y y y n / / y y n
Hex: quads / hexes y y y y n y y y / / y
Tet: trigs./tets y y y y y y y y / / y
MPI: MPI y y n y y y n n y y /

Some of the nos are work in progress and some have not been considered so far. If you need a certain combination to work, please contact us and we will see what we can do (MPI for Gh is planned for the not so far future).

Examples and Documentation

We provide two main sources with which to learn how to use ngsxfem:

  • At https://github.com/ngsxfem/ngsxfem-jupyter you can find tutorial-style jupyter notebooks for ngsxfem. These explain the core functionalities and usage of the tools provided by ngsxfem. You can run those tutorials interactively (without the need of a local installation) through binder.
  • In the demos-directory we provide several examples that demonstrate the usage of ngsxfem features. See demos/README.md for details.

Installation

We provide installation instructions for building/installing through pip and building/installing from sources in INSTALLATION.md. Further, a docker image is available which can be used to run ngsxfem through docker.

List of contributing authors

Major contributions:

  • Christoph Lehrenfeld (main author)
  • Fabian Heimann (cut integration, space-time, AggFEM)
  • Henry von Wahl (multiple levelsets, mac support, AggFEM)
  • Janosch Preuss (space-time)
  • Thomas Ludescher (multigrid)
  • Paul Stocker (CI, docu, builds, AggFEM)

Additional contributions:

  • Pedro Costa Klein (CI, docu)
  • Maximilian Zienecker (SIMD, CI)

Third-party software

ngsxfem bundles a subset of Algoim by Robert I. Saye (Lawrence Berkeley National Laboratory), which provides the high order quadrature on cut elements for higher order level set functions (see ngsxfemglobals.cut_quadrature and dCut(..., cut_quadrature=...)). Algoim is distributed under a modified BSD license, see external_dependencies/algoim for the license, the bundled version and the (few) modifications.

Community guidelines

If you observe any problems with the software / examples / documentation / installation or want to contribute, you can get in touch with us through either:

Citing

If you use ngsxfem for academic work, please consider citing our publication:

C. Lehrenfeld, F. Heimann, J. Preuß and H. von Wahl
ngsxfem: Add-on to NGSolve for geometrically unfitted finite element discretizations
Journal of Open Source Software, 6(64), 3237,
https://doi.org/10.21105/joss.03237

If you use the Algoim-based quadrature (higher order level set functions with cut_quadrature="auto" (default) or "algoim"), please also cite

R. I. Saye
High-order quadrature on multi-component domains implicitly defined by multivariate polynomials
Journal of Computational Physics, 448, 110720, 2022,
https://doi.org/10.1016/j.jcp.2021.110720

Metadata

Release files for xfem 2.2.2608rc2.dev10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xfem 2.2.2608rc2.dev10
File Size Uploaded Provenance Actions
xfem-2.2.2608rc2.dev10.tar.gz 2.4 MB Without provenance Details for xfem-2.2.2608rc2.dev10.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for xfem 2.2.2608rc2.dev10
File Actions
xfem-2.2.2608rc2.dev10-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for xfem-2.2.2608rc2.dev10-cp314-cp314-win_amd64.whl
xfem-2.2.2608rc2.dev10-cp314-cp314-manylinux_2_28_x86_64.manylinux2014_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64, Linux glibc 2.17+ x86-64 Details for xfem-2.2.2608rc2.dev10-cp314-cp314-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
xfem-2.2.2608rc2.dev10-cp314-cp314-macosx_10_9_universal2.whl CPython 3.14 CPython 3.14 macOS 10.9+ universal2 (ARM64, x86-64) Details for xfem-2.2.2608rc2.dev10-cp314-cp314-macosx_10_9_universal2.whl
xfem-2.2.2608rc2.dev10-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for xfem-2.2.2608rc2.dev10-cp313-cp313-win_amd64.whl
xfem-2.2.2608rc2.dev10-cp313-cp313-manylinux_2_28_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for xfem-2.2.2608rc2.dev10-cp313-cp313-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
xfem-2.2.2608rc2.dev10-cp313-cp313-macosx_10_9_universal2.whl CPython 3.13 CPython 3.13 macOS 10.9+ universal2 (ARM64, x86-64) Details for xfem-2.2.2608rc2.dev10-cp313-cp313-macosx_10_9_universal2.whl
xfem-2.2.2608rc2.dev10-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for xfem-2.2.2608rc2.dev10-cp312-cp312-win_amd64.whl
xfem-2.2.2608rc2.dev10-cp312-cp312-manylinux_2_28_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for xfem-2.2.2608rc2.dev10-cp312-cp312-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
xfem-2.2.2608rc2.dev10-cp312-cp312-macosx_10_9_universal2.whl CPython 3.12 CPython 3.12 macOS 10.9+ universal2 (ARM64, x86-64) Details for xfem-2.2.2608rc2.dev10-cp312-cp312-macosx_10_9_universal2.whl
xfem-2.2.2608rc2.dev10-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for xfem-2.2.2608rc2.dev10-cp311-cp311-win_amd64.whl
xfem-2.2.2608rc2.dev10-cp311-cp311-manylinux_2_28_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for xfem-2.2.2608rc2.dev10-cp311-cp311-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
xfem-2.2.2608rc2.dev10-cp311-cp311-macosx_10_9_universal2.whl CPython 3.11 CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) Details for xfem-2.2.2608rc2.dev10-cp311-cp311-macosx_10_9_universal2.whl
xfem-2.2.2608rc2.dev10-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for xfem-2.2.2608rc2.dev10-cp310-cp310-win_amd64.whl
xfem-2.2.2608rc2.dev10-cp310-cp310-manylinux_2_28_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for xfem-2.2.2608rc2.dev10-cp310-cp310-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
xfem-2.2.2608rc2.dev10-cp310-cp310-macosx_10_9_universal2.whl CPython 3.10 CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) Details for xfem-2.2.2608rc2.dev10-cp310-cp310-macosx_10_9_universal2.whl

Total release size: 42.2 MB

Release files / xfem-2.2.2608rc2.dev10.tar.gz

Download URL xfem-2.2.2608rc2.dev10.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
adcc5b7ffed145e6bdf7aa574a9ca5c1ca94900cd6fe8e89bb9aac8af11b31be
BLAKE2b-256 checksum
How to use checksums
27d7986bc95fdf96cddd8fe14c09216bdbcba0bc647fa94a6f80de58b2de8d50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / xfem-2.2.2608rc2.dev10-cp314-cp314-win_amd64.whl

Download URL xfem-2.2.2608rc2.dev10-cp314-cp314-win_amd64.whl
Size 2.2 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
61f1bf5a443ff7f85d35e8771f9bb70fb5790a91abc648537fee1705bc60771b
BLAKE2b-256 checksum
How to use checksums
43299f838fe23c24cc0a5caff923103d5f666580ff6fcac302f02cd0b2b44917
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / xfem-2.2.2608rc2.dev10-cp314-cp314-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL xfem-2.2.2608rc2.dev10-cp314-cp314-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
Size 2.3 MB
Tags CPython 3.14 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
859b51b90803387afff3b5d888d7db5a31946f3f162200e098bc129c7730b214
BLAKE2b-256 checksum
How to use checksums
d54f6a3a4cae7e6d1b0e859629426a8c683055b95dfea6f4a4f63d0a449db9c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / xfem-2.2.2608rc2.dev10-cp314-cp314-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.dev10-cp314-cp314-macosx_10_9_universal2.whl
Size 3.5 MB
Tags CPython 3.14 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
b0f6952cca1aadf1436adf130c5a4b7f54ad770209a5e4bab01b13408d8db358
BLAKE2b-256 checksum
How to use checksums
1dd5f4db43688fe291269c54af961c240e2b1ae7f756a255d75af7a21d6317b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / xfem-2.2.2608rc2.dev10-cp313-cp313-win_amd64.whl

Download URL xfem-2.2.2608rc2.dev10-cp313-cp313-win_amd64.whl
Size 2.1 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
e629475520edd5e709fb742a8251cddeb28b7f911002db173c88213e03b9e49e
BLAKE2b-256 checksum
How to use checksums
759d51996b160587552c2e29f49df525ed90afade3ef7eaebb4f93e9189b7772
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / xfem-2.2.2608rc2.dev10-cp313-cp313-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL xfem-2.2.2608rc2.dev10-cp313-cp313-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
Size 2.3 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
8a85ed576f8894fc5fd27440dc241505eac0fdf97f3292a0866b74ea516f66c9
BLAKE2b-256 checksum
How to use checksums
e051df8674ecca83b14b0348bbeb9ad7d1791481df08b27cd91861281e0925b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / xfem-2.2.2608rc2.dev10-cp313-cp313-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.dev10-cp313-cp313-macosx_10_9_universal2.whl
Size 3.5 MB
Tags CPython 3.13 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
8f1ba03490d485c005e60e0cba4f31ce28d441014ecced300bd3af582b18e1b7
BLAKE2b-256 checksum
How to use checksums
6b3e0fe27ca250d821bdb8b49cc82ac8a2ea8db1394591da216945ba0c609603
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / xfem-2.2.2608rc2.dev10-cp312-cp312-win_amd64.whl

Download URL xfem-2.2.2608rc2.dev10-cp312-cp312-win_amd64.whl
Size 2.1 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
5148a1e7b0df96d5e06cb96cabb61cc1e02d47d530ade9abf1da4cd99399e2fb
BLAKE2b-256 checksum
How to use checksums
70077d5a6c984788f70b59765abcbabf1ff91be90c39d202e657a0f9f1036332
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / xfem-2.2.2608rc2.dev10-cp312-cp312-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL xfem-2.2.2608rc2.dev10-cp312-cp312-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
Size 2.3 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
45a48b84d9d1f55001544ecd624383e59355048e43d59a1f2814c29e1df34305
BLAKE2b-256 checksum
How to use checksums
d2929e8ca02268dde32ca85d9db8d97fcfe8f744377fcaba6b7de692f7480123
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / xfem-2.2.2608rc2.dev10-cp312-cp312-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.dev10-cp312-cp312-macosx_10_9_universal2.whl
Size 3.5 MB
Tags CPython 3.12 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
0b49ac1182f2e1216bff9f37fdb7fedab6e883d0409df92937d986af7ff5e6b4
BLAKE2b-256 checksum
How to use checksums
7f7f4ffa1deeba3672dff6d03a0a015b0dad8decfc8e2d01db76d7debe9a7cb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / xfem-2.2.2608rc2.dev10-cp311-cp311-win_amd64.whl

Download URL xfem-2.2.2608rc2.dev10-cp311-cp311-win_amd64.whl
Size 2.1 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
688c52eb2d45034a53ecde8a72eac6db51ce536b590bc14a304eb76c79698a20
BLAKE2b-256 checksum
How to use checksums
8bb5c6604808e737ba3c31b0b8ef38e2a4235dda4969609c8a4f092b8c00ad2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / xfem-2.2.2608rc2.dev10-cp311-cp311-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL xfem-2.2.2608rc2.dev10-cp311-cp311-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
Size 2.3 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1153f7a0fb7a5eeb138c2df106a727dd6d06afc538e3752b84b042b65faff582
BLAKE2b-256 checksum
How to use checksums
5d360a1fba8bf3fd279f222a400aee0ef297978d05afde247da0efb7685189c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / xfem-2.2.2608rc2.dev10-cp311-cp311-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.dev10-cp311-cp311-macosx_10_9_universal2.whl
Size 3.5 MB
Tags CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
f2705e33697281f4f6caadc5fc825e09ff7ea644da7035c36cdcc9ef8042a20f
BLAKE2b-256 checksum
How to use checksums
ce7eec3fee9b2d04e7e62371ab96113bf5dcbe38948a340792df57acc9da3aea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / xfem-2.2.2608rc2.dev10-cp310-cp310-win_amd64.whl

Download URL xfem-2.2.2608rc2.dev10-cp310-cp310-win_amd64.whl
Size 2.1 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
235d0127d517c29e0ff59d337958f5bfde7643696d78bde8850900b0cadd51ea
BLAKE2b-256 checksum
How to use checksums
73fdaa77d6206cdfb23e998011cb5a48f2563d74bb584d294c9a5b0f64d427c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / xfem-2.2.2608rc2.dev10-cp310-cp310-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL xfem-2.2.2608rc2.dev10-cp310-cp310-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
Size 2.3 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
0d0100d150bc1ee98075daf7b9a4f90c79654faa5f9de16b7233782ad5e852dc
BLAKE2b-256 checksum
How to use checksums
876a5675a63bd7b7966ab986281cbb3375ac60091694f7edc983827d5282af8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / xfem-2.2.2608rc2.dev10-cp310-cp310-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.dev10-cp310-cp310-macosx_10_9_universal2.whl
Size 3.5 MB
Tags CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
a16ade90cecd5a9d85f9502765ad2be0986871f7adb50d2e5a408e9741c0e800
BLAKE2b-256 checksum
How to use checksums
055a5aaf7f601e3c620e7102241459fcb4c0aa9f9310b3ee9be5baf96aa23bb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for xfem 2.2.2608rc2.dev10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page