Differentiation Matrices

Differentiation matrices using finite differentiation and spectral methods

Finite Differentiation Matrices

class pygl.dms.FD

Finite Differenc (central) NxN differentiation matrix (DM)

diffmat

m-th order differentiation matrix using central differences.

diffweight

*weights of the m-th order derivative using central Difference *this can be read from the table if the code needs to be made fast *first generate the table using the code! Read more: Bengt Fornberg SIAM Review, Vol. 40, No. 3 (Sep., 1998) Calculation of Weights in Finite Difference Formulas

Fourier Spectral Matrices

class pygl.dms.FourierSpectral

Spectral method using Fourier tranform to compute differentiation matrices (DM)

dealias

dealias operator kDA: fraction of the wavectors which are not set to zero

diffmat

m-th order differentiation matrix using FourierSpectral