Closed marchdf closed 3 weeks ago
🏆 for this PR name!
This is mostly done. But I am still waiting on something to be cleared up. Basically a bunch of stuff happens in IAMR and PeleLMeX that doesn't happen in incflo and I am not sure which is the right direction for amr-wind. Discussion is on-going in several places and here's one of them: https://github.com/AMReX-Combustion/PeleLMeX/issues/386.
I have that stuff implemented for amr-wind and it causes diffs but no significant changes in the solution. So I can push it up here or ditch it depending on where these discussions go.
If it turns out that stuff in IAMR/PeleLMeX is needed I can add it as a separate PR. Right now it is looking like it is not needed (at least for most cases, maybe needed for variable density?). Discussion is ongoing but shouldn't hold this PR up. I don't expect any diffs with this PR.
Summary
Fixing the fact that the UDFs are called on cell-centered and face centered velocities and, therefore, the indices of the cells should be set appropriately.
Pull request type
Please check the type of change introduced:
Checklist
Left to do:
lev != 0
The following is included:
This PR was tested by running:
Additional background
With these changes, the fillpatch of the mac velocities now touches the following indices depending on the face-centered mac velocity component. For umac, we need to be touching -1 and 41 (with n_cell = 40). For the others it is -1 and 40.
Issue Number: #1076