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.2609.dev5

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.2609.dev5
File Size Uploaded Provenance Actions
xfem-2.2.2609.dev5.tar.gz 2.4 MB Without provenance Details for xfem-2.2.2609.dev5.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for xfem 2.2.2609.dev5
File Actions
xfem-2.2.2609.dev5-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for xfem-2.2.2609.dev5-cp314-cp314-win_amd64.whl
xfem-2.2.2609.dev5-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.2609.dev5-cp314-cp314-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
xfem-2.2.2609.dev5-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.2609.dev5-cp314-cp314-macosx_10_9_universal2.whl
xfem-2.2.2609.dev5-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for xfem-2.2.2609.dev5-cp313-cp313-win_amd64.whl
xfem-2.2.2609.dev5-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.2609.dev5-cp313-cp313-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
xfem-2.2.2609.dev5-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.2609.dev5-cp313-cp313-macosx_10_9_universal2.whl
xfem-2.2.2609.dev5-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for xfem-2.2.2609.dev5-cp312-cp312-win_amd64.whl
xfem-2.2.2609.dev5-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.2609.dev5-cp312-cp312-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
xfem-2.2.2609.dev5-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.2609.dev5-cp312-cp312-macosx_10_9_universal2.whl
xfem-2.2.2609.dev5-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for xfem-2.2.2609.dev5-cp311-cp311-win_amd64.whl
xfem-2.2.2609.dev5-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.2609.dev5-cp311-cp311-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
xfem-2.2.2609.dev5-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.2609.dev5-cp311-cp311-macosx_10_9_universal2.whl
xfem-2.2.2609.dev5-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for xfem-2.2.2609.dev5-cp310-cp310-win_amd64.whl
xfem-2.2.2609.dev5-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.2609.dev5-cp310-cp310-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
xfem-2.2.2609.dev5-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.2609.dev5-cp310-cp310-macosx_10_9_universal2.whl

Total release size: 42.2 MB

Release files / xfem-2.2.2609.dev5.tar.gz

Download URL xfem-2.2.2609.dev5.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
bde9fbdeb32c1c0b4307be243bfba86f69b1ccb0c668990fac1cb3df53bb1712
BLAKE2b-256 checksum
How to use checksums
1148518cf737cc1a1aa6feef8c119b42daed1f2bd5ff4e132fda5fcc6e634e43
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.2609.dev5-cp314-cp314-win_amd64.whl

Download URL xfem-2.2.2609.dev5-cp314-cp314-win_amd64.whl
Size 2.2 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
48db36da945139e45f6aafd913e30d80656fe238eb854fdeaa8826bd8f2a5046
BLAKE2b-256 checksum
How to use checksums
e7365ffb9f3690337500ab6430f0eb4d3347a957a053c95394a8b1504285dece
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.2609.dev5-cp314-cp314-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL xfem-2.2.2609.dev5-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
31646fd4a8c9038e0c01e7dbfcc7143e1731e0e2ed4c43fe789e75e84bedab67
BLAKE2b-256 checksum
How to use checksums
bfbb37351168b4bf25eadb2836bf536c0db01cf249d3e91cf2fb1b00bafa4a0f
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.2609.dev5-cp314-cp314-macosx_10_9_universal2.whl

Download URL xfem-2.2.2609.dev5-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
e0cc78a0be6c97bbc32294200c977e4281947664a0db2e6708792078e4fa0dc0
BLAKE2b-256 checksum
How to use checksums
9bbd7bd2d7723ad2018683bb3dfbfde0fd9556c6953af00880d457dd0f4a4680
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.2609.dev5-cp313-cp313-win_amd64.whl

Download URL xfem-2.2.2609.dev5-cp313-cp313-win_amd64.whl
Size 2.1 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
5190338cfc6d5eaac362ba85aeaf6814e02c482a22c2c960145dab2ca830aeb5
BLAKE2b-256 checksum
How to use checksums
45749941807fad6c2fc8b6d44ed8bf8db68247b692424b7895b80b24fba1fb43
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.2609.dev5-cp313-cp313-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL xfem-2.2.2609.dev5-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
7a060028bd80a8e4839198430ce4a07490e88286a344d19b11228690e98687e0
BLAKE2b-256 checksum
How to use checksums
5c79e920b66308f2628f1e1b126512abe53f0bbda6a3e7924bfb95497fe45efd
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.2609.dev5-cp313-cp313-macosx_10_9_universal2.whl

Download URL xfem-2.2.2609.dev5-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
0dc81be889bfeaa2727330ba07d95decd4460293a5fb1b7493203a3e31b91f12
BLAKE2b-256 checksum
How to use checksums
e90a3209e699d8d09a71eca8ae4d596e90a111645e06a685831516bf1ffee7e2
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.2609.dev5-cp312-cp312-win_amd64.whl

Download URL xfem-2.2.2609.dev5-cp312-cp312-win_amd64.whl
Size 2.1 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
03fda017cbd6109bf24d99428601a34d8f27d1122b3e07512a3e0b136172f47a
BLAKE2b-256 checksum
How to use checksums
7bc4281006a6bfa15bb86fc2c62c5214212a85b7cf8669d0593fbea767f752eb
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.2609.dev5-cp312-cp312-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL xfem-2.2.2609.dev5-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
9a4a9a253e0a376bf195cba4efdce8b6a413ff77a8d08b0f1c1f26c31bedaeb0
BLAKE2b-256 checksum
How to use checksums
ed9e8d5f929b224672244b61d736ed3da3c2bec48f835303cabe946a3da419f0
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.2609.dev5-cp312-cp312-macosx_10_9_universal2.whl

Download URL xfem-2.2.2609.dev5-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
41e59ebf0d19c8fce926ebdc166211df4cf00f8ecd84a2f5fd3b19311f2570b5
BLAKE2b-256 checksum
How to use checksums
85b8f69a681f310673a54caa7594c96edc3783055f78a90e7bac59da8da6d1ce
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.2609.dev5-cp311-cp311-win_amd64.whl

Download URL xfem-2.2.2609.dev5-cp311-cp311-win_amd64.whl
Size 2.1 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
d1af971fc675c85a3b49114fdd750d3c9a2ea04c67eaebf0afe6cefd0e66ee2f
BLAKE2b-256 checksum
How to use checksums
4bd09a7a4a0c8b02ff33709f1ca6f8d20524bb01b61fba65464e7bf4fa6bd375
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.2609.dev5-cp311-cp311-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL xfem-2.2.2609.dev5-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
eef07372426087b0b542a42c130f3359c8f7b0f5ffbbc5d73fffc10cc1b89744
BLAKE2b-256 checksum
How to use checksums
2eacada607bc17035348d8279bc04db075d1dc1bf1eae2e86d0ab5ca31209a63
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.2609.dev5-cp311-cp311-macosx_10_9_universal2.whl

Download URL xfem-2.2.2609.dev5-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
4a3a04b011cdafa9d3b35b3a1957d1c2595c043daf93c30bffcc716726216d95
BLAKE2b-256 checksum
How to use checksums
57e6c9a9fd86ee19b2240c3ad9200ee4d7030bc80016540ee9232b2e1b5a9ce5
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.2609.dev5-cp310-cp310-win_amd64.whl

Download URL xfem-2.2.2609.dev5-cp310-cp310-win_amd64.whl
Size 2.1 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
9c138a849541b6c97ccaedea93468eda420ecc8f5657341719dcc9e7069d92df
BLAKE2b-256 checksum
How to use checksums
707db7c963ad493503c29005a6e5c6d0b313746b8a819ffccbe423024b0febbc
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.2609.dev5-cp310-cp310-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL xfem-2.2.2609.dev5-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
03343be291159c2e3bb72dd3f1b466de55d69405acb532a62845c86f57ee519a
BLAKE2b-256 checksum
How to use checksums
28dbda81b93d37e320f3e699ceb3d36ede6020191244ca2f23208036b5608bb6
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.2609.dev5-cp310-cp310-macosx_10_9_universal2.whl

Download URL xfem-2.2.2609.dev5-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
44be1303e7320991a675877f0a3183658c85d08e1a97d9456129dfc27e9e4d1d
BLAKE2b-256 checksum
How to use checksums
d9a1835e86bb04afa4bf58399ddec1427382a5b03c62059b69ee6fe5ecfd632e
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.2609.dev5

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