-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add radiation-driven shell to regression tests #810
Conversation
for more information, see https://pre-commit.ci
…ro/quokka into BenWibking/fix-radhydro-shell
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Hmm, it looks like there is a global variable that is misbehaving:
Will fix. |
for more information, see https://pre-commit.ci
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
@markkrumholz @chongchonghe I would appreciate a review of this from both of you, if you have time. |
Code changes look fine. As to why we're not exactly preserving the analytic solution, one thing I might check is whether the shell is really very thin -- the analytic solution assumes an infinitely thin shell, and if that assumption is not fully satisfied, then we shouldn't expect to match the solution exactly. It may be necessary to tweak test parameters to reduce shell thickness, for example by reducing the sound speed so that pressure support becomes less important. |
The RadShell test on GPU failed. Even if you fix the bug, I speculate it will take too long to run. I would recommend reducing EDIT: the run time is also determined by |
@chongchonghe The error is this:
I think this indicates our current method is not robust enough. Edit: Ok, nvm. Something has gone wrong. The timestep is too small here anyway. Somehow it works on AMD GPU, though...
|
Ah, right. The shell is initially quite thick. This is necessary because there is no steady-state solution of the radiation moment equations for a sufficiently-thin shell under the M1 closure. But that probably means we shouldn't expect exact agreement... |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
|
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
@chongchonghe I added a density floor, so it now works for 128^3, which is tested in the nightly regression tests. The 64^3 version is used for the |
Description
Adds this problem to the nightly regression test suite. There was also a bug in the initial conditions in the radiation flux in converting from spherical to Cartesian flux components (now fixed).
At late times, the simulation still has a slightly discrepancy w.r.t. the semi-analytic solution (similar to that shown in the original code paper). This is most likely due to initial shell thickness being quite significant. (There is not an easy solution to this, since there is no steady-state solution that satisfies the M1 closure for sufficiently thin shells.)
movie_large.mov
Related issues
Closes #743.
Checklist
Before this pull request can be reviewed, all of these tasks should be completed. Denote completed tasks with an
x
inside the square brackets[ ]
in the Markdown source below:/azp run
.