Skip to content

Support boundary values on edge-aligned grids in ArrayDiscretization - #666

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
utkuyilmaz1903:feature/array-edge-aligned-boundary-values
Aug 30, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
utkuyilmaz1903:feature/array-edge-aligned-boundary-values

Conversation

@utkuyilmaz1903

Copy link
Copy Markdown
Member

Part of #623. Continues #626: u(t, 1) / u(t, 0, y) on edge_align still fell back to pointwise equations.

On an edge-aligned grid those references are not array elements. Same interpolant boundary_value_maps already builds (interpmap, shift = true, bs = []): a scalar or a face slice, broadcast onto the core. Corners are the tensor product of the 1D interpolators. array_bands unchanged.

Case Interior array eqs Check
1D u(t,0) - u(t,1) 1 treesize fixed (n=10 vs 40); leftover-free; interpolant isequal half_offset_centered_difference; successful_retcode
Nonzero Dirichlet + u(t,1) 1 f(u0) drives; successful_retcode
approx_order 2 / 4 / 6 1 leftover-free
Coupled + v(t,1) 2 leftover-free; successful_retcode
Nonuniform + u(t,1) 1 successful_retcode
u(t,1)*Dx(u) winding coef 1 leftover-free; successful_retcode
Periodic + u(t,0) 1 leftover-free; successful_retcode
2D face + u(t,0,y) 1 leftover-free; treesize fixed
2D corner + u(t,0,0) 1 leftover-free; f(u0) drives; successful_retcode

Falls back: Dx(u(t, 1)), u(0, x), u(t, 0.5), staggered interior boundary values.

@utkuyilmaz1903
utkuyilmaz1903 force-pushed the feature/array-edge-aligned-boundary-values branch from c5e007f to 2b4ca94 Compare August 28, 2026 10:14
@utkuyilmaz1903
utkuyilmaz1903 marked this pull request as ready for review August 29, 2026 06:27
Interpolate u(t, 1) / u(t, 0, y) with the existing interpmap so edge-aligned interiors stay in array form.
@utkuyilmaz1903
utkuyilmaz1903 force-pushed the feature/array-edge-aligned-boundary-values branch from 4eb7100 to 3abd877 Compare August 30, 2026 06:16
@ChrisRackauckas
ChrisRackauckas merged commit 8b449dc into SciML:master Aug 30, 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