Boundary conditions

Each boundary has exactly one type of boundary conditions. For periodic boundary conditions, the opposite boundary must also be periodic. The available boundary conditions are given below.

IncompressibleNavierStokes.DirichletBCType
DirichletBC()

No slip boundary conditions, where all velocity components are zero.

DirichletBC(u, dudt)

Dirichlet boundary conditions for the velocity, where u[1] = (x..., t) -> u1_BC up to u[d] = (x..., t) -> ud_BC, where d is the dimension.

To make the pressure the same order as velocity, also provide dudt.

source
IncompressibleNavierStokes.PressureBCType
PressureBC()

Pressure boundary conditions. The pressure is prescribed on the boundary (usually an "outlet"). The velocity has zero Neumann conditions.

Note: Currently, the pressure is prescribed with the constant value of zero on the entire boundary.

source
IncompressibleNavierStokes.offset_uFunction
offset_u(bc, isnormal, isright)

Number of non-DOF velocity components at boundary. If isnormal, then the velocity is normal to the boundary, else parallel. If isright, it is at the end/right/rear/top boundary, otherwise beginning.

source