https://github.com/samreynoldsmath/PuncturedFEM
An approximate solution to
A finite element method on meshes with curvilinear and multiply connected cells.
One might call the method a "nonvirtual virtual element method" because it uses the same function spaces as the virtual element method [1], but works with basis functions directly, rather than projecting them and introducing stabilization terms.
One advantage of our approach is the ability to find values of the basis functions (and therefore the finite element solution) in the interior of mesh cells, not just on the mesh skeleton. However, all essential calculations (such as entries of the stiffness and mass matrices) are occur entirely on cell boundaries, using single-dimensional quadrature.
A disadvantage of our approach is that it is currently limited to planar domains. This is because we are able to exploit some results from complex analysis to compute the basis functions and their derivatives.
Given a mesh cell
- the Laplacian
$\Delta v$ is a polynomial of degree at most$p-2$ on$K$ , - the trace
$v|_{\partial K}$ on the boundary of the mesh cell is continuous, and - the restriction
$v|_{e}$ to each edge$e$ of the mesh cell is the trace a polynomial of degree at most$p$ .
One may see that
A discussion of the method, including interpolation estimates, is given in [3].
A method of computing
- Jeffrey S. Ovall, and Samuel E. Reynolds, "Evaluation of inner products of implicitly-defined finite element functions on multiply connected planar mesh cells" [5]
- [1] L. Beiriao da Veiga, F. Brezzi, A. Cangiani, G. Manzini, L. D. Marini, and A. Russo. Basic principles of virtual element methods. Mathematical Models and Methods in Applied Sciences, 23(1):199–214, 2013.
- [2] Jeffrey S. Ovall, and Samuel E. Reynolds. A high-order method for evaluating derivatives of harmonic functions in planar domains. SIAM Journal on Scientific Computing , Vol. 40(3), A1915–A1935, 2018.
- [3] Akash Anand, Jeffrey S. Ovall, Samuel E. Reynolds, and Steffen Weisser. Trefftz Finite Elements on Curvilinear Polygons. SIAM Journal on Scientific Computing, Vol. 42(2), pp. A1289–A1316, 2020.
- [4] Jeffrey S. Ovall, and Samuel E. Reynolds. Quadrature for Implicitly-defined Finite Element Functions on Curvilinear Polygons. Computers & Mathematics with Applications, Vol. 107 (1), pp. 1–16, 2022.
- [5] Jeffrey S. Ovall, and Samuel E. Reynolds. Evaluation of inner products of implicitly-defined finite element functions on multiply connected planar mesh cells. SIAM Journal on Scientific Computing, Vol. 46 (1), pp. A338–A359, 2024
This package is available on PyPI, and can be installed with pip:
pip install puncturedfem
This project requires Python 3.9 or higher and uses the following packages:
- Deprecated (deprecation warnings)
- matplotlib (plotting)
- numba (just-in-time compilation)
- numpy (arrays, FFT)
- scipy (sparse matrices, GMRES)
- tqdm (progress bars)
Furthermore, this repo contains examples presented with Jupyter notebooks.
- Jeffrey S. Ovall (1): principal investigator
- Samuel E. Reynolds (1): maintainer, lead developer
- Zack Kenyon (1): junior developer
(1) Fariborz Maseeh Department of Mathematics and Statistics, Portland State University
Funding for this project was provided by the National Science Foundation through:
- NSF grant DMS-2012285
- NSF RTG grant DMS-2136228
This package is an experimental prototype.
- It is unlikely to be suitable for production use.
- It is under heavy development, which may sometimes result in breaking changes.
Copyright (C) 2022 - 2024, Jeffrey S. Ovall and Samuel E. Reynolds.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.