Skip to main content

Modes and nodes for high-order methods

Project description

Gitlab Build Status Github Build Status Python Package Index Release Page Zenodo DOI for latest release

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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

modepy-2026.1.tar.gz (474.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

modepy-2026.1-py3-none-any.whl (343.9 kB view details)

Uploaded Python 3

File details

Details for the file modepy-2026.1.tar.gz.

File metadata

  • Download URL: modepy-2026.1.tar.gz
  • Upload date:
  • Size: 474.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for modepy-2026.1.tar.gz
Algorithm Hash digest
SHA256 25e0be56a109ae69ed5d73b0032c5dbeafbc8aa88552f4cb338c7fa9b98cb1d4
MD5 92ddd71b1bad7276f12a49cce0fe6711
BLAKE2b-256 64eb3a5b651e8637ad57ec255cd0292b16b0173c633c933407c97a97cf420a71

See more details on using hashes here.

Provenance

The following attestation bundles were made for modepy-2026.1.tar.gz:

Publisher: release.yml on inducer/modepy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file modepy-2026.1-py3-none-any.whl.

File metadata

  • Download URL: modepy-2026.1-py3-none-any.whl
  • Upload date:
  • Size: 343.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for modepy-2026.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ba7117f98bd7fb5f219d8686dd24df2720902e714125c8a9d07edd581e5991fa
MD5 402ef84946a85bc1831a806e656f83b9
BLAKE2b-256 06822f591e700aa740e9e13eb6f21440ab8ea3b08037cbfb5005037174d555e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for modepy-2026.1-py3-none-any.whl:

Publisher: release.yml on inducer/modepy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page