Skip to content

IB no-slip ghost velocity is set to the wall value, not reflected (first-order wall) #2014

Done

Description

@sbryngelson

Symptom. IB no-slip walls are first-order accurate.

  • For a 2D cylinder at Re 40 (M 0.2), the first fluid cell next to the wall keeps u ≈ 0.2 U.
  • The recirculation length converges from below at observed order 0.95: L/D = 2.08 / 2.19 / 2.24 at 20 / 40 / 80 cells/D, against 2.35 (Dennis & Chang).
  • Drag from a momentum balance is accurate (within 1 %), so the effect shows up mainly in near-wall quantities.

Cause. s_compute_ghost_point_velocity (src/simulation/m_ibm.fpp) sets the ghost velocity to the wall velocity: vel_GP = 0 for fixed bodies, or the body velocity for moving ones. It does not reflect the image-point velocity about the wall value, which is what the temperature ghosts do (T_g = 2 T_wall − T_IP). With the ghost at the wall value and the ghost centre up to one cell inside the body, the effective no-slip location sits inside the surface.

Suggested direction. Set the ghost velocity by reflection, u_G = 2 u_wall − u_IP, scaled by the ghost/image distance ratio as for temperature. This changes every viscous IB solution, so it needs regenerated goldens and a validation rerun (cylinder L/D, Cd, Nu convergence).

Related: the IB force output is low (separate issue). Reflection alone does not fix that issue.

Found while validating particle-resolved IB flows against reference data, with Claude Code.

Activity

  1. sbryngelson commented on Nov 25, 2026

    @sbryngelson
    MemberAuthor

    Checked against current master (bb9cfe5e1): superseded by two opt-in wall treatments.

    • ib_second_order_vel = T (2nd order IBM #1958, 4e96e0da3): s_compute_ghost_point_velocity (src/simulation/m_ibm.fpp, about line 598) extrapolates linearly through the wall point, vel_GP = vel_w - |levelset|/ip_dist * (vel_IP - vel_w) (Mittal et al. 2008), the reflection this issue asks for, scaled by the ghost/image distance ratio.
    • ib_wall_order = 2 (IBM: opt-in two-probe quadratic wall-normal ghost velocity (ib_wall_order = 2) #2176, 799ccc664): a quadratic wall-normal profile through the wall value and two TSC probes (f_quad_fill) for no-slip ghosts.

    What is unchanged: the default (ib_second_order_vel = F, ib_wall_order = 1) still sets vel_GP = vel_w, i.e. the first-order wall described here. Making a higher-order wall the default is proposed in the open #2486 (ib_wall_order = 2 and TSC image points by default), which is the place for that decision.

    Closing as completed (superseded).

    AI-assisted (Claude Code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions