Basix

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 used on
arbitrary meshes; and
- interpolate into 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.
Installation
To install Basix from PyPi:
pip install fenics-basix
For advanced and developer installation instructions see the more
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.
Testing
After installing Basix and the Python test dependencies (see
INSTALL.md), run the Python unit tests from the repository
root:
pytest test/
The C++ unit tests require an installed Basix and Catch2 3. From the
repository root, configure, build, and run them with:
cmake -DCMAKE_BUILD_TYPE=Developer -B build-dir-test -S cpp/test
cmake --build build-dir-test
ctest --test-dir build-dir-test --output-on-failure
On Windows with a multi-configuration generator, build with
--config Release and run CTest with -C Release, matching the installed
Basix configuration.
Supported elements
Interval
In Basix, the sub-entities of the reference interval are numbered as
follows:

The following elements are supported on an interval:
Triangle
In Basix, the sub-entities of the reference triangle are numbered as
follows:

The following elements are supported on a triangle:
Quadrilateral
In Basix, the sub-entities of the reference quadrilateral are numbered
as follows:

The following elements are supported on a quadrilateral:
Tetrahedron
In Basix, the sub-entities of the reference tetrahedron are numbered as
follows:

The following elements are supported on a tetrahedron:
Hexahedron
In Basix, the sub-entities of the reference hexahedron are numbered as
follows:

The following elements are supported on a hexahedron:
Prism
In Basix, the sub-entities of the reference prism are numbered as
follows:

The following elements are supported on a prism:
Pyramid
In Basix, the sub-entities of the reference pyramid are numbered as
follows:

The following elements are supported on a pyramid:
评论