Skip to content

Viscous: weno_Re_flux = T leaves a no-slip wall velocity sawtooth; decide whether the compact face gradient should be the default #2390

Done

Description

@sbryngelson

Problem

With weno_Re_flux = T the viscous flux chain (WENO5-M face values, cell gradient by the divergence theorem, WENO5-M of the gradient, face average) has zero damping at the checkerboard wavenumber. Measured in MFC with a seeded mode in a periodic box at rest: decay rate 0.000 with weno_Re_flux = T (also weno_avg = F and WENO3), 20.5 with weno_Re_flux = F (the second-order finite-difference rate), exact 50.5. Physical modes decay at 1.000 and 0.994 of the exact rate. At no-slip walls the odd-mirror ghost forces this band and nothing damps it: a +/-/+/- velocity error in the first cells, 5.8% of the bulk speed at 32 cells across a channel (0.2% with weno_Re_flux = F), amplitude roughly proportional to 1/N.

Merged

weno_Re_flux_compact (opt-in, default off) in #2378 replaces the face-normal gradient with a compact difference: the sawtooth amplitude falls from 0.037 to 0.0000 at 32 cells, and the Nusselt number of the hot-wall channel example changes by 0.2% and 0.1%.

Open

  1. Make it the default? That changes about 63 goldens (those with weno_Re_flux = T and viscous) and the thermal channel example. Needs a decision.
  2. A fourth-order compact variant; tangential and cross-term gradients keep the WENO chain; IB walls are covered by ib_visc_compact.
  3. Time-step caveat: the compact gradient carries the explicit viscous limit (nu dt / dy^2) like weno_Re_flux = F; at 128 cells with CFL 0.4 both go NaN, at CFL 0.2 both are stable. Document or enforce.
  4. Test on an isothermal hot wall near an IB (IBM: opt-in compact viscous velocity gradients next to immersed bodies (ib_visc_compact) #2212 reported a flat-channel density excursion at 32 or more cells).

AI-assisted (Claude Code).

Activity

  1. added
    enhancement
    on Nov 22, 2026
  2. sbryngelson commented on Nov 22, 2026

    @sbryngelson
    MemberAuthor

    Related pull requests: #2378 (weno_Re_flux_compact, merged), #2376 (cylinder drag and Nusselt, merged), #2369 (channel flow, merged). See also #2041.

    AI-assisted (Claude Code).

  3. sbryngelson commented on Nov 26, 2026

    @sbryngelson
    MemberAuthor

    Opened #2517: makes weno_Re_flux_compact = T the default for Cartesian weno_Re_flux runs (resolved at start-up; F restores the WENO-chain face gradient), together with the HLLC viscous-work fix of #2453, with one golden regeneration on the exact base. In that PR 43 of the 100 changed goldens move because of the compact default (37 of them also because of the HLLC fix); the table there gives each one's change and cause.

    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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions