Skip to content

Commit

Permalink
adding physical and math BC types for inflow-outflow BCs (#3965)
Browse files Browse the repository at this point in the history
## Summary
This feature would be useful for managing boundaries with both inflow
and outflow cells. By adding these types in AMReX, they can be used
consistently across various inter-dependent codes such as IAMR,
AMReX-Hydro, and AMR-Wind.

## Additional background
The ongoing addition of an inflow-outflow BC in AMR-Wind is the primary
motivation.
  • Loading branch information
mukul1992 authored Jun 2, 2024
1 parent f141191 commit baa16a6
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions Src/Base/AMReX_BC_TYPES.H
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,24 @@ namespace amrex {

namespace PhysBCType {
enum physicalBndryTypes : int {interior=0,inflow,outflow,symmetry,
slipwall,noslipwall};
slipwall,noslipwall,inflowoutflow};
}

namespace BCType {
enum mathematicalBndryTypes : int {
bogus = -666,
reflect_odd = -1,
int_dir = 0,
reflect_even = 1,
foextrap = 2,
ext_dir = 3,
hoextrap = 4,
hoextrapcc = 5,
ext_dir_cc = 6,
user_1 = 1001,
user_2 = 1002,
user_3 = 1003
bogus = -666,
reflect_odd = -1,
int_dir = 0,
reflect_even = 1,
foextrap = 2,
ext_dir = 3,
hoextrap = 4,
hoextrapcc = 5,
ext_dir_cc = 6,
direction_dependent = 7,
user_1 = 1001,
user_2 = 1002,
user_3 = 1003
};
}

Expand Down

0 comments on commit baa16a6

Please sign in to comment.