DefElement
This repo contains code to generate the website DefElement: an encylopedia of finite element definitions.
The code to generate the DefElement website (contained in builder/
and templates/
,
plus the file build.py
) is released under an MIT license.
The content of the DefElement website itself (including that in elements/
, files/
, pages/
)
is released under a
Creative Commons Attribution 4.0 International (CC BY 4.0) license.
The examples included in DefElement are generated using Symfem.
Building the website
Before building the website, you must install the required Python dependencies:
pip3 install -r requirements.txt
The html files for the website can be built by running:
python build.py
A 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-thomas