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

Built distributions (wheels)

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

Total release size: 42.1 MB

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

Download URL xfem-2.2.2608rc2.dev5.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
5779f1c342f2c37eb9ae3ab65308b4090c1f9cc1130b7b37937ffe637648ea8c
BLAKE2b-256 checksum
How to use checksums
d0dd7ad810eeb6d2eaa1543a7f36b61a5837196bcef71e93feb608cf57611541
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.dev5-cp314-cp314-win_amd64.whl

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

Download URL xfem-2.2.2608rc2.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
61a0eadeed0d6554c6dfab5625b525fc750f064dd99e16eab45a887d403bab5e
BLAKE2b-256 checksum
How to use checksums
7f47c70119c3584fe2138689f30c20a3ef772828e8564cc5802f0ce11c6516d5
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.dev5-cp314-cp314-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.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
0b621b54589e68718676c1cce362721f0a326307d57fd3d06ca8f5f2236cd8e9
BLAKE2b-256 checksum
How to use checksums
57fdc26decaed9183b9f61103ecd47cb692511c74252d910406a6b7d165a063f
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.dev5-cp313-cp313-win_amd64.whl

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

Download URL xfem-2.2.2608rc2.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
e566725fa69a7a5a99c8d2731da323621c7be1022c8401f16b6a27483abcc517
BLAKE2b-256 checksum
How to use checksums
fc60c3a288e58ef2d4ea22f1bf6e63547f9d410a8587464027ec9f99d0a90039
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.dev5-cp313-cp313-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.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
be2662abcf488535d1f682efa66bb075c5b28e56c3648320883fa9c45ba9895c
BLAKE2b-256 checksum
How to use checksums
35afc7f148c074f4f052dbb972b08f4640eb748e9638c5a9b40d16e894999c09
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.dev5-cp312-cp312-win_amd64.whl

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

Download URL xfem-2.2.2608rc2.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
12298f09c567439ff290151dafea30972943e270a995608140f2c9ea344045b7
BLAKE2b-256 checksum
How to use checksums
a263448a1300612f1152d88d902d5c865ab2c49ae049cc63d5cc0967bccf2d9b
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.dev5-cp312-cp312-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.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
77d168d8199452a403624799640e3ba0e33aee311509243d8e0104d83e078e49
BLAKE2b-256 checksum
How to use checksums
18026bd41d425ac9ec746a09c3518b70f2beb6994990db2f92b5c37af736d316
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.dev5-cp311-cp311-win_amd64.whl

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

Download URL xfem-2.2.2608rc2.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
378ccfe25b0b7afc2836837a7b088e4198f6d5a89fdf1ebf639b9bd2ae78bb77
BLAKE2b-256 checksum
How to use checksums
73765127a88b359914505a4e5f58138d223649be3457fa21cf731fe473b5c427
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.dev5-cp311-cp311-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.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
af5917c6da19481da7cf9e0334ec6e592cac4d9fddc915eb8a22fc88defe9fe5
BLAKE2b-256 checksum
How to use checksums
3469a118bc7cd1eb4f23f09549d4109760db04c3c4192a9853b9ebbcfe96812d
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.dev5-cp310-cp310-win_amd64.whl

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

Download URL xfem-2.2.2608rc2.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
bc71ab032294aa61b54bb94fa686fb7d5bd69e0a086e110954ba35c7326e0945
BLAKE2b-256 checksum
How to use checksums
24bfd15e2dd6d53e8aa71adeb3dc311d9e409bfb50d9effb9cedb1aa38b25823
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.dev5-cp310-cp310-macosx_10_9_universal2.whl

Download URL xfem-2.2.2608rc2.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
26527eebd509efd9922cbdaf9265c14780a7b24eebc2971d1c814ffb84043dab
BLAKE2b-256 checksum
How to use checksums
600df41d9910348fe1e14ad0e2f3d07a9b538172da05322a9eeaaa4c3ead5863
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.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