Skip to main content

Basix Python interface

Project description

Basix

Basix CI

Basix is a finite element definition and tabulation runtime library. Basix allows users to:

  • evaluate finite element basis functions and their derivatives at a set of points;
  • access geometric and topological information about reference cells;
  • apply push forward and pull back operations to map data between a reference cell and a physical cell;
  • permute and transform DOFs to allow higher-order elements to be use on arbitrary meshes; and
  • interpolate into a finite element space and between finite element spaces.

Basix includes a range of built-in elements, and also allows the user to define their own custom elements.

Basix is one of the components of FEniCSx, alongside UFL, FFCx, and DOLFINx.

Installing Basix

To install the latest stable version of Basix from pypi.org:

pip install fenics-basix

We currently build binary wheels for Linux and macOS x86-64 architectures.

To install the main (development) branch of Basix:

pip install git+https://github.com/FEniCS/basix.git

For advanced installation instructions see the detailed install instructions

Documentation

Documentation of Basix can be found at https://docs.fenicsproject.org/basix/main/.

Support

If you find a bug in Basix, you can report it on the GitHub issue tracker.

Questions about using Basix can be asked on the FEniCS discourse group.

Contributing

Information about how to contribute to Basix can be found here.

Supported elements

Interval

In Basix, the sub-entities of the reference interval are numbered as follows:

The numbering of a reference interval

The following elements are supported on an interval:

Triangle

In Basix, the sub-entities of the reference triangle are numbered as follows:

The numbering of a reference triangle

The following elements are supported on a triangle:

Quadrilateral

In Basix, the sub-entities of the reference quadrilateral are numbered as follows:

The numbering of a reference quadrilateral

The following elements are supported on a quadrilateral:

Tetrahedron

In Basix, the sub-entities of the reference tetrahedron are numbered as follows:

The numbering of a reference tetrahedron

The following elements are supported on a tetrahedron:

Hexahedron

In Basix, the sub-entities of the reference hexahedron are numbered as follows:

The numbering of a reference hexahedron

The following elements are supported on a hexahedron:

Prism

In Basix, the sub-entities of the reference prism are numbered as follows:

The numbering of a reference prism

The following elements are supported on a prism:

Pyramid

In Basix, the sub-entities of the reference pyramid are numbered as follows:

The numbering of a reference pyramid

The following elements are supported on a pyramid:

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

fenics_basix-0.7.0.post0.tar.gz (618.1 kB view hashes)

Uploaded Source

Built Distributions

fenics_basix-0.7.0.post0-cp310-cp310-manylinux_2_28_x86_64.whl (13.0 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.28+ x86-64

fenics_basix-0.7.0.post0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.4 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

fenics_basix-0.7.0.post0-cp310-cp310-macosx_11_0_arm64.whl (828.5 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

fenics_basix-0.7.0.post0-cp310-cp310-macosx_10_9_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

fenics_basix-0.7.0.post0-cp39-cp39-manylinux_2_28_x86_64.whl (13.0 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.28+ x86-64

fenics_basix-0.7.0.post0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.4 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

fenics_basix-0.7.0.post0-cp39-cp39-macosx_11_0_arm64.whl (828.6 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

fenics_basix-0.7.0.post0-cp39-cp39-macosx_10_9_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

fenics_basix-0.7.0.post0-cp38-cp38-manylinux_2_28_x86_64.whl (13.0 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.28+ x86-64

fenics_basix-0.7.0.post0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.4 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

fenics_basix-0.7.0.post0-cp38-cp38-macosx_11_0_arm64.whl (828.5 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

fenics_basix-0.7.0.post0-cp38-cp38-macosx_10_9_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

Supported by

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