From: carlos lopez on
Hello:
I have tried some standard finite difference solvers and they are painfully slow. I switched to some standard spectral method but still no good balancing between accuracy and CPU time.
I wonder if there exist some way to take advantage of special features of the problem:
..- rectangular domain
..- smooth forcing term, which can be evaluated exactly in any location (i.e. no need to be restricted to a regular grid)
..- requested output is not the Poisson solution, but its gradient.
Is there any code/theory which takes advantage of this special case? I know this question is near to be off-topic, but any cue will be welcome.
Regards
Carlos
From: Bruno Luong on
"carlos lopez" <clv2clv_00000000_(a)adinet.com.uy> wrote in message <hordst$31h$1(a)fred.mathworks.com>...
> Hello:
> I have tried some standard finite difference solvers and they are painfully slow. I switched to some standard spectral method but still no good balancing between accuracy and CPU time.
> I wonder if there exist some way to take advantage of special features of the problem:
> .- rectangular domain
> .- smooth forcing term, which can be evaluated exactly in any location (i.e. no need to be restricted to a regular grid)
> .- requested output is not the Poisson solution, but its gradient.
> Is there any code/theory which takes advantage of this special case? I know this question is near to be off-topic, but any cue will be welcome.
> Regards
> Carlos

Not sure what is "standard spectral method", but for rectangular domain, you can solve in Fourier domain (since Fourier functions are spectral functions of laplacian operator). This takes almost as fast as calling an fft2.

Bruno