Repository navigation
Add PDEBase.StrongForm: operator whitelist and split_time - #146
Merged
Merged
Conversation
First stages of the strong-form analysis a finite-element discretizer needs: StrongForm types and state slots, stage 0 (reject operators the analysis cannot represent, e.g. Integral) and stage a (split each residual into per-field mass coefficients and spatial terms, rejecting forms that need a residual-form DAE). Nothing is exported from PDEBase. Agent-Harness: Claude Code 2.1.310 Agent-Model: claude-opus-5-5 Agent-Session: 70c8f395-69e3-4537-a58e-403f04ff7912 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
…nts in split_time Review findings: replacing every argument with a fresh scalar broke indexed parameter arrays (getindex(::Num, ::Num) on a[1]*u), so only state-carrying arguments are probed, each checked for a Differential in its own symbol, and getindex is whitelisted. Symbolics.expand leaves (a + b)/d whole, so (Dt(u) + u)/x was rejected; addterms now splits quotients with additive numerators. Agent-Harness: Claude Code 2.1.310 Agent-Model: unknown Agent-Session: 70c8f395-69e3-4537-a58e-403f04ff7912 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
Review finding: a symbolic function such as k(..) that is not a dependent variable has no derivative rule, but its call skipped validation, so an opaque state-dependent law k(u) passed stage 0. It is now rejected when the state reaches it; coefficients of the coordinates such as k(x) stay accepted. Agent-Harness: Claude Code 2.1.310 Agent-Model: claude-opus-5-5 Agent-Session: 70c8f395-69e3-4537-a58e-403f04ff7912 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
This was referenced Oct 26, 2026
Older IntervalSets prints the interval as 0..1 rather than 0 .. 1, so the pinned message differed and the Downgrade job failed. Match the spacing with a regex and keep the rest of the message pinned. Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
The Documentation CI job failed with 1 docstring not included in the manual: PDEBase.StrongForm. Add a Strong-Form Analysis page listing the module and the names this branch provides, matching the page that the divergence PR extends. Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
Integration only: resolved src/PDEBase.jl by taking the union of the @public/include/export additions of both sides. Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
Integration only: no conflicts; carries the resolved SciML#146/SciML#148/SciML#149 tips and upstream/master. Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
Integration only: no conflicts; carries the resolved SciML#146/SciML#148/SciML#149/SciML#150 tips and upstream/master. Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the first PR of a stacked series that adds
PDEBase.StrongForm, a Symbolics-only analysis of a PDE system's strong form,e = m⋅u̇ + Σᵢ ∂ᵢGᵢ + R. A finite-element discretizer (and later collocation or DG) builds its weak form from this data. This PR adds the module skeleton and the first two stages of the analysis: stage 0, the operator whitelist, and stage a, the time split.What this adds
src/StrongForm/is included fromsrc/PDEBase.jl. Nothing is exported from PDEBase, andStrongFormexports nothing yet. Developer names are markedpublicwith SciMLPublic.Data types:
StateSlots(nfields, dim, nparams): symbolic quadrature-point slotsU, G, Ud, H, X, T, N, P, withGfield-major.IBPPolicy,ProductRule,Weighted{W}andReject, which the next PR uses.EssentialBC{K},NaturalBC{K}andPeriodicBC{K,S}, parametric in the boundary key (a box face or a mesh boundary piece).StrongFormAnalysis{K}.check_whitelist(ex, ivs, depvars)(stage 0) errors with "operator X is not supported by the strong-form analysis" on:Integral, unknown operators, and aDifferentialin a variable that is not an independent variable;k(u).It accepts derivatives, dependent-variable calls, arithmetic, comparisons, logical operators,
ifelse,abs/maxand the like, indexed parameters, and state-free coefficients such ask(x, y).split_time(eq, depvars, t)(stage a) splits the expanded residual into a mass coefficient per field and the spatial terms, distributing quotients over sums first. It rejects ∂ₜ², terms not of the form coefficient × ∂ₜu, and state-dependent mass. Steady problems work witht = nothing.Tests (
test/strongform.jl, Core group)ifelse/abscoefficients, mixed partials, multi-field, indexed parameters) and the rejections, includingIntegral(x in 0..1)(u)andk(u).split_timecases: heat, two-field with coefficients, wave written as a first-order system, an algebraic row, a steady equation, quotients such as(Dt(u) + u)/x, and flattened array variables. Rejections are checked forDt(Dt(u)),Dt(u)^2,Dx(Dt(u)),Dt(u)*Dt(w)and(1+u^2)*Dt(u).Local results: Core 12 files pass (
strongform.jl74/74); QA 20/20; Runic clean.Stacked series: stage b (divergence split, integration-by-parts policies, conormal) and
analysefollow in the next PR, then boundary-condition matching, then a golden-outcome test over PDESystemLibrary.🤖 Posted by an AI agent · harness: Claude Code 2.1.310 · model: claude-opus-5-5
Review: unreviewed
Session: 70c8f395-69e3-4537-a58e-403f04ff7912