Hi Julien,
Thank you! yes, you are right it should be Energy[s] I changed it now.
Still, the result of the energy term in the forward run should be constant and I obviously don’t obtain it with my calculation, I don’t know where is my mistake?
I changed in the code of the forward problem the corrections you suggested, thanks a lot!
now the energy is constant for each time of the forward simulation.
I would like to ask please, if you can please check my backward code for the wave equation, because the energy in the backward simulation should also be constant, however it gives me constants results for certain regions. Backward problem all boundaries Dirichlet without noise.edp (2.4 KB) Forward problem all boundaries Dirichlet without noise.edp (2.0 KB)