You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the provided data generation code for 128x128 2D reaction diffusion, I am observing very high PDE residual at the beginning of the trajectory. The lowest that the residual gets is around 1e-2, which as far as I understand isn't that great for a PDE solver. Below is a plot of the mean absolute residual value (i.e value of the PDE) over the 128x128 spatial grid as a function of time for a few generated sample trajectories of length 100. The code was run out-of-the-box with no changes to the PDE parameters/other settings. Ideally, the residual should be nonzero only for the initial condition, otherwise numerical errors in the dataset will be propagated to the trained neural networks. Any suggestions/pointers as to why I could be seeing this behavior?
The text was updated successfully, but these errors were encountered:
Hi there, thank you for pointing this out.
Did you calculate the residual using the solution and the provided delta x and delta t?
My guess is that the high residual is because we use explicit time discretization, although with adaptive time stepping to minimize the numerical error. This, in combination with the fact that there are two coupled variables in this problem could lead to higher error, because the error in one variable could be propagated to the other variable. In the future, it might be worth it to try using an implicit method instead.
When running the provided data generation code for 128x128 2D reaction diffusion, I am observing very high PDE residual at the beginning of the trajectory. The lowest that the residual gets is around 1e-2, which as far as I understand isn't that great for a PDE solver. Below is a plot of the mean absolute residual value (i.e value of the PDE) over the 128x128 spatial grid as a function of time for a few generated sample trajectories of length 100. The code was run out-of-the-box with no changes to the PDE parameters/other settings. Ideally, the residual should be nonzero only for the initial condition, otherwise numerical errors in the dataset will be propagated to the trained neural networks. Any suggestions/pointers as to why I could be seeing this behavior?
The text was updated successfully, but these errors were encountered: