devito icon indicating copy to clipboard operation
devito copied to clipboard

Solution in example on internal nodes converge with 0 with high grid density in poisson and laplace examples.

Open RomanLopezFerber opened this issue 3 years ago • 2 comments

Hello,

I find a strange behavior in the examples I tried on examples/cfd/Laplace and Poisson (using the hand-coded method) : The higher the grid resolution is, the more the internal nodes are converging to 0, which seem to be not physical. Could someone tell me what is going on these examples ?

Here is the laplace example with nx = ny = 500 image

And here with nx = ny = 100

image

Thank you for all the documentation around this library and thank you in advance for your help.

Roman

RomanLopezFerber avatar Jan 25 '21 15:01 RomanLopezFerber

This seems to be more of a math question than a devito question. If you increase the number of grid points while keeping the rest fixed (including the physical extent of the grid, the source location, the number of timesteps ...), then that should be the expected behavior

FabioLuporini avatar Jan 26 '21 08:01 FabioLuporini

Sorry if my question was not in the field of devito, I felt it was, as my question is still related to physics. To clarify my question my reasoning is the following : Let us consider an area of 1km by 2km. The space is discretised in Nx * Ny points to approximate the continuous space. And therefore we compute with the finite diffference method to approximate a continuous solution. So to me, if only the grid resolution vary (not the physical size of the area), we should converge to a continuous solution. And when above a given resolution the result should not change any more, is it not right ?

I will try soon with devito this example, I used the explicitly written method of the example for the moment.

RomanLopezFerber avatar Jan 27 '21 13:01 RomanLopezFerber

Closing. Feel free to use Slack for this sort of higher level questions

FabioLuporini avatar Sep 23 '22 06:09 FabioLuporini