Skip to main content
edited tags
Link
Source Link
alext87
  • 3.2k
  • 1
  • 23
  • 42

FFT setting the boundary conditions

I am using the FFT method to solve the two dimensional PDE on a $2\pi\times 2\pi$ square. I have boundary conditions that $u(x,0,t)=0$ and $u(x,2\pi,t)=0$. How do I go about setting these boundaries? I can't just expand in different basis functions because of the way my fft function works.

Thanks in advance.