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

WIP: Velocity and temperature ceilings in EOS #76

Closed
wants to merge 3 commits into from

Conversation

forrestglines
Copy link
Contributor

Adds a velocity and temperature ceiling to the EOS functions like we apply density and pressure floors. This is a hack to correct the issue where a portion of the domain reaches relativistic velocities.

Sibling PR to #75

@pgrete pgrete changed the base branch from main to pgrete/init-pert July 17, 2023 19:40
const Real eff_pressure_ceiling = gm1 * u_d * e_ceiling_;
if (w_p > eff_pressure_ceiling) {
// apply temperature ceiling, correct total energy
u_e = (u_d * e_ceiling_) + e_k;
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing the magnetic energy

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@pgrete
Copy link
Contributor

pgrete commented Aug 7, 2023

Closing in favor of #75

@pgrete pgrete closed this Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants