Block-Structured AMR Software Framework
AMReX_BC_TYPES.H
Go to the documentation of this file.
1 #ifndef AMREX_BC_TYPES_H_
2 #define AMREX_BC_TYPES_H_
3 #include <AMReX_Config.H>
4 
5 #if 0
6 ---------------------------------------------------------------------
7  CONVERSIONS FROM PHYSICAL TO MATHEMATICAL BCs
8  Note that it is up to application codes to enforce conversions
9 
10 
11 PHYS BC | Velocity | Temperature | Scalars |
12 ----------------------------------------------------------------------
13 INTERIOR | | | |
14  or | INT_DIR | INT_DIR | INT_DIR |
15 PERIODIC | | | |
16 ----------------------------------------------------------------------
17  | | | |
18 INFLOW | EXT_DIR | EXT_DIR | EXT_DIR |
19  | | | |
20 ----------------------------------------------------------------------
21  | | | |
22 OUTFLOW | FOEXTRAP | FOEXTRAP | FOEXTRAP |
23  | | | |
24 ----------------------------------------------------------------------
25 NO SLIP WALL | | | |
26  with | EXT_DIR | REFLECT_EVEN | FOEXTRAP |
27 ADIABATIC TEMP | U = V = 0 | dT/dn = 0 | |
28 ----------------------------------------------------------------------
29 NO SLIP WALL | | | |
30  with | EXT_DIR | EXT_DIR | FOEXTRAP |
31 FIXED TEMP | U = V = 0 | | |
32 ----------------------------------------------------------------------
33 SLIP WALL | | | |
34  with | Un=0 EXT_DIR | REFLECT_EVEN | HOEXTRAP |
35 ADIABATIC TEMP | Ut HOEXTRAP | dT/dn = 0 | |
36 ----------------------------------------------------------------------
37 SLIP WALL | | | |
38  with | Un=0 EXT_DIR | EXT_DIR | HOEXTRAP |
39 FIXED TEMP | Ut HOEXTRAP | | |
40 ----------------------------------------------------------------------
41  | | | |
42 SYMMETRY | Un REFLECT_ODD | REFLECT_EVEN | REFLECT_EVEN |
43  | Ut REFLECT_EVEN| | |
44 ----------------------------------------------------------------------
45 
46 
47 INT_DIR : data taken from other grids or interpolated
48 EXT_DIR : data specified on EDGE (FACE)
49 EXT_DIR_CC : data specified at cell center
50 HOEXTRAP : higher order extrapolation to EDGE of bndry
51 HOEXTRAPCC : linear extrapolation to CELL of bndry
52 FOEXTRAP : first order extrapolation from last cell in interior
53 REFLECT_EVEN : F(-n) = F(n) true reflection from interior cells
54 REFLECT_ODD : F(-n) = -F(n) true reflection from interior cells
55 
56 #endif
57 
58 #ifdef __cplusplus
59 namespace amrex {
60 
61 namespace PhysBCType {
62 enum physicalBndryTypes : int {interior=0,inflow,outflow,symmetry,
63  slipwall,noslipwall,inflowoutflow};
64 }
65 
66 namespace BCType {
67 enum mathematicalBndryTypes : int {
68  bogus = -666,
69  reflect_odd = -1,
70  int_dir = 0,
71  reflect_even = 1,
72  foextrap = 2,
73  ext_dir = 3,
74  hoextrap = 4,
75  hoextrapcc = 5,
76  ext_dir_cc = 6,
77  direction_dependent = 7,
78  user_1 = 1001,
79  user_2 = 1002,
80  user_3 = 1003
81 };
82 }
83 
84 }
85 #endif
86 
87 #endif
const int interior
Definition: AMReX_Extrapolater.H:17
AMREX_GPU_HOST_DEVICE Long at(T const &, Long offset) noexcept
Definition: AMReX_GpuRange.H:30
Definition: AMReX_Amr.cpp:49