Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paulst/ngstrefftz
Add-On to NGSolve for Trefftz methods
https://github.com/paulst/ngstrefftz
finite-element-method numerical-methods open-source trefftz-methods
Last synced: 3 months ago
JSON representation
Add-On to NGSolve for Trefftz methods
- Host: GitHub
- URL: https://github.com/paulst/ngstrefftz
- Owner: PaulSt
- License: lgpl-3.0
- Created: 2020-11-06T17:51:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-06T15:02:12.000Z (3 months ago)
- Last Synced: 2024-11-06T15:53:58.598Z (3 months ago)
- Topics: finite-element-method, numerical-methods, open-source, trefftz-methods
- Language: C++
- Homepage: https://paulst.github.io/NGSTrefftz/
- Size: 3.35 MB
- Stars: 14
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# NGSTrefftz
**an add-on to NGSolve for Trefftz methods**[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/PaulSt/NGSTrefftz/HEAD?filepath=docs%2Fnotebooks%2Findex.ipynb)
[![Docker Image Version (latest semver)](https://img.shields.io/docker/v/paulstdocker/ngstrefftz?label=docker&logo=docker&sort=semver)](https://hub.docker.com/r/paulstdocker/ngstrefftz)
[![PyPI](https://img.shields.io/pypi/v/ngstrefftz?color=blue&logo=pypi)](https://pypi.org/project/ngstrefftz/)
[![GitHub Workflow Status](https://github.com/PaulSt/NGSTrefftz/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/PaulSt/NGSTrefftz/actions/workflows/build.yml)
[![status](https://joss.theoj.org/papers/c2f4e85b118c22b81aa27d7799265409/status.svg)](https://joss.theoj.org/papers/c2f4e85b118c22b81aa27d7799265409)
[![docs](https://img.shields.io/badge/docs-NGSTrefftz-blue?logo=readthedocs)](https://paulst.github.io/NGSTrefftz/)NGSTrefftz provides a framework to implement Trefftz finite element spaces for [NGSolve](https://www.ngsolve.org), with several Trefftz spaces already implemented. Additionally, Trefftz-DG on tent-pitched meshes for the acoustic wave equation is implemented using meshes provided by [ngstents](https://github.com/jayggg/ngstents). Furthermore, the package includes an implementation of the embedded Trefftz method.
## Try it out!
You can try out some jupyter notebooks:
* Launch the Binder here:
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/PaulSt/NGSTrefftz/HEAD?filepath=docs%2Fnotebooks%2Findex.ipynb)
* Or run the docker locally (you need to have docker installed):```bash
git clone https://github.com/PaulSt/NGSTrefftz
cd NGSTrefftz && docker build -t ngstrefftz_jupyter .
docker run -p 8888:8888 ngstrefftz_jupyter
```## Installing the package
You can either:
* install using pip```bash
pip install ngstrefftz
```* or build from source
```bash
git clone --recursive https://github.com/PaulSt/NGSTrefftz
mkdir ./NGSTrefftz/make && cd ./NGSTrefftz/make
cmake ../ && make install
```### Dependencies
* if you are using pip to install the package you can install the newest ngsolve and other dependencies using
```bash
pip install ngsolve --pre
```
* if you build the package from source the following software needs to be installed
* [cmake](https://cmake.org/) >= 3.1
* [gcc](https://gcc.gnu.org/) >= 9 or [clang](https://clang.llvm.org/) >= 10
* [lapack](http://www.netlib.org/lapack/) >= 3.9 (required to access the newest features)
* [ngsolve](https://www.ngsolve.org) >= 6.2 (to access the newest features the nightly version of NGSolve works best)## News
โ ๏ธ Oct, 2022: With v0.2.0 the git history has undergone a major cleanup, please make sure to clone the repo anew.๐ Oct, 2022: New and improved implementation of the embedded Trefftz method via `EmbeddedTrefftzFES`!
๐ Aug, 2022: Three different [pip](https://pypi.org/search/?q=ngstrefftz)-installer available, now using wheels!
๐ Mar, 2022: NGSTrefftz now has a [website](https://paulst.github.io/NGSTrefftz/)!
โ ๏ธ Feb, 2022: If you are using NGSolve nightly releases: [NGSolve@eda758d](https://github.com/NGSolve/ngsolve/commit/eda758d99483888851913d8a5c9aff4d0cbc9cc2) breaks a dependency and [NGSolve@3d52ecd](https://github.com/NGSolve/ngsolve/commit/3d52ecd615f2b7c409219eebaba99288ea19c1bc) produces import issue. Make sure to update ngstrefftz submodules and move to newest ngsolve version, at least [NGSolve@5839a09](https://github.com/NGSolve/ngsolve/commit/5839a09810235a938bd85807d8e638d3a0b6c69d).
๐ Jan, 2022: NGSTrefftz is now available via pip!
๐ Nov, 2021: NGSTrefftz now comes in a docker and with binder notebooks!
## Papers using the code
* *Trefftz Discontinuous Galerkin discretization for the Stokes problem*
Philip L. Lederer, Christoph Lehrenfeld, Paul Stocker
[![arXiv](https://img.shields.io/badge/arXiv-2306.14600-b31b1b.svg)](https://arxiv.org/abs/2306.14600)
* *Unfitted Trefftz discontinuous Galerkin methods for elliptic boundary value problems*
Fabian Heimann, Christoph Lehrenfeld, Paul Stocker, Henry von Wahl
[![arXiv](https://img.shields.io/badge/arXiv-2212.12236-b31b1b.svg)](https://arxiv.org/abs/2212.12236)
* *Embedded Trefftz discontinuous Galerkin methods*
Christoph Lehrenfeld, Paul Stocker
[![arXiv](https://img.shields.io/badge/arXiv-2201.07041-b31b1b.svg)](https://arxiv.org/abs/2201.07041)
* *A space-time quasi-Trefftz DG method for the wave equation with piecewise-smooth coefficients*
Lise-Marie Imbert-Gรฉrard, Andrea Moiola, Paul Stocker
[![arXiv](https://img.shields.io/badge/arXiv-2011.04617-b31b1b.svg)](https://arxiv.org/abs/2011.04617)
* *Tent pitching and Trefftz-DG method for the acoustic wave equation*
Ilaria Perugia, Joachim Schรถberl, Paul Stocker, Christoph Wintersteiger
[![arXiv](https://img.shields.io/badge/arXiv-1907.02367-b31b1b.svg)](https://arxiv.org/abs/1907.02367)If you are using `ngstrefftz` in your academic work, please consider citing
```
Stocker, P., (2022). NGSTrefftz: Add-on to NGSolve for Trefftz methods.
Journal of Open Source Software, 7(71), 4135, https://doi.org/10.21105/joss.04135
```