ricma / pydec

PyDEC: A Python Library for Discretizations of Exterior Calculus for simplicial complexes of any dimension embedded or not and for cubical complexes of any dimension. Implements discrete exterior derivative as coboundary, a Delaunay Hodge star operator and lowest order Whitney forms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyDEC: A Python Library for Discretizations of Exterior Calculus.

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 PyDEC
  • pip install pydec

About

PyDEC: A Python Library for Discretizations of Exterior Calculus for simplicial complexes of any dimension embedded or not and for cubical complexes of any dimension. Implements discrete exterior derivative as coboundary, a Delaunay Hodge star operator and lowest order Whitney forms.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%