English

Shenfun -- automating the spectral Galerkin method

Computational Physics 2017-08-11 v1

Abstract

With the shenfun Python module (github.com/spectralDNS/shenfun) an effort is made towards automating the implementation of the spectral Galerkin method for simple tensor product domains, consisting of (currently) one non-periodic and any number of periodic directions. The user interface to shenfun is intentionally made very similar to FEniCS (fenicsproject.org). Partial Differential Equations are represented through weak variational forms and solved using efficient direct solvers where available. MPI decomposition is achieved through the {mpi4py-fft} module (bitbucket.org/mpi4py/mpi4py-fft), and all developed solver may, with no additional effort, be run on supercomputers using thousands of processors. Complete solvers are shown for the linear Poisson and biharmonic problems, as well as the nonlinear and time-dependent Ginzburg-Landau equation.

Keywords

Cite

@article{arxiv.1708.03188,
  title  = {Shenfun -- automating the spectral Galerkin method},
  author = {Mikael Mortensen},
  journal= {arXiv preprint arXiv:1708.03188},
  year   = {2017}
}

Comments

Presented at MekIT'17, the 9th National Conference on Computational Mechanics

R2 v1 2026-06-22T21:11:39.514Z