-
Notifications
You must be signed in to change notification settings - Fork 280
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
BUG: Order of Cylindrical Coordinates for Athena++ Incorrect #4796
Comments
Hi @forrestglines, thank you for reporting. I think this is reasonably decoupled with #4790 so feel free to open a PR with your fix at any point ! |
It might be worth checking that we're using the |
Thanks for the input! This issue with coordinates is the same issue I encountered developing the Parthenon backend. The two data formats (and the AthenaPK code) are extremely similar so I'd like the frontends to behave similarly. I see two options preferable options to fix both:
I'm a bit inclined to go with the first option to keep Athena++ as |
Thanks @matthewturk! This is a suggestion for implementation for the selection and pixelization routines and what's likely causing issues in #4790, right? In this issue I'm having the trouble that yt by default uses r == 0, z == 1, theta == 2 for cylindrical dataset when Athena++ cylindrical datasets are r == 0, theta == 1, z == 2. Does the fix in #4801 look congruent with yt standards/expectations? It only changes the assumptions about Athena++ cylindrical dataset but hopefully no other assumptions in the code. |
I don't think those options should be mutually exclusive: if using |
I think this is the right solution, this is good enough for both frontends. When the issues with POLAR are addressed we can switch both frontends. |
Bug report
Bug summary
The order of coordinates for cylindrical datasets from Athena++ seem to be incorrect. I ran across this issue writing #4323
I have a hot-fix for just my purposes to reorder the coordinates. However, changing the geometry to
Geometry.POLAR
might be a better fix once #4790 is done. I can provide my hot-fix on request.Code for reproduction
Here's the
athdf
file for a 2D Keplerian disk with uniform r-coordinates modified from the input deckathinput.disk_cyl
included with Athena++:I try to plot the disk with
Actual outcome
Expected outcome
Whereas if I force the correct coordinate ordering by changing the Athena++ frontend to respect$(r,\theta,z)$ I get the expected disk
Version Information
Using current main commit: d5b3335
The text was updated successfully, but these errors were encountered: