Reproduce a two-dimensional Poisson solution
Run the bundled Fortran solver on the unit square and verify the computed scalar field against an exact solution. The square has zero field values on all four sides and a load that changes sign in each direction.
Run the example
From the checkout root, run the solver in a compiler shell.
fpm run --example poisson_iga_solver_2d --profile release
With the default working precision, the program reports 64 analysis elements and 289 scalar degrees of freedom. The quadrature estimate of is approximately . Compare the order of magnitude if your compiler or precision differs.
Inspect the field
Open example/output/vtk/poisson_iga_solver_2d_interp.vtk in a VTK viewer and select the point scalar u. The field vanishes along the outer boundary and both midlines. The lower-left and upper-right quadrants are positive. The other two are negative.
The companion file example/output/vtk/poisson_iga_solver_2d.vtk stores solution coefficients on the control net. To see how the program turns those coefficients into the pictured field, find the call to basis and the multiplication by the coefficient vector in the example source.
