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

FPE with simplified-SDC + Detonation #1596

Closed
zingale opened this issue Mar 19, 2021 · 5 comments
Closed

FPE with simplified-SDC + Detonation #1596

zingale opened this issue Mar 19, 2021 · 5 comments
Labels

Comments

@zingale
Copy link
Member

zingale commented Mar 19, 2021

Build the detonation problem as:

make USE_SIMPLIFIED_SDC=TRUE -j 20

run as:

./Castro1d.gnu.SMPLSDC.ex inputs-det-x.simplified_sdc amrex.fpe_trap_invalid=1

and it will crash after 26 steps with an FPE

Curiously, if you run it via valgrind as:

valgrind ./Castro1d.gnu.SMPLSDC.ex inputs-det-x.simplified_sdc amrex.fpe_trap_invalid=1

then it runs for 450+ steps (I killed the job at that point).

@zingale
Copy link
Member Author

zingale commented Mar 23, 2021

after all the recent changes, I now run to 420 steps before getting the FPE

@zingale
Copy link
Member Author

zingale commented Apr 3, 2021

with PR #1607 we FPE after 132 steps

Clearly we are generating a bad state at some point in the VODE stepping

@zingale
Copy link
Member Author

zingale commented Apr 3, 2021

in particular, the FPE is happening in sneut5 where we are coming in with:

rho, T = 1e-12 1e+10

@zingale
Copy link
Member Author

zingale commented Apr 3, 2021

okay, so this is the problem of too much advection again. The issue is that Castro wants to try a burn of 1.277229732e-07 s, but VODE is internally trying a timestep of 0.00399574. So the advective terms evacuate the cell. We need to restrict VODE to not try a timestep that is too large.

@zingale
Copy link
Member Author

zingale commented Apr 6, 2021

this was fixed with the Microphysics PR (643) linked above. I was able to run the example problem for 2000 steps (evolving to 1.87e-4 s).

@zingale zingale closed this as completed Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant