[WIP] Mathematical Engine Prototype for Non-Uniform Boundaries (GSoC 2026)#539
[WIP] Mathematical Engine Prototype for Non-Uniform Boundaries (GSoC 2026)#539utkuyilmaz1903 wants to merge 5 commits into
Conversation
…s for 1st and 2nd derivatives
…s for 1st and 2nd derivatives
…y stencils with MMS and AD tests
…nclude mathematical README
… zero allocations
|
Looking good, but of course we need to integrate this with the rest of the package. Which is the "centre point" of the stencil, i.e what index does it calculate? looking from the left, the missing stencil is at index 2, where index 1 would be a boundary condition. |
|
@xtalax The centre point here is strictly the boundary node itself (index 1 looking from the left, evaluating at |
Overview
Following the development of the isolated WENO engine (PR #538), this
PR provides a high-precision, zero-allocation mathematical framework
for calculating one-sided finite difference weights on non-uniform boundaries.
Handling boundaries on irregular grids is traditionally unstable and$O(1)$ and robust solution for
prone to truncation errors. This engine isolates the boundary
mathematics, offering a strictly
1st and 2nd derivatives using 4-point stencils derived via
Lagrange interpolating polynomials.
Key Features & Numerical Implementations
summation logic to calculate boundary coefficients. This ensures
bit-perfect mass conservation (
level), maintaining stability in long-term simulations.
from grid intervals (
eliminating positional reconstruction noise.
PDE solver's inner loops.
stretching ratios (up to
confirming
T<:Real),strictly supporting
ForwardDiff.Dualfor seamless Jacobiantracing in SciML architectures.
silent propagation of physical inconsistencies.
Note: Keeping this as a Draft to complement the GSoC 2026
architectural discussions regarding non-uniform grid support
in MethodOfLines.jl.