Metadata-Version: 2.2
Name: xfem
Version: 2.1.2506.dev16
Summary: (ngs)xfem is an Add-on library to Netgen/NGSolve for unfitted/cut FEM.
Author-Email: Christoph Lehrenfeld <lehrenfeld@math.uni-goettingen.de>
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Project-URL: github, https://github.com/ngsxfem/ngsxfem
Requires-Python: >=3.9
Requires-Dist: ngsolve==6.2.2506
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Description-Content-Type: text/markdown

[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/ngsxfem/ngsxfem/pypi.yml?branch=master&label=build%20and%20pypi&logo=github)](https://github.com/ngsxfem/ngsxfem/actions/workflows/pypi.yml) 
 [![GitHub release (latest by date)](https://img.shields.io/github/v/release/ngsxfem/ngsxfem?label=latest%20release&logo=github)](https://github.com/ngsxfem/ngsxfem) 
[![jossstatus](https://joss.theoj.org/papers/9fda1eadfc58af64b89dc7f27043f4cb/status.svg)](https://joss.theoj.org/papers/9fda1eadfc58af64b89dc7f27043f4cb)

 

[![PyPI](https://img.shields.io/pypi/v/xfem?color=blue&label=latest%20PyPI%20version&logo=pypi&logoColor=white)](https://pypi.org/project/xfem/)
[![PyPI - Implementation](https://img.shields.io/pypi/implementation/xfem?logo=pypi&logoColor=white)](https://pypi.org/project/xfem/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/xfem?color=green&label=PyPI%20downloads&logo=pypi&logoColor=white)](https://pypi.org/project/xfem/)

[![Docker Pulls](https://img.shields.io/docker/pulls/ngsxfem/ngsxfem?logo=docker&logoColor=white)](https://hub.docker.com/repository/docker/ngsxfem/ngsxfem) 
[![badge](https://img.shields.io/badge/launch-jupyter--tutorials-579ACA.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFkAAABZCAMAAABi1XidAAAB8lBMVEX///9XmsrmZYH1olJXmsr1olJXmsrmZYH1olJXmsr1olJXmsrmZYH1olL1olJXmsr1olJXmsrmZYH1olL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ADuTNKaQJdScAAAAAElFTkSuQmCC)](https://mybinder.org/v2/gh/ngsxfem/ngsxfem-jupyter/HEAD?filepath=tutorials.ipynb)

[![lite-badge](https://jupyterlite.rtfd.io/en/latest/_static/badge.svg)](https://ngsuite.pages.gwdg.de/ngsxfem-jupyter/lab/index.html)

### Documentation

A *preliminary* collection of documentation (demos, tutorials, mini API) can be found [here](https://ngsuite.pages.gwdg.de/ngsxfem/) and is also part of the i-tutorials of NGSolve, see [here](https://docu.ngsolve.org/latest/i-tutorials/index.html#unfitted-finite-elements).
A simple doxygen collection of `NGSolve`, `ngsxfem` and `ngstrefftz` C++ API can be found [here](https://ngsuite.pages.gwdg.de/ngs-doxygen/).

# About `ngsxfem`

`ngsxfem` is an add-on library to the finite element package [Netgen/NGSolve](https://ngsolve.org) 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.
* 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](https://ngsolve.org).

`ngsxfem` has been used in a variety of applications. In the document [doc/feature-details.md](doc/feature-details.md) (see also [compiled pdf](https://nightly.link/ngsxfem/ngsxfem/workflows/extras-workflow/master/doc-features.zip) ) more details on the features is given and in [doc/literature.md](doc/literature.md) (see also [literature](https://nightly.link/ngsxfem/ngsxfem/workflows/extras-workflow/master/doc-literature.zip) ) an overview of the scientific literature where `ngsxfem` is used is provided.

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 *no*s 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](./demos)-directory we provide several examples that demonstrate the usage of `ngsxfem` features. See [demos/README.md](demos/README.md) for details.

# Installation
 We provide installation instructions for building/installing through `pip` and building/installing from sources in [INSTALLATION.md](INSTALLATION.md). Further, [a docker image](https://hub.docker.com/r/ngsxfem/ngsxfem) 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)

# 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:
* the [github issue tracker](https://github.com/ngsxfem/ngsxfem/issues) 
* the [NGSolve user forum](https://forum.ngsolve.org/tag/ngsxfem).

# 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
```

