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.dev4

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.dev4
File Size Uploaded Provenance Actions
xfem-2.2.2608rc2.dev4.tar.gz 2.4 MB Without provenance Details for xfem-2.2.2608rc2.dev4.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for xfem 2.2.2608rc2.dev4
File Actions
xfem-2.2.2608rc2.dev4-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for xfem-2.2.2608rc2.dev4-cp314-cp314-win_amd64.whl
xfem-2.2.2608rc2.dev4-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.dev4-cp314-cp314-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
xfem-2.2.2608rc2.dev4-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.dev4-cp314-cp314-macosx_10_9_universal2.whl
xfem-2.2.2608rc2.dev4-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for xfem-2.2.2608rc2.dev4-cp313-cp313-win_amd64.whl
xfem-2.2.2608rc2.dev4-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.dev4-cp313-cp313-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
xfem-2.2.2608rc2.dev4-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.dev4-cp313-cp313-macosx_10_9_universal2.whl
xfem-2.2.2608rc2.dev4-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for xfem-2.2.2608rc2.dev4-cp312-cp312-win_amd64.whl
xfem-2.2.2608rc2.dev4-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.dev4-cp312-cp312-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
xfem-2.2.2608rc2.dev4-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.dev4-cp312-cp312-macosx_10_9_universal2.whl
xfem-2.2.2608rc2.dev4-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for xfem-2.2.2608rc2.dev4-cp311-cp311-win_amd64.whl
xfem-2.2.2608rc2.dev4-cp311-cp311-manylinux_2_28_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.17+ x86-64 Details for xfem-2.2.2608rc2.dev4-cp311-cp311-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
xfem-2.2.2608rc2.dev4-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.dev4-cp311-cp311-macosx_10_9_universal2.whl
xfem-2.2.2608rc2.dev4-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for xfem-2.2.2608rc2.dev4-cp310-cp310-win_amd64.whl
xfem-2.2.2608rc2.dev4-cp310-cp310-manylinux_2_28_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64, Linux glibc 2.17+ x86-64 Details for xfem-2.2.2608rc2.dev4-cp310-cp310-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
xfem-2.2.2608rc2.dev4-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.dev4-cp310-cp310-macosx_10_9_universal2.whl

Total release size: 42.1 MB

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

Download URL xfem-2.2.2608rc2.dev4.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
0daed8d5ca16a7faa7202749f31147a1dcd10d20c8926ba0f87fc9c326f90717
BLAKE2b-256 checksum
How to use checksums
70fbaed9d761147a00837eaccef0ece15f97a99177676b616dca33c70b214db4
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.dev4-cp314-cp314-win_amd64.whl

Download URL xfem-2.2.2608rc2.dev4-cp314-cp314-win_amd64.whl
Size 2.2 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
7ba9a712a65b4134b9c39920ccc6dd46c74dc48755a7a0d2430f017961eade1e
BLAKE2b-256 checksum
How to use checksums
1bde75c62d885d012287d9fdb7abdb8a54442c5f5bb69e5141e5741588f895c4
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.dev4-cp314-cp314-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL xfem-2.2.2608rc2.dev4-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
5de5a7608ce2a157c5b9cc607ec0fcfca164ce39c3886e1a1355fd463bde5278
BLAKE2b-256 checksum
How to use checksums
24d4bb7c936200c53b4e35ffda9e5a8fbad8325b95867738442401ee3904c759
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.dev4-cp314-cp314-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.dev4-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
4ec0ca098674d3cbd594fb14a3a64449aefb2d6d465c68a60b4fd498bfebe8eb
BLAKE2b-256 checksum
How to use checksums
f88092841329040842bf8eda46a845d58252952ffb91a312eb5f527073259ecc
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.dev4-cp313-cp313-win_amd64.whl

Download URL xfem-2.2.2608rc2.dev4-cp313-cp313-win_amd64.whl
Size 2.1 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
6c06b025a41171fe321319655f4451868cb0326dba87e179d6d8e5b8dd4909f3
BLAKE2b-256 checksum
How to use checksums
aaa75346cd966976728362ebe9fe687b9d3c8a0c5b259d95ba58c8b440853abc
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.dev4-cp313-cp313-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL xfem-2.2.2608rc2.dev4-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
9297308db6f4e38c61750255b12e099a1f17eb1c195b59940f6d36dce6f5fa2b
BLAKE2b-256 checksum
How to use checksums
5546e19a9ce2d0816761f6ba6d372762961fd8d5a18ebbdadc9ac3d39cd6cfb9
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.dev4-cp313-cp313-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.dev4-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
49ab56cb101897d3d87f331ca56a125c1706a952b3d732cb5b40fa6602f02bf7
BLAKE2b-256 checksum
How to use checksums
58f4dfe3a336794ce66f2435164a21bcfab9dadc21e21885bcfb5e025a567caa
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.dev4-cp312-cp312-win_amd64.whl

Download URL xfem-2.2.2608rc2.dev4-cp312-cp312-win_amd64.whl
Size 2.1 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
8344a2e0822c070fff93ff62f22d44dc0f6d4808143a2ca6920bd8025df678c9
BLAKE2b-256 checksum
How to use checksums
bbffa2d5a8efe4de3ecbb3e7160bcca319fe130fb063678d6909b79d0dd77b61
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.dev4-cp312-cp312-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL xfem-2.2.2608rc2.dev4-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
a13b29171d6e926773e90709ef8eb86b585f5e79468e8220f0d80c84101be899
BLAKE2b-256 checksum
How to use checksums
04197466c403638a0d88d13ce1eb25ec30c82d5b057f4bb792e0353734c62369
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.dev4-cp312-cp312-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.dev4-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
11cb59d24a53458b6b655680f69fd18b0cb0537ed2ecbc9eb6586712217b3cb0
BLAKE2b-256 checksum
How to use checksums
a0968757d4c875579a26f4908c1611f385747018b85fe6956aa76900b90f5540
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.dev4-cp311-cp311-win_amd64.whl

Download URL xfem-2.2.2608rc2.dev4-cp311-cp311-win_amd64.whl
Size 2.1 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
6023cca3d67996176da538ab74fa28afafcca36e92e6b92bd0b46b2b857c253e
BLAKE2b-256 checksum
How to use checksums
834963c7e3c2d2a33a5684e916860d16fac5f8986f81d6a13671f3d627833e65
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.dev4-cp311-cp311-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL xfem-2.2.2608rc2.dev4-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
db34d76a89778d4284977403af1d534c61f241d5db38a63213ea48cc02790b9c
BLAKE2b-256 checksum
How to use checksums
71a2a8dd2c9e7b9ee7e38014fd9edd19d857526e00d87191fe0b05748e5ccc76
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.dev4-cp311-cp311-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.dev4-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
2d6bdfeea030c480056cb7b6e28930a440e33626db8e1d7233034903fb99f24a
BLAKE2b-256 checksum
How to use checksums
4a932ac9416a6ec6b471f13fdb5fdd1ccb56291d5252a5b5c4d0f11c048b4b95
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.dev4-cp310-cp310-win_amd64.whl

Download URL xfem-2.2.2608rc2.dev4-cp310-cp310-win_amd64.whl
Size 2.1 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
4d185680d3eefc4766d6148cf033ea46a8cf4389b4ea5bcebcdb470bdbcbd7a4
BLAKE2b-256 checksum
How to use checksums
d946e378d7070da421fc36809270e304f40607b6dd89970215eddd00b98e5421
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.dev4-cp310-cp310-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL xfem-2.2.2608rc2.dev4-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
b4165e598316bc559d84bcb6913247600a4d2c07153e26ed40be49561394faa8
BLAKE2b-256 checksum
How to use checksums
141d6b398bc3944f2cccca186b2e8687b2b4a0eefffd3bfc7e849c8e4ecfe8a2
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.dev4-cp310-cp310-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.dev4-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
c9da58f5502d8fb877f37162c3dabe17955f07c5d1c9dfaee52953ec00f87b3b
BLAKE2b-256 checksum
How to use checksums
bdbc7861ad2bfacd679e1a14194bfe44e3713c469f99e898c10e19e90bea0db7
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.dev4

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