-
The ProblemHey everyone! I am running some radiative SN blast wave test problems at low-ish resolution. In order to better take care of the numerous bad cells that come up in these sorts of calculations, near the inside edge of the shell, I am correcting bad pressures by taking the average of nearby cell pressures rather than just applying a floor. Currently, this is done over both ghost and active cells. Since, the average is taken only over cells in the MeshBlock this means that this averaging could give different answers for ghost cells of a MeshBlock compared to the active cells they correspond to. Meaning that subsequent fluxes that are calculated will be different. This is just in non-amr, plain hydro, nothing fancy (other than the cooling I suppose). This post isn't specifically concerned with this but I would also like to apply the cell-averaging in a way that maintains the symmetry, but I think this would require another copy of the hydro variables to be kept. Any thoughts on the easiest way to do that would also be appreciated. My Initial SolutionTo get around this I figured I would restrict the
here after copying this in the Any Help AppreciatedI know I probably did a bunch of things wrong so any help is appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
A quick question before I have time to look in detail: Did you look at the |
Beta Was this translation helpful? Give feedback.
-
We decided that the best way around this was to simply do the neighbor averaging in a flag-and-apply manner and then increase the number of ghost zones by one more than is needed for reconstruction. This way, all ghost zones that matter in each |
Beta Was this translation helpful? Give feedback.
We decided that the best way around this was to simply do the neighbor averaging in a flag-and-apply manner and then increase the number of ghost zones by one more than is needed for reconstruction. This way, all ghost zones that matter in each
MeshBlock
have all the information they need to do a neighbor average in exactly the same way it is done in the corresponding active cells. The flag-and-apply strategy also avoids errors (and asymmetries) brought on by the order in which the corrections are done. See the bottom of this page.