Skip to content

Rotated free slip on a FLAT wall does not reproduce the equivalent component Dirichlet condition (2e-3, and not a convergence artefact) #616

Closed as not planned

Description

@lmoresi

On a flat, axis-aligned wall add_rotated_freeslip_bc(0.0, "Top") and
add_dirichlet_bc((None, 0.0), "Top") are the same discrete constraint: the
measure-weighted node normal is exactly (0,1), so striking the rotated normal
row is striking u_y. The two solves do not agree.

Minimal reproduction

Unit box, StructuredQuadBox(elementRes=(32,32)), uniform viscosity 1,
bodyforce = (0, cos(pi x) sin(pi z)), free slip on all four walls (Left,
Right, Bottom by component Dirichlet), petsc_use_pressure_nullspace = True,
tolerance = 1e-9. Reference is a monolithic LU solve of the component-Dirichlet
problem. The two top corner nodes are EXCLUDED from every norm (they are the
known recovery corner, #608).

run ‖u − u_ref‖ / ‖u_ref‖
component Dirichlet, default solver 8.9e-09
component Dirichlet, pc_type=lu 0 (the reference)
rotated free slip, default solver 2.0e-03
rotated free slip, _rotated_use_lu = True 2.1e-03

The last row is the point: with an exact linear solve on both sides the answers
still differ by 2e-3, so this is the discrete problem, not convergence.

What it is not

  • Not the corner. Dropping a ball of radius 1/32, 2/32, 4/32, 8/32 around each
    top corner takes the ratio of velocity errors from 1.49 to 1.19; a 20% excess
    survives dropping a quarter of the domain.
  • Not the tolerance. tolerance = 1e-9 and 1e-12 give bit-identical
    answers on the rotated path (3.313e-03 both, SolCx eta_B=10).
  • Not the pressure gauge. The rotated path builds the constant-pressure null
    vector; its pressure comes back with a non-zero mean (−0.224 where the
    Dirichlet run gives 1e-12), but a constant pressure has no gradient and cannot
    move the velocity.
  • Not the viscosity contrast — and this is the odd part. Same comparison
    against contrast: uniform 3.2e-03, eta_B=10 2.7e-03, eta_B=1e6 9.3e-08.
    The two agree on the hard problem and disagree on the easy one.

Why it matters

It is the reason a SolCx velocity error reads 1.7e-03 with a component-Dirichlet
lid and 3.3e-03 with a rotated one, which reads as the rotated constraint being
half as accurate on a geometry where it should be identical. On curved boundaries
there is no component condition to compare against, so this comparison is only
available on a box — which is where it should be guarded.

Found while measuring boundary-condition treatments for UWTN 2026-016;
reproduction in that note's examples/solcx.py.

Underworld development team with AI support from Claude Code

Activity

  1. lmoresi commented on Aug 26, 2026

    @lmoresi
    MemberAuthor

    Closing as a duplicate of #608 — same benchmark, same contrast, same 1.7e-03 / 3.3e-03 pair. The forensics here (not the corner, not convergence, not the gauge, the contrast dependence) have been carried across so they are not lost.

    One correction to this issue's framing, with a measurement, which is why #608 is the one kept: rotated free slip on a flat wall DOES reproduce the component Dirichlet condition — to 1e-10 — when it is used on all four walls. The disagreement needs a rotated wall adjacent to component-Dirichlet walls:

    configuration eta_B = 10 eta_B = 1e6
    all four walls rotated 7.5e-11 2.0e-10
    Top rotated, others component Dirichlet 9.1e-03 3.2e-07

    So the title's claim is too broad, and #608's — "rotated free slip meets a component Dirichlet wall" — is the accurate one.

    Underworld development team with AI support from Claude Code

  2. added a commit that references this issue on Nov 4, 2026
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