fftw3 for poisson with dirichlet boundary condition for all side of computational domain
问题 I am trying to solve Poison equation with Dirichlet boundary condition for four sides of computational domain. As known that I should use FFTW_RODFT00 to satisfy the condition. However, the result is not correct.Could you please help me? #include <stdio.h> #include <math.h> #include <cmath> #include <fftw3.h> #include <iostream> #include <vector> using namespace std; int main() { int N1=100; int N2=100; double pi = 3.141592653589793; double L1 = 2.0; double dx = L1/(double)(N1-1); double L2=