Search this site
Praveen Chandrashekar
  • Home
  • Calendar
  • Codes
  • Computational Fluid Dynamics
    • A one-sided view
    • Adjoint-based optimization
    • euler2d: 2-D inviscid flow/adjoint solver
    • List of free/opensource codes
    • Multi-Directional Search method
    • The Fitted Mesh Story
    • The Turbulent History of Fluid Mechanics
    • The Wine Snobs Guide To Flux Functions
    • WILL THE WIND TUNNEL REPLACE THE COMPUTER?
  • computing
    • Bash programming
    • Computing on mac
    • Fortran tips and tricks
    • Git How To
    • Information about TIFR-CAM cluster
    • Latex tips and tricks
    • Machine Precision
    • Miscellaneous
    • Some scilab tips
    • Subversion
    • vim tips and tricks
  • Contact
  • deal.II
    • DG codes using deal.II
    • Installing deal.II on OSX using macports
  • Discontinuous Galerkin Method
  • For students
  • HyFLO: Hybridizable DG for CNS
  • Information
  • Living in Sophia Antipolis
  • nek5000
    • 2-D Rayleigh-Benard convection
    • Roll up of 2-D shear layer
    • taylor: Flow inside rotating annulus
  • People
  • Publications
  • Teaching
    • AISPDE2012: Finite Difference Method
    • Computational Fluid Dynamics
    • Computational Methods 2013
    • Discontinuous Galerkin Method for hyperbolic PDE
    • Numerical Analysis 2013
    • Numerical Analysis 2014
    • Numerics and control for PDE 2013
    • Spectral methods in python
  • Github
  • Bitbucket
  • Twitter
Praveen Chandrashekar

Spectral methods in python

I am writing the codes given in Trefethen's Spectral Methods in Matlab in python. You can find them in the following links as ipython notebooks.

If you have any suggestions to improve them or find a mistake, then I would like to hear.

A similar project is another-chebpy. Some of the following code is borrowed from another-chebpy. To get all the files, do

$ git clone https://github.com/cpraveen/chebpy
  1. Convergence of fourth order finite differences
  2. Convergence of periodic spectral method
  3. Band-limited interpolation
  4. Periodic spectral differentiation
  5. Repetition of Program 4 via FFT
  6. Variable coefficient wave equation
  7. Accuracy of periodic spectral differentiation
  8. Eigenvalues of harmonic oscillator
  9. Polynomial interpolation in equispaced and chebyshev points
  10. Polynomials and corresponding equipotential curves
  11. Chebyshev differentiation of a smooth function
  12. Accuracy of Chebyshev spectral differentiation
  13. Solve linear BVP
  14. Solve nonlinear BVP
  15. Solve eigenvalue BVP
  16. Poisson equation on [-1,1]x[-1,1] with u=0 on boundary
  17. Helmholtz equation
  18. Chebyshev differentiation via FFT
  19. Second order Wave Equation on Chebyshev Grid
  20. Second order Wave Equation using FFT
  21. Eigenvalues of Mathieu operator
  22. 5'th eigenvector of Airy equation
  23. Eigenvalues of perturbed Laplacian
  24. Pseudospectra of Davies complex harmonic oscillator
  25. Stability regions for ODE formulas
  26. Eigenvalues of 2nd-order Chebyshev diff. matrix
  27. Solve KdV equation
Report abuse
Page details
Page updated
Report abuse