modepy

Modes and nodes for high-order discretizations

https://github.com/inducer/modepy

Science Score: 77.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    3 of 8 committers (37.5%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.5%) to scientific vocabulary

Keywords from Contributors

code-generation scan loop-optimization performance-analysis ispc code-transformation code-optimization reduction prefix-sum multidimensional-arrays
Last synced: 6 months ago · JSON representation ·

Repository

Modes and nodes for high-order discretizations

Basic Info
  • Host: GitHub
  • Owner: inducer
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 2.44 MB
Statistics
  • Stars: 20
  • Watchers: 5
  • Forks: 7
  • Open Issues: 8
  • Releases: 2
Created almost 13 years ago · Last pushed 6 months ago
Metadata Files
Readme License Citation

README.rst

modepy: Basis Functions, Node Sets, Quadratures
===============================================

.. image:: https://gitlab.tiker.net/inducer/modepy/badges/main/pipeline.svg
    :alt: Gitlab Build Status
    :target: https://gitlab.tiker.net/inducer/modepy/commits/main
.. image:: https://github.com/inducer/modepy/actions/workflows/ci.yml/badge.svg
    :alt: Github Build Status
    :target: https://github.com/inducer/modepy/actions/workflows/ci.yml
.. image:: https://badge.fury.io/py/modepy.svg
    :alt: Python Package Index Release Page
    :target: https://pypi.org/project/modepy/
.. image:: https://zenodo.org/badge/9846038.svg
    :alt: Zenodo DOI for latest release
    :target: https://zenodo.org/doi/10.5281/zenodo.11105051

``modepy`` helps you create well-behaved high-order discretizations on
simplices (i.e. segments, triangles and tetrahedra) and tensor products of
simplices (i.e. squares, cubes, prisms, etc.). These are a key building block
for high-order unstructured discretizations, as often used in a finite
element context. Features include:

- Support for simplex and tensor product elements in any dimension.
- Orthogonal bases:
    - Jacobi polynomials with derivatives
    - Orthogonal polynomials for simplices up to 3D and tensor product elements
      and their derivatives.
    - All bases permit symbolic evaluation, for code generation.
- Access to numerous quadrature rules:
    - Jacobi-Gauss, Jacobi-Gauss-Lobatto in 1D
      (includes Legendre, Chebyshev, ultraspherical, Gegenbauer)
    - Clenshaw-Curtis and Fejér in 1D
    - Grundmann-Möller on the simplex
    - Xiao-Gimbutas on the simplex
    - Vioreanu-Rokhlin on the simplex
    - Jaśkowiec-Sukumar on the tetrahedron
    - Witherden-Vincent on the hypercube
    - Generic tensor products built on the above, e.g. for prisms and hypercubes
- Tools to construct new quadrature rules:
    - A basic iterative Gauss-Newton process to optimize/tighten rules
    - Vioreanu-Rokhlin node initial generation based on multiplication operators
- Matrices for FEM, usable across all element types:
    - generalized Vandermonde,
    - mass matrices (including lumped diagonal),
    - face mass matrices,
    - differentiation matrices, and
    - resampling matrices.
- Objects to represent 'element shape' and 'function space',
  generic node/mode/quadrature retrieval based on them.

Its roots closely followed the approach taken in the book

    J. S. Hesthaven and T. Warburton (2007).
    *Nodal Discontinuous Galerkin Methods: Algorithms, Analysis, and Applications*
    (1st ed.).
    `doi:10.1007/978-0-387-72067-8 `__.
    `(source code) `__

but much has been added beyond that basic functionality.

Resources:

* `Documentation `__.
* `Source code `__.
* `Bug tracker `__.
* `PyPI `__.

Owner

  • Name: Andreas Klöckner
  • Login: inducer
  • Kind: user
  • Location: Champaign, IL
  • Company: Scientific Computing, CS@UIUC

JOSS Publication

modepy: Basis Functions, Interpolation, and Quadrature (not just) for Finite Elements
Published
January 27, 2026
Volume 11, Issue 117, Page 9294
Authors
Andreas Kloeckner ORCID
Siebel School of Computing and Data Science, University of Illinois at Urbana-Champaign, US
Alexandru Fikl ORCID
Institute for Advanced Environmental Research (ICAM), West University of Timişoara, Romania
Xiaoyu Wei ORCID
Pathlit, US
Thomas Gibson ORCID
Advanced Micro Devices Inc., US
Addison Alvey-Blanco
Siebel School of Computing and Data Science, University of Illinois at Urbana-Champaign, US
Editor
Nikoleta Glynatsi ORCID
Tags
approximation theory

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Kloeckner"
  given-names: "Andreas"
  orcid: "https://orcid.org/0000-0003-1228-519X"
- family-names: "Fikl"
  given-names: "Alex"
- family-names: "Wei"
  given-names: "Xiaoyu"
- family-names: "Gibson"
  given-names: "Thomas"
- family-names: "Alvey-Blanco"
  given-names: "Addison"
- family-names: "Wala"
  given-names: "Matt"

title: "modepy"
version: 2024.1
doi: 10.5281/zenodo.11105052
date-released: 2024-05-02
url: "https://github.com/inducer/modepy"
license: MIT

GitHub Events

Total
  • Create event: 11
  • Release event: 1
  • Issues event: 5
  • Watch event: 4
  • Delete event: 13
  • Issue comment event: 38
  • Push event: 62
  • Pull request review event: 64
  • Pull request review comment event: 78
  • Pull request event: 51
Last Year
  • Create event: 11
  • Release event: 1
  • Issues event: 5
  • Watch event: 4
  • Delete event: 13
  • Issue comment event: 38
  • Push event: 62
  • Pull request review event: 64
  • Pull request review comment event: 78
  • Pull request event: 51

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 375
  • Total Committers: 8
  • Avg Commits per committer: 46.875
  • Development Distribution Score (DDS): 0.36
Past Year
  • Commits: 15
  • Committers: 4
  • Avg Commits per committer: 3.75
  • Development Distribution Score (DDS): 0.333
Top Committers
Name Email Commits
Andreas Kloeckner i****m@t****t 240
Alexandru Fikl a****l@g****m 94
xywei w****6@g****m 26
Thomas Gibson g****0@h****m 9
Matt Wala w****1@i****u 3
Xiaoyu Wei x****i@i****u 1
Addison A 7****c 1
Addison Alvey-Blanco a****3@i****u 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 12
  • Total pull requests: 163
  • Average time to close issues: 3 months
  • Average time to close pull requests: 4 days
  • Total issue authors: 6
  • Total pull request authors: 6
  • Average comments per issue: 2.17
  • Average comments per pull request: 0.99
  • Merged pull requests: 145
  • Bot issues: 0
  • Bot pull requests: 5
Past Year
  • Issues: 3
  • Pull requests: 58
  • Average time to close issues: N/A
  • Average time to close pull requests: 3 days
  • Issue authors: 2
  • Pull request authors: 4
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.71
  • Merged pull requests: 46
  • Bot issues: 0
  • Bot pull requests: 1
Top Authors
Issue Authors
  • inducer (6)
  • thomasgibson (2)
  • matthiasdiener (1)
  • nschloe (1)
  • alexfikl (1)
  • andrewcorrigan (1)
Pull Request Authors
  • inducer (80)
  • alexfikl (64)
  • a-alveyblanc (9)
  • dependabot[bot] (5)
  • thomasgibson (3)
  • mattwala (2)
Top Labels
Issue Labels
enhancement (1) question (1)
Pull Request Labels
dependencies (5) shelved (1) github_actions (1)

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 1,678 last-month
  • Total dependent packages: 0
    (may contain duplicates)
  • Total dependent repositories: 16
    (may contain duplicates)
  • Total versions: 12
  • Total maintainers: 1
pypi.org: modepy

Modes and nodes for high-order methods

  • Versions: 10
  • Dependent Packages: 0
  • Dependent Repositories: 16
  • Downloads: 1,678 Last month
Rankings
Dependent repos count: 3.6%
Average: 9.4%
Dependent packages count: 10.1%
Downloads: 14.4%
Maintainers (1)
Last synced: 6 months ago
conda-forge.org: modepy
  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 34.0%
Forks count: 44.7%
Average: 45.0%
Stargazers count: 50.2%
Dependent packages count: 51.2%
Last synced: 6 months ago

Dependencies

requirements.txt pypi
  • numpy *
  • pymbolic *
setup.py pypi
  • dataclasses *
  • numpy *
  • pymbolic *
  • pytest >=2.3
  • pytools >=2013.1
  • typing_extensions *
.github/workflows/autopush.yml actions
  • actions/checkout v3 composite
.github/workflows/ci.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite