/SmCodes

SMCODES - a Spectral Multigrid Chebyshev Ordinary Differential Equation Solver.

Primary LanguageJupyter NotebookGNU General Public License v3.0GPL-3.0

SMCODES: Spectral Multigrid Chebyshev Ordinary Differential Equation Solver

Cade Ballew, Michael Kupperman Amath 570

A python implementation of SMCODES, a semi-implicit time-stepping method with spectral flair.

A minimal example:

from SMCODES import SmcSolver

testfun = lambda x: - x
smc = SmcSolver(f, u0=1, hstep=1e-1, stages=4, do_implicit_solve=True)
times, soln = smc.solve()