Correct derivatives in Burgers equation (#389)

* Correct derivatives in Burgers equation
This commit is contained in:
HGangloff
2024-12-09 13:13:07 +01:00
committed by GitHub
parent 5e36d1b618
commit 59c9a173b4
3 changed files with 5 additions and 5 deletions

View File

@@ -132,8 +132,8 @@ parameter :math:`\nu`:
self.nu = nu
def equation(input_, output_):
return grad(output_, input_, d='x') +\
output_*grad(output_, input_, d='t') -\
return grad(output_, input_, d='t') +\
output_*grad(output_, input_, d='x') -\
self.nu*laplacian(output_, input_, d='x')