I want to solve Navier-Stokes eq with Dirichlet boundaries using a pseudospectral method.
All of the references I encountered used Chebychev transform to do this. But why can’t you use sine transform?
I want to solve Navier-Stokes eq with Dirichlet boundaries using a pseudospectral method.
All of the references I encountered used Chebychev transform to do this. But why can’t you use sine transform?
You can use the sine transform, but you should note that the two are different things.
One uses the Chebyshev pseudospectral method for general boundary conditions, and the Fourier pseudospectral method for periodic boundary conditions. The Chebyshev basically works on a "line segment", while the Fourier works on a "ring".
When you're using the sine transform, you're basically doing a more efficient Fourier transformation (by a factor of two) by restricting the Fourier basis only to sine basis functions. And by this, yes, you'll get the value of zero at the boundaries.
However, the Dirichlet boundary conditions will lead to a reflection of the outgoing waves, whereas the sine basis functions will pass thru the boundary (the momentum is conserved).
Which one is better suited depends on your application, but you can do both.
But why doesn't a sine transform accommodate a reflection? The exact solution of a wave equation with Dirichlet boundary conditions is a combination of sine functions. Shouldn't there be a reflection with a sine transform?
– user1048419 Mar 11 '22 at 03:03