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
Extrapolating boundary condition #121
Conversation
Thanks Iryna! This looks great. A few minor comments:
|
Thanks @gregbryan! I implemented the changes you suggested in this new commit. |
@ibutsky could you please update your pull request using the tip of the enzo-dev repository? We updated the gold standard for tests. |
Everything looks good to me, except that the code should either (1) halt and give an error message when using hydrostatic BCs and |
This looks good to me. I can see this being very useful. Do you have a simple test problem that you could add to the run directory that uses this boundary? It's helpful to have working examples of machinery. |
@bwoshea Could you review this PR? Thanks! |
After working with these hydrostatic boundary conditions in my thermal instability simulations, I decided to update the algorithm. I just pushed an update in commit #561b3b17ff2c1cb449ca242e32c7ee385a7a7e9d. The biggest differences are:
|
Hi @ibutsky, sorry for the delay in the review. But your changes don't compile correctly anymore. It looks like there's a mismatch in the routine's arguments. Could you fix this? Thanks! |
@jwise77 Should be fixed now - sorry about that! |
Ping @bwoshea for your review. Thanks! |
I'm merging after we agreed on the mailing list to only require 2 approvals for PRs. Sorry this took so long! |
Adding a new external boundary type, "extrapolate", meant to help a simulation stay in hydrostatic equilibrium. For most baryon fields, this method predicts the values in the boundary with a quadratic interpolation from the 3 nearest active cells. The density field is fit with a power law using the nearest 2 active cells. All velocities are set to zero in the boundary.