You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Viscous: weno_Re_flux = T leaves a no-slip wall velocity sawtooth; decide whether the compact face gradient should be the default #2390
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
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.
A fourth-order compact variant; tangential and cross-term gradients keep the WENO chain; IB walls are covered by ib_visc_compact.
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.
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.
Activity
sbryngelson commentedon Nov 22, 2026
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).
Viscous time step: include the dimension and stencil in the diffusive…
Viscous time step: include the dimension and stencil in the diffusive…
sbryngelson commentedon Nov 26, 2026
Opened #2517: makes
weno_Re_flux_compact = Tthe default for Cartesianweno_Re_fluxruns (resolved at start-up;Frestores 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).
HLLC: central tangential velocity in the viscous work (CPU/GPU-consis…