Boundary conditions in the resolution of a PDE with the FFT method

  • #1
96
20
How to impose boundary conditions when solving a PDE with fft? For example here:
If I copy this code I get periodic boundary conditions. Thank you
 
  • #2
Well, yes. Discrete Fourier transforms are for periodic domains. If you have a non-periodic domain then depending on the boundary conditions you might be able to use a discrete sine or cosine transform, but in the general case you should use a discrete Chebyshev transform if you want access to an FFT based algorithm.
 

Suggested for: Boundary conditions in the resolution of a PDE with the FFT method

Replies
2
Views
765
Replies
4
Views
797
Replies
3
Views
784
Replies
1
Views
2K
Replies
3
Views
3K
Replies
1
Views
2K
Replies
5
Views
725
Back
Top