Skip to main content
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

  • 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

Hesthaven, Jan S., and Tim Warburton. “Nodal Discontinuous Galerkin Methods: Algorithms, Analysis, and Applications”. 1st ed. Springer, 2007. Book web page

but much has been added beyond that basic functionality.

Resources:

Download files

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

Source Distribution

modepy-2025.1.tar.gz (464.3 kB view details)

Uploaded Source

Built Distribution

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

modepy-2025.1-py3-none-any.whl (332.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: modepy-2025.1.tar.gz
  • Upload date:
  • Size: 464.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for modepy-2025.1.tar.gz
Algorithm Hash digest
SHA256 d72597fdce3a45bddb441ccca7e23d5fce5dd9ef25749964a2da4057d2c7d898
MD5 01172d4122ad12701e2910954176d1c4
BLAKE2b-256 5a8ddf6e13a3220f1c536ecb310261224d9a06ff59bc867ad33d8459b9dd0fe5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: modepy-2025.1-py3-none-any.whl
  • Upload date:
  • Size: 332.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for modepy-2025.1-py3-none-any.whl
Algorithm Hash digest
SHA256 abf46c8b18a217b1e15e422961ad83dc14a69c7f38cb33f4a6acb280b5a79eb1
MD5 44ba9a283b11be01d99b8f18cb499625
BLAKE2b-256 150f0ad2f3cb2c140019c0e986d59830ac3da7954a7ba792b5082c2916c9ec84

See more details on using hashes here.

Supported by

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