devito icon indicating copy to clipboard operation
devito copied to clipboard

Unable to reproduce results in the tutorials.

Open hannanmustajab opened this issue 9 months ago • 1 comments

Hey, I am trying to reproduce this tutorial ( https://slimgroup.github.io/Devito-Examples/tutorials/07_elastic_varying_parameters/ ), but I am unable to achieve the same results as shown in the example. I am encountering the same issue with other tutorials as well. The final plots do not appear as expected, and I am experiencing similar issues when using my own parameters. Can you please help me with this? This is the Colab notebook where you can see the results.

https://colab.research.google.com/drive/1g8-NbjjRQ5TLR9rj5IkOqu10OrRqJvHz?usp=sharing

[

Image

](url)

Best, Hannan

hannanmustajab avatar Apr 07 '25 08:04 hannanmustajab

The notebook you are using as reference is an old one that hasn't been update for a while and contains equation that will not work. You should use the devito documentation one for reference that is tested and known to be correct:

https://www.devitoproject.org/examples/seismic/tutorials/06_elastic_varying_parameters.html

In particular you should use mu * (grad(v.forward) + grad(v.forward).transpose(inner=False)))) instead of mu * (grad(v.forward) + grad(v.forward).T))) to avoid using wrong sign derivatives.

mloubout avatar Apr 07 '25 12:04 mloubout