This repo contains code to generate the website DefElement: an encylopedia of finite element definitions.
The examples included in DefElement are generated using Symfem.
Before building the website, you must install the required Python dependencies:
pip3 install -r requirements.txtThe html files for the website can be built by running:
python build.pyA version of the website where only some elements are plotted can be built by using the
--test input arg. For example, the following can be run to build the website with only
plots for Lagrange and Raviart-Thomas (lagrange and raviart-thomas are
the filenames of the .def files in the elements folder that define these
elements):
python build.py --test lagrange,raviart-thomasThe code to generate and test the DefElement website (defelement/, templates/, test/, build.py, verify.py, install_implementations.py)
is released under an MIT license.
The content of the DefElement website itself (including data/, elements/, files/, pages/, people/)
is released under a Creative Commons Attribution 4.0 International (CC BY 4.0) license.
Font Awesome (files/fontawesome) is released under a Font Awesome Free License.
Archived snapshots of code for building DefElement and website builds can be found at https://doi.org/10.5281/zenodo.17904468