Discrete Exterior Calculus

Operators

dec.forms.operators(n)[source]

Return all the operators for dimension n together with their domains and codomains.

>>> (operators(1) == 
... {'D': [('D0', (0, True), (1, True)), 
...        ('D0d', (0, False), (1, False))],
...  'H': [('H0', (0, True), (1, False)),
...        ('H0d', (0, False), (1, True)),
...        ('H1', (1, True), (0, False)),
...        ('H1d', (1, False), (0, True))],
...  'P': [('P0', None, (0, True)),
...        ('P0d', None, (0, False)),
...        ('P1', None, (1, True)),
...        ('P1d', None, (1, False))],
...  'R': [('R0', (0, True), None),
...        ('R0d', (0, False), None),
...        ('R1', (1, True), None),
...        ('R1d', (1, False), None)]})
True

Grids

dec.spectral.Grid_1D_Periodic(n, xmin=0, xmax=6.283185307179586)[source]
dec.spectral.Grid_1D_Chebyshev(n, xmin=-1, xmax=1)[source]
dec.spectral.Grid_1D_Regular(n, xmin=0, xmax=3.141592653589793)[source]

Installation

To install simply run:

pip install dec

or build from source:

git clone https://github.com/drufat/dec.git
cd dec
python setup.py install

Indices and tables

Table Of Contents

Next topic

The chain collocation method: A spectrally accurate calculus of forms

This Page