Skip to content

Support higher mixed derivatives in ArrayDiscretization - #654

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
utkuyilmaz1903:feature/array-higher-mixed-derivatives
Aug 23, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
utkuyilmaz1903:feature/array-higher-mixed-derivatives

Conversation

@utkuyilmaz1903

Copy link
Copy Markdown
Member

Extends #648. Closes the remaining Higher mixed derivatives item of #623.

Higher mixed derivatives (Dx^2(Dy(u)) and the rest) now use the same tensor-product stencil as Dx(Dy(u)), on both the array path and the pointwise path.

These used to fall back to pointwise equations. On the scalar path it was worse: there was no mixed rule, so the leftover outer Differential became 0. The slice form just looks up derivweights.map[Differential(x)^m] / map[Differential(y)^n] and reuses array_mixed_difference. Bands now use the real mixed orders, so something like Dx^3(Dy(u)) doesn't empty the core. First-order mixed is unchanged.

Case Interior array eqs Check
2D (2,1), (1,2), (2,2), (3,1) 1 array form
Dxx + Dyy + Dxxy, approx. order 2 / 4 / 6 1 successful_retcode
Variable coefficient 1 successful_retcode
Nonuniform (both axes) 1 successful_retcode
Periodic in one direction 2 wrap-box count independent of n
Periodic in both directions 5 total eqs independent of n (12 vs 12)
3D Dxxz (2,1) 1 successful_retcode
Dx^3(Dy(u)) band width, order 2 / 4 / 6 1 core nonempty
MMS u = sin(πx) sin(πy) 1 L∞ < 5e-2
First-order Dxy 1 unchanged
Dx(Dy(Dz(u))), should_transform=false 0 fallback, no error

Still falls back for 3+ spatial directions, mixed derivatives of boundary values, staggered grids, periodic + nonuniform, and two-domain interface BCs.

Generalize the SciML#648 tensor-product scheme from Dx(Dy(u)) to two-direction mixed derivatives of arbitrary order on both the slice and pointwise paths.
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review August 23, 2026 16:28
@ChrisRackauckas
ChrisRackauckas merged commit e2f9d51 into SciML:master Aug 23, 2026
69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants