WIP: implement relativistic standing accretion shock test problem#173
Open
carlnotsagan wants to merge 57 commits intomainfrom
Open
WIP: implement relativistic standing accretion shock test problem#173carlnotsagan wants to merge 57 commits intomainfrom
carlnotsagan wants to merge 57 commits intomainfrom
Conversation
added 27 commits
May 17, 2023 12:49
added 3 commits
June 8, 2023 12:35
…r now while debug root find failure
…racket root when executing driver
Yurlungur
reviewed
Jun 14, 2023
| Real rho1 = rho0 * W0 * (vr0 / vr1); | ||
|
|
||
| v(irho, k, j, i) = rho1; | ||
| v(ieng, k, j, i) = (W0 - 1. + epsND * (gamma - 1.)) / (gamma); |
Collaborator
There was a problem hiding this comment.
v(ieng, k, j, i) is internal energy by volume and formula from Radice is specific. Need to multiply by rho.
Collaborator
There was a problem hiding this comment.
Need to solve Radice's shock equations for EOS without assuming gamma
Collaborator
Author
There was a problem hiding this comment.
So the issue I have run into is needing to choose a variable that we know to solve the rest. I settled on using the equation for velocity in the preshock region assuming ideal gas: const Real vr1 = (vr0 + std::sqrt(vr0 * vr0 - 4. * psi)) / 2.;
Then the density follows from the Rankine–Hugoniot jump conditions (no ideal gas assumption).
Then I solve the remaining equations without ideal gas assumption using vr1,vr0,rho0,rho1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Summary
We want to implement the relativistic standing accretion shock test case to explore high resolution turbulent convection.
References:
https://iopscience.iop.org/article/10.3847/0004-637X/820/1/76/pdf
Eq 4. + ...
https://iopscience.iop.org/article/10.1088/2041-8205/813/1/L6/pdf
https://iopscience.iop.org/article/10.1086/508443/pdf
Issues: