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

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

Built distributions (wheels)

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

Total release size: 42.1 MB

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

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

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

Download URL xfem-2.2.2608rc2.dev2-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
78b87feea5b311e546ab4c0b85f21676c2872f503e69e074ed5428d256ac03d4
BLAKE2b-256 checksum
How to use checksums
c3cee2b49d3363cffac862df10ecf9aa5d3b340213426348c98b6414ca0bddbb
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.dev2-cp314-cp314-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.dev2-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
650ef7ac54e6d57b03aa1fdba5551a4588099cbac6f37f8738ae2669ce9ed4cc
BLAKE2b-256 checksum
How to use checksums
1dcf3cbe6ba4d7daceb4e3980175068743b522ea2762562953ca23b3a6a3dfcc
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.dev2-cp313-cp313-win_amd64.whl

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

Download URL xfem-2.2.2608rc2.dev2-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
705b51ead256f00e0c0b845cc29123497ee7394df4cf66644c6b721384a070d3
BLAKE2b-256 checksum
How to use checksums
89ba240e2a541aff06caf2f8b9f323b396e12f3e941ebc2eda126ea387f7d75c
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.dev2-cp313-cp313-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.dev2-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
01b5ba7bdc36687036b84fb63def98127f2713a4a69f8a01d7eaea260d547251
BLAKE2b-256 checksum
How to use checksums
60ae35927a21d9664a3c557bc97555b79c3f7bdf67f1b70c1cc5fd55a16f2037
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.dev2-cp312-cp312-win_amd64.whl

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

Download URL xfem-2.2.2608rc2.dev2-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
08da608b2b1bb637020d84e5981e731365f195b873c6bd30bfd5608286c44638
BLAKE2b-256 checksum
How to use checksums
43c06e04513c7dc5ba5ab682e79a994b7cac685204c3c77ec2d5062eff97b273
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.dev2-cp312-cp312-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.dev2-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
838fe8bf092f2f0ea2827afdeadbefe8c11e6ff5798f764c64fa5cd764d78ee1
BLAKE2b-256 checksum
How to use checksums
434fc3ed94d8471eba8b4669205d2100fae64af3028c1a19d344c86301de7713
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.dev2-cp311-cp311-win_amd64.whl

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

Download URL xfem-2.2.2608rc2.dev2-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
fba1720443bdf256d00fd2bd1902dd7c6180dbb5fff43fc4cc6ed7f48f0f9109
BLAKE2b-256 checksum
How to use checksums
2e6225271c1040b7cd486bf3d42f8e9a960f7d0c0e9ba7c26559c823374d660b
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.dev2-cp311-cp311-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.dev2-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
7801a9d018a765cde67fd758bdfc415e7dfa3cee215156569de7af61268d91b5
BLAKE2b-256 checksum
How to use checksums
77ca68ce05ba6e0c63c232b786696786785b0c50c395dcd268477ab32b82d76e
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.dev2-cp310-cp310-win_amd64.whl

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

Download URL xfem-2.2.2608rc2.dev2-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
fba5d9f45179e36709c1bdf3882fbcf090d8cb262fbc73b852ab4c255f2d26d8
BLAKE2b-256 checksum
How to use checksums
473a5cc3ce9c6936560b4a9103bd6de4d6e3a51737a181cb5fdab8758dd89427
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.dev2-cp310-cp310-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.dev2-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
7e93a7a0fba10d7f62ebfced99627a6fcb9b9a23d7264e65e76010b18170cdcb
BLAKE2b-256 checksum
How to use checksums
7ed140fe8374b795ab46bb395cf720733732cdbdbe3c2bc6a51d6feec4bb57c5
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.dev2

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