Skip to content

C7 The upwind–central split ​

IDGroupTypeBackendsFigureProgram
C7ContractsCPython (exact rationals); CPU (gfortran R4P, R8P, R16P; nvfortran)noscripts/gen_gideon.py, gideon_test_split

Case and scope ​

A hybrid scheme moves between a central and an upwind-biased face value with a sensor. That is only clean if the biased value is the central one plus a dissipation term the sensor can scale: then the central scheme is recovered exactly at σ=0 and the biased one at σ=1. This case proves the identity for every biased face row in exact arithmetic, checks the compiled kernels against it, and records where it does not hold (roadmap #2, 1.2).

Models and numerics ​

ItemChoiceCode
Identityface_bl2k+1=face_c2k+2+Ckδ2k+1, face_br2k+1=face_c2k+2−Ckδ2k+1, k=1…4, point values and cell averagesgen_gideon.py, build()
Proofthe biased row minus the centred row on the centred window, divided by the binomial δ2k+1 row: a single ratio, or the generator stops
One-sided rowsthe same tried for every ur row against every centred face row: split_findings
Compiled check50 random windows; c+0⋅d=c bitwise; |c+d−b|≤64ε(∑|b|+∑|c|)max|q|gideon_test_split.F90

Program ​

bash
python3 scripts/gen_gideon.py --check
./exe/gideon_test_split

Results ​

The identities, every one proven in exact rationals:

DataBiased (left)= centred+ C ×differenceDissipation part (left, right: −C)
fdfd_face_bl3fd_face_c41/16δ3fd_face_diss_bl3, fd_face_diss_br3
fdfd_face_bl5fd_face_c6−3/256δ5fd_face_diss_bl5, fd_face_diss_br5
fdfd_face_bl7fd_face_c85/2048δ7fd_face_diss_bl7, fd_face_diss_br7
fdfd_face_bl9fd_face_c10−35/65536δ9fd_face_diss_bl9, fd_face_diss_br9
fvfv_face_bl3fv_face_c41/12δ3fv_face_diss_bl3, fv_face_diss_br3
fvfv_face_bl5fv_face_c6−1/60δ5fv_face_diss_bl5, fv_face_diss_br5
fvfv_face_bl7fv_face_c81/280δ7fv_face_diss_bl7, fv_face_diss_br7
fvfv_face_bl9fv_face_c10−1/1260δ9fv_face_diss_bl9, fv_face_diss_br9

The one-sided rows, from the generator's findings:

  • split fd: gideon_fd_face_ur1 = gideon_fd_face_c2 + (1/2) delta^1; no centred row + one face difference: gideon_fd_face_ur2, gideon_fd_face_ur3, gideon_fd_face_ur4, gideon_fd_face_ur5, gideon_fd_face_ur6, gideon_fd_face_ur7, gideon_fd_face_ur8, gideon_fd_face_ur9
  • split fv: gideon_fv_face_ur1 = gideon_fv_face_c2 + (1/2) delta^1; no centred row + one face difference: gideon_fv_face_ur2, gideon_fv_face_ur3, gideon_fv_face_ur4, gideon_fv_face_ur5, gideon_fv_face_ur6, gideon_fv_face_ur7, gideon_fv_face_ur8, gideon_fv_face_ur9

The compiled kernels:

BuildBiased kernelsChecksFailures
gfortran, R4P1616000
gfortran, R8P1616000
gfortran, R16P1616000
nvfortran -acc, R8P1616000

Findings ​

  • Every upwind-biased face value of order 2k+1 is the centred value of order 2k+2 plus one face difference, on point values and on cell averages: the difference of two rows exact to degree 2k on the same 2k+2 points annihilates every polynomial of degree ≤2k, and the only such row is δ2k+1. On cell averages the constants are 1/12, −1/60, 1/280, −1/1260: the familiar split of the linear WENO face values.
  • The one-sided rows do not split beyond one cell: ur2 − c4 is [1,−9,15,−7]/16, not a multiple of δ3; only ur1 = c2 + δ1/2. Their windows are not symmetric about the face, so the remainder spans more than one difference. Roadmap #2 claimed the split for "every upwind-biased and one-sided face row": true for the first, false for the second.
  • At σ=1 the sum c+d is a different floating-point sum from the biased kernel: equal within the round-off of the two, not bitwise (#2's gate asked for both ends bitwise: kept at σ=0 only).

Released under your choice of GPL-3.0-or-later, BSD-2-Clause, BSD-3-Clause or MIT.