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

Support for cosmic ray fields in GAMER #4739

Merged
merged 6 commits into from
Dec 11, 2023
Merged

Conversation

jzuhone
Copy link
Contributor

@jzuhone jzuhone commented Nov 13, 2023

PR Summary

GAMER recently included support for cosmic ray fluids. This PR supports these fields by adding a gamma_cr attribute to the GAMER Dataset if it is found in the runtime parameters, adds the fields ("gas", "cosmic_ray_energy_density") and ("gas", "cosmic_ray_pressure"), and modifies the computation of the non-cosmic ray gas thermal energy, pressure, and temperature to account for the existence of the cosmic ray energy if it is available.

Will add a test, but I tried this out on the cosmic ray shock tube problem in GAMER and it seems to work.

PR Checklist

  • New features are documented, with docstrings and narrative docs
  • Adds a test for any bugs fixed. Adds tests for new features.

@jzuhone jzuhone added the new feature Something fun and new! label Nov 13, 2023
@jzuhone jzuhone requested a review from hyschive November 13, 2023 19:56
@jzuhone
Copy link
Contributor Author

jzuhone commented Nov 13, 2023

ping @ChunYen-Chen

hyschive
hyschive previously approved these changes Nov 14, 2023
Copy link
Contributor

@hyschive hyschive left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jzuhone Looks good. Thanks!

@jzuhone
Copy link
Contributor Author

jzuhone commented Nov 21, 2023

@yt-fido test this please

1 similar comment
@jzuhone
Copy link
Contributor Author

jzuhone commented Nov 21, 2023

@yt-fido test this please

@jzuhone
Copy link
Contributor Author

jzuhone commented Nov 22, 2023

This is ready to go now--thanks @Xarthisius

@matthewturk matthewturk merged commit a2b5e3e into yt-project:main Dec 11, 2023
13 checks passed
@neutrinoceros neutrinoceros added this to the 4.4.0 milestone Dec 11, 2023
@jzuhone jzuhone deleted the gamer_cr branch January 22, 2024 00:02
@neutrinoceros neutrinoceros added the code frontends Things related to specific frontends label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code frontends Things related to specific frontends new feature Something fun and new!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants