Hi,
How can I implement periodic boundary condition (u(x+n*pi, t)=u(x,t)) in matlab code.
Thank you
Mustafa
Hi,
How can I implement periodic boundary condition (u(x+n*pi, t)=u(x,t)) in matlab code.
Thank you
Mustafa
You can use the inbuilt matlab function “circshift” to implement the streaming step. If circshift is used in this way it will achieve a periodic boundary condition by default.