Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Pseudospectral to solve kdv

  1. Oct 21, 2008 #1

    I'm having a problem coding pseudospectral method to solve KdV equation in matlab.
    Can someone help me? thanks in advance.

    KdV equation:
  2. jcsd
  3. Nov 15, 2008 #2
    Just curious. Is Collocation Method also a pseudospectral method? I'm learning the wavelet collocation method to solve differential equations.
  4. Nov 15, 2008 #3
    i dont think it is the same
  5. Nov 17, 2008 #4
    Then the Collocation Method is a spectral method because it makes use of trial functions. Am I correct?

    Really sorry to bother you all but I'm still learning numerical methods. From what I read, numerical methods for solving pde typically fall into one of the three classes, namely, finite difference /volume, finite element and spectral methods.

    Where does the pseudospectral method fit in these classes?
  6. Nov 17, 2008 #5
    pseudospectral is one of the spectral methods. pseudospectral often uses fast fourier transform. i'm not so sure about the collocation method.
  7. Nov 17, 2008 #6
    If I understood correctly, the spectral method is some sort like Fourier series method. Or do I?
    Let say we want to solve a basic initial and boundary problem of linear heat conduction pde. Using the Fourier series method we assume separation of variables.
    [tex]u(x,t)=\sum T_n(t)X_n(x)[/tex].

    The spectral method numerical procedure truncates the Fourier series at N terms, uN(x,t) and required its approximate satisfies the pde.
    { Xn } are prechosen functions which span a subspace.

    If the approximate satisfies the equation at specified points, the method is called Collocation.
    If the approximate satisfies the equation in projected sense, the method is called Galerkin.

    What does the pseudospectral method satisfy ?
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook