Skip to content

This is a wave equation solver in spherical symmetry that demonstrates the use of parity-limited Chebyshev polynomials

License

Notifications You must be signed in to change notification settings

Yurlungur/wavetoy-parity-Chebyshev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

wavetoy-parity-Chebyshev

A wave equation solver in spherical symmetry that demonstrates the use of parity-limited Chebyshev polynomials

Authors

Detailed Description

Spectral methods are a highly efficient approach to solving partial differential equations because (for smooth problems), the error converges exponentially. This repo demonstrates how to use a particular family of spectral methods, parity-limited Chebyshev-pseudospectral methods, to solve problems in spherical symmetry, where there is a coordinate singularity at the origin. In a Chebyshev-pseudospectral method, functions are assumed to be interpolating polynomials which interpolate known values at known locations, called colocation points.

The secret to handling the origin is that the coordinate singularity can be resolved if one knows the symmetry properties of functions about the origin, r=0. Therefore, we split our Chebyshev polynomials into two families: the odd-parity and even-parity families. Functions can be represented by either family, but not both. Then differential operators map functions between the families. For example, differentiating an odd-parity function makes it even, and vice versa. By writing the Poisosn operator (which has a coordinate singularity) in this way, the singularity can be resolved. Here are the errors of different differential operators as a function of the number of modes per family:

Errors in differential operators

About

This is a wave equation solver in spherical symmetry that demonstrates the use of parity-limited Chebyshev polynomials

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages