Skip to content

What's the expected result from examples/Burgers.py? #668

Answered by lululxvi
piyueh asked this question in Q&A
Discussion options

You must be logged in to vote

Your result is correct. If the code can successfully run without error, then the setup should be correct.

For Burgers, the input variable is two dimensional (x, t), and the output is y, so the function surface is 3D. But, by default, the code projects the 3D plot into a 2D figure by ignore t. That is why the plot looks messy. The result is saved to test.dat with the first column x, the second column t, the third column y_true, and the fourth column y_pred. You can plot the result in 3D to compare the exact solution and prediction.

You can also try simples cases, such as Poisson in 1D.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lululxvi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #668 on May 13, 2022 21:59.