PyDEC is a Python library implementing Discrete Exterior Calculus (DEC) and lowest order finite element exterior calculus (FEEC) i.e., Whitney forms. The main functionality implemented:
- simplicial complexes of dimension n embeded in dimension N >= n
- abstract simplicial complexes (no embedding needed)
- cubical complexes in all dimensions
- boundary operators for all the above type of complexes
- discrete exterior derivative (i.e., coboundary operator)
- DEC discrete Hodge star (i.e., primal-dual diagonal mass matrix)
- FEEC mass matrix for Whitney forms
The code and companion paper include examples for numerically solving PDEs and computing cohomology: ACM Transactions on Mathematical Software, Vol. 39, No. 1, pp. 3:1-3:41, 2012, DOI: 10.1145/2382585.2382588.
Installation:
cd
to the folder where you cloned PyDECpip install pydec