Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in isentropic Euler vortex initialization #1269

Closed
andrewwinters5000 opened this issue Nov 23, 2022 · 5 comments · Fixed by #1279
Closed

Error in isentropic Euler vortex initialization #1269

andrewwinters5000 opened this issue Nov 23, 2022 · 5 comments · Fixed by #1279
Assignees
Labels
bug Something isn't working

Comments

@andrewwinters5000
Copy link
Member

The initial condition for the isentropic vortex of the compressible Euler equations has a bug. The computation of the perturbed rho quantity uses "inverse division" [what the heck Julia?!?]

  rho = rho * (1+dtemp)^(1 \ (equations.gamma-1))

instead of normal division

  rho = rho * (1+dtemp)^(1 / (equations.gamma-1))

This error is present in all euler_vortex elixirs in the examples/tree_2d_dgsem and examples/special_elixirs.

Also, the amplitude, background pressure, etc. make for a very weakly perturbed vortex as compared to the initialization found here.

@andrewwinters5000 andrewwinters5000 added the bug Something isn't working label Nov 23, 2022
@ranocha
Copy link
Member

ranocha commented Nov 23, 2022

Backslash comes from Matlab and friends for solving linear systems... Want to propose another setup and make a PR?

@ranocha
Copy link
Member

ranocha commented Nov 23, 2022

But it's definitely great that you found this!

@sloede
Copy link
Member

sloede commented Nov 23, 2022

But it's definitely great that you found this!

I second that! Maybe this explains why it was always so fickle to use as a test setup. Can you spot the difference qualitatively when comparing contour plots or is it more subtle?

@andrewwinters5000
Copy link
Member Author

But it's definitely great that you found this!

I second that! Maybe this explains why it was always so fickle to use as a test setup. Can you spot the difference qualitatively when comparing contour plots or is it more subtle?

The current initialization or switching to use division look qualitatively the same (i.e. like a vortex). What should be adjusted as well as is the size of the iniamplitude and/or the pressure p. These values influence how large the du values are as well as the Mach number. @gregorgassner and I cooked up a decent alternative version of this initial condition. We can (maybe) use it for all these elixirs as well.

@andrewwinters5000
Copy link
Member Author

Backslash comes from Matlab and friends for solving linear systems... Want to propose another setup and make a PR?

Yeah, once I carve out some time the initial condition and the testing values can get updated accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants