#include "AMReX_LO_BCTYPES.H"
Go to the source code of this file.
|
| Array< LinOpBCType, AMREX_SPACEDIM > | get_lo_projection_bc (Geometry const &lev_geom, Array< std::string, 2 *AMREX_SPACEDIM > l_domain_bc_type) |
| |
| Array< LinOpBCType, AMREX_SPACEDIM > | get_hi_projection_bc (Geometry const &lev_geom, Array< std::string, 2 *AMREX_SPACEDIM > l_domain_bc_type) |
| |
◆ get_hi_projection_bc()
| Array<LinOpBCType,AMREX_SPACEDIM> get_hi_projection_bc |
( |
Geometry const & |
lev_geom, |
|
|
Array< std::string, 2 *AMREX_SPACEDIM > |
l_domain_bc_type |
|
) |
| |
|
inline |
37 amrex::Array<amrex::LinOpBCType,AMREX_SPACEDIM> r;
38 for (
int dir = 0; dir < AMREX_SPACEDIM; ++dir) {
39 if ( lev_geom.isPeriodic(dir) )
41 r[dir] = LinOpBCType::Periodic;
43 auto bc_type = l_domain_bc_type[Orientation(dir,Orientation::high)];
44 if (bc_type ==
"Outflow" || bc_type ==
"Open") {
45 r[dir] = LinOpBCType::Dirichlet;
47 r[dir] = LinOpBCType::Neumann;
Referenced by ERF::project_velocity_tb(), solve_with_EB_mlmg(), and solve_with_mlmg().
◆ get_lo_projection_bc()
| Array<LinOpBCType,AMREX_SPACEDIM> get_lo_projection_bc |
( |
Geometry const & |
lev_geom, |
|
|
Array< std::string, 2 *AMREX_SPACEDIM > |
l_domain_bc_type |
|
) |
| |
|
inline |
Define the domain boundary conditions for the (optional) Poisson solve if we want to enforce that the initial conditions satisfy the constraint
16 amrex::Array<amrex::LinOpBCType,AMREX_SPACEDIM> r;
17 for (
int dir = 0; dir < AMREX_SPACEDIM; ++dir) {
18 if ( lev_geom.isPeriodic(dir) )
20 r[dir] = LinOpBCType::Periodic;
22 auto bc_type = l_domain_bc_type[Orientation(dir,Orientation::low)];
23 if (bc_type ==
"Outflow" || bc_type ==
"Open") {
24 r[dir] = LinOpBCType::Dirichlet;
26 r[dir] = LinOpBCType::Neumann;
Referenced by ERF::project_velocity_tb(), solve_with_EB_mlmg(), and solve_with_mlmg().