-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add simple subsonic inflow/outflow BCs (#598)
### Description This adds simplified subsonic inflow and outflow boundary conditions. For outflows, it specifies the pressure at the outflow and extrapolates the other primitive variables (while turning into a reflecting boundary if the normal velocity is inflowing). For inflows, it specifies the velocity components, the temperature, and the passive scalars, while extrapolating the density. Unlike the naive boundary conditions, these boundary conditions are well-posed, since they specify the correct number of quantities required for the steady-state solution to be unique. The amplitude of reflected waves is greater than for the NSCBC boundary conditions, but these boundary conditions are much more stable in the presence of supersonic turbulent flow near the boundary. ### Related issues Workaround for #532. ### Checklist _Before this pull request can be reviewed, all of these tasks should be completed. Denote completed tasks with an `x` inside the square brackets `[ ]` in the Markdown source below:_ - [x] I have added a description (see above). - [x] I have added a link to any related issues see (see above). - [x] I have read the [Contributing Guide](https://github.com/quokka-astro/quokka/blob/development/CONTRIBUTING.md). - [ ] I have added tests for any new physics that this PR adds to the code. - [x] I have tested this PR on my local computer and all tests pass. - [x] I have manually triggered the GPU tests with the magic comment `/azp run`. - [ ] I have requested a reviewer for this PR.
- Loading branch information
1 parent
d13e3bc
commit dd5c2fd
Showing
2 changed files
with
154 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters