Different results when using divergence(gradient( . )) instead of laplace( . ) #478
Answered
by
david-zwicker
ole-kranzosch
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
david-zwicker
Oct 23, 2023
Replies: 1 comment 2 replies
-
This is unfortunately a common problem with finite differences. Another problem you might find is that the total mass (the integral of
Note that this is not tested, but I hope it transports the idea. In our research, we encounter similar problems and we have developed solutions, which are unfortunately not yet part of |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ole-kranzosch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is unfortunately a common problem with finite differences. Another problem you might find is that the total mass (the integral of
c
) is not conserved, although it obviously should be. A workaround could be to split the divergence operator, i.e., useNote that this is not tested, but I hope it transports the idea.
In our research, we encounter similar problems and we have developed solutions, which are unfortunately not yet part of
py-pde
. If you encountered this problem for your own research, we could talk about a collaboration!