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

More multiphase overset improvements #1182

Merged
merged 9 commits into from
Aug 5, 2024

Conversation

mbkuhn
Copy link
Contributor

@mbkuhn mbkuhn commented Aug 5, 2024

Summary

Changes necessary for getting the second set of overset regression tests running

Pull request type

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

Checklist

The following is included:

  • new unit-test(s)
  • new regression test(s)
  • documentation for new capability

This PR was tested by running:

  • the unit tests
    • on GPU
    • on CPU
  • the regression tests
    • on GPU
    • on CPU

Additional background

Issue Number:

GetArrOfConstPtrs(fluxes[lev]), fluxes[lev - 1],
repo.mesh().refRatio(lev), geom[lev - 1]);
GetArrOfConstPtrs(fluxes[lev]), fluxes[lev - 1], rr,
geom[lev - 1]);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these changes were necessary to avoid a segfault. I didn't get the segfault previously because I wasn't testing multilevel cases. However, this now conforms to the way it's done in other parts of our code.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm should it actually be repo.mesh().refRatio(lev-1) ? I am a little weirded out of doing our own math here if we have ref ratio available.

@mbkuhn
Copy link
Contributor Author

mbkuhn commented Aug 5, 2024

The key change is the averaging of the flux to faces. The other things are a tweak to get the right perturbational pressure and removing something not needed for initialization.

@mbkuhn mbkuhn requested a review from marchdf August 5, 2024 18:21
amr-wind/overset/OversetOps.cpp Outdated Show resolved Hide resolved
GetArrOfConstPtrs(fluxes[lev]), fluxes[lev - 1],
repo.mesh().refRatio(lev), geom[lev - 1]);
GetArrOfConstPtrs(fluxes[lev]), fluxes[lev - 1], rr,
geom[lev - 1]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm should it actually be repo.mesh().refRatio(lev-1) ? I am a little weirded out of doing our own math here if we have ref ratio available.

@marchdf
Copy link
Contributor

marchdf commented Aug 5, 2024

All amr-wind tests pass

@mbkuhn
Copy link
Contributor Author

mbkuhn commented Aug 5, 2024

I decided to also remove two undefined functions from incflo.H

@mbkuhn mbkuhn requested a review from marchdf August 5, 2024 19:25
@mbkuhn mbkuhn merged commit 2fbd345 into Exawind:main Aug 5, 2024
14 checks passed
@mbkuhn mbkuhn deleted the mphase_stokescase_fixes branch August 22, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants