Pressure compatibility at a no-slip wall (source code)

= Pressure compatibility at a no-slip wall

For a smooth <incompressible flow> at a fixed flat impermeable <no-slip boundary condition>, the <velocity> is zero at the wall for all time. Consequently both its time derivative and its <convective acceleration> vanish there. Write the <Navier-Stokes equation> per unit <mass> as
$$
\partial_t\mathbf u+(\mathbf u\cdot\nabla)\mathbf u
=-\nabla p+\nu\Delta\mathbf u+\mathbf b,
$$
where $p$ is <kinematic pressure>, $\nu$ is <kinematic viscosity>, and $\mathbf b$ is the specified <body force> per unit <mass>. The wall-normal projection therefore fixes
$$
\partial_np=\nu\mathbf n\cdot\Delta\mathbf u+\mathbf n\cdot\mathbf b.
$$
The sign of a buoyancy contribution follows its sign in the <momentum> equation. In particular, if the chosen perturbation convention has $\mathbf b=-\mathrm{Ri}_B\theta\widehat{\mathbf y}$, this becomes $\partial_np=\nu\mathbf n\cdot\Delta\mathbf u-\mathrm{Ri}_B\theta\,\mathbf n\cdot\widehat{\mathbf y}$. A convention with the opposite <body force> reverses that term.

A homogeneous <Neumann boundary condition> for <pressure> is compatible only when this right-hand side vanishes. It does not follow from the <no-slip boundary condition>: zero wall <velocity> does not require the wall value of its second spatial derivatives to vanish. This compatibility condition supplies the wall data for the <pressure Poisson equation for incompressible flow>.