From 9747f8b2aab9b1d1d7ac0fa9084309881ba89c19 Mon Sep 17 00:00:00 2001 From: t Date: Wed, 4 Nov 2026 00:03:45 +0000 Subject: [PATCH] Remove stale milestone wording from docs and the supported_conditions notes SUPG, steady problems, dirichlet = :eliminate and nonlinear terms exist on master; the prose still said they land in M3 or M4. Periodic conditions and mixed cell types are rejected, not scheduled. Prose only; no behaviour or tested error string changes. Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: 43e03fde-3384-4386-bae9-03e81f19ba7c Agent-Review: unreviewed Co-authored-by: Claude Code --- docs/src/boundary_conditions.md | 24 ++++++++++++------------ docs/src/equation_classes.md | 29 ++++++++++++++--------------- docs/src/index.md | 5 ++--- src/discretization.jl | 8 ++++---- test/README.md | 3 +-- 5 files changed, 33 insertions(+), 36 deletions(-) diff --git a/docs/src/boundary_conditions.md b/docs/src/boundary_conditions.md index ec8aa0b7..d2be9af2 100644 --- a/docs/src/boundary_conditions.md +++ b/docs/src/boundary_conditions.md @@ -25,14 +25,14 @@ rendering. Restrictions of this release: - - Geometries are `Ferrite.Grid` meshes (1D, 2D and 3D cell shapes) wrapped as `MeshDomain(grid)`, with boundary pieces named by the grid's facet sets. Only 1D and 2D are evidenced; meshes with mixed cell types are rejected until M4. + - Geometries are `Ferrite.Grid` meshes (1D, 2D and 3D cell shapes) wrapped as `MeshDomain(grid)`, with boundary pieces named by the grid's facet sets. 1D, 2D and 3D meshes are tested; meshes with mixed cell types are rejected. - Coordinates are Cartesian and named by the `(x, y) ∈ Ω` pairing. Time is the first or last argument of every dependent variable, never between spatial arguments. - - Dirichlet data may depend on space, time and parameters but not on another field. Neumann and Robin conditions are written with `NormalDerivative(Γ)`, with any conormal coefficient written explicitly. Neumann and Robin data may depend on time; the Robin coefficient multiplying `u(t, Γ)` may depend only on space and parameters until M3. - - Periodic conditions `u(t, Γa) ~ u(t, Γb)` are rejected until M4. Interface conditions between regions have no syntax; every field lives on the whole mesh. + - Dirichlet data may depend on space, time and parameters but not on another field. Neumann and Robin conditions are written with `NormalDerivative(Γ)`, with any conormal coefficient written explicitly. Neumann and Robin data may depend on time; the Robin coefficient multiplying `u(t, Γ)` may depend only on space and parameters. + - Periodic conditions `u(t, Γa) ~ u(t, Γb)` are rejected. Interface conditions between regions have no syntax; every field lives on the whole mesh. - Boundary pieces must be disjoint. A piece with no condition gets the natural zero-flux condition, with a warning when the operator has a flux. - Where two Dirichlet pieces of one field meet, the condition listed last in the `PDESystem` wins. - Every field with a time derivative needs an initial condition, linear in that one field and finite at every node. - - Time-dependent mass or stiffness coefficients and `codegen = :mtk` are rejected until M3. + - Time-dependent mass or stiffness coefficients and `codegen = :mtk` are rejected. "Time-dependent" means boundary data that varies with time, for every condition kind. @@ -42,8 +42,8 @@ The spatial domain is a `MeshDomain(grid)` of a `Ferrite.Grid`, for example one with `FerriteGmsh.togrid` or made with `Ferrite.generate_grid`. Boundary pieces are the grid's facet sets: `boundarypiece(Ω, :inlet)` is the facet set `"inlet"`. Pieces must be disjoint; a facet in two pieces that both carry conditions is an error naming the first shared facet. -Line, triangle and quadrilateral meshes are tested; tetrahedral and hexahedral meshes construct -but are not evidenced (see [Supported equation classes](@ref)). Every cell of the mesh must +Line, triangle, quadrilateral, tetrahedral and hexahedral meshes are tested (3D heat +convergence in `test/Integration/three_d.jl`; see [Supported equation classes](@ref)). Every cell of the mesh must have the same shape. Coordinates are Cartesian. Their names and order come from the `(x, y) ∈ Ω` pairing (see @@ -111,7 +111,7 @@ Like a Neumann condition, it enters the weak form as a facet integral. Not supported in this release. An equation between traces on two pieces, `u(t, Γ_left) ~ u(t, Γ_right)`, is rejected with -`periodic conditions need milestone M4 (Ferrite PeriodicDirichlet)`. +`periodic boundary conditions are not supported`. ## Interface conditions @@ -128,11 +128,11 @@ is an error that names the problem; nothing falls back to `mtkcompile`. | Input | Result in this release | |:--- |:--- | -| A time-dependent coefficient in the mass or stiffness operator, such as `Dx((1 + t) * Dx(u))` | error; lands in M3 | -| A time-dependent Robin coefficient, such as `Dn(u(t, Γ)) + (1 + t) * u(t, Γ) ~ 0` | error; lands in M3 | -| `FEMDiscretization(…; codegen = :mtk)` | error; lands in M3 | -| A mesh with mixed cell types | error; lands in M4 | -| A periodic condition `u(t, Γa) ~ u(t, Γb)` | error; lands in M4 | +| A time-dependent coefficient in the mass or stiffness operator, such as `Dx((1 + t) * Dx(u))` | error | +| A time-dependent Robin coefficient, such as `Dn(u(t, Γ)) + (1 + t) * u(t, Γ) ~ 0` | error | +| `FEMDiscretization(…; codegen = :mtk)` | error | +| A mesh with mixed cell types | error | +| A periodic condition `u(t, Γa) ~ u(t, Γb)` | error | | A time argument between spatial arguments, such as `u(x, t, y)` | error | | Two Dirichlet pieces of one field sharing nodes | the condition listed last wins | | A boundary piece with no condition | natural zero-flux condition, with a warning when the equations have a flux | diff --git a/docs/src/equation_classes.md b/docs/src/equation_classes.md index ce173afb..40c280aa 100644 --- a/docs/src/equation_classes.md +++ b/docs/src/equation_classes.md @@ -12,41 +12,40 @@ systems are one random-coefficient advection family. The honest figures are 9 of 12 distinct PDE families accepted by the front end and 7 of 7 attempted systems solved end to end at nodal convergence rate about 2. The library exercises only time-dependent problems, mostly 1D, with MethodOfLines endpoint-form conditions on boxes; it has no Robin condition, no -mesh domain, no second time derivative, no integral term, nothing in 3D and nothing steady. +mesh domain, no second time derivative, no integral term, nothing in 3D and nothing steady (3D heat and steady problems are covered by the package's own tests). | Tier | Class | Evidence | Status | |---|---|---|---| | 1, supported | Second-order parabolic equations in divergence or non-divergence form, scalar or coupled multi-field | `heat_1d1`, `pdesys`, `sph` rates 1.99–2.00 (report 6); non-divergence `a(x,y)Δu` rates 1.96–2.01 and two-field reaction–diffusion to 1.9e-16 (report 5, red cell) | VERIFIED | -| 1 | Their elliptic steady counterparts | steady `a(x,y)Δu + f = 0` and steady nonlinear `k(u)` solved by assembly plus linear or Newton solve at rate 2 (red cell `test_redcell_nondiv.out`, `test_redcell_nl_nonharmonic.out`) | VERIFIED at assembly level; INFERRED through the package's `PDENoTimeSolution` path | +| 1 | Their elliptic steady counterparts | steady `a(x,y)Δu + f = 0` and steady nonlinear `k(u)` solved by assembly plus linear or Newton solve at rate 2 (red cell `test_redcell_nondiv.out`, `test_redcell_nl_nonharmonic.out`) | VERIFIED at assembly level and through the package's `PDENoTimeSolution` path (`test/Frontend`, steady tests against manufactured solutions) | | 1 | Nonlinear through state-dependent coefficients and sources: `k(u)`, `f(u)`, viscous Burgers | `k = 1+u²` rates 1.71–1.94 (report 5, red cell); `burgers_2d` two-field, rates 2.26, 2.43 (report 6) | VERIFIED | | 1 | Convection–diffusion at moderate cell Péclet number | `convdiff2` rates 2.01, 2.00 against MethodOfLines' 4.75e-2, 2.54e-2, 1.32e-2 (rate about 1) (report 6) | VERIFIED | | 1 | Curvilinear radial Laplacians through the product rule | `sph`, `4/r² ∂ᵣ(r² ∂ᵣu)`, rate 2.00 on four refinements (report 6) | VERIFIED | | 1 | Dirichlet (constant and time-dependent), Neumann, Robin | time-dependent Dirichlet in `burgers_2d` and all `funcconv`; Neumann in `pdesys`, `sph` (report 6); Robin in cases (i), (ii) and the 2D DAE prototype (reports 5, 4) | VERIFIED; Robin from reports 4–5 only | | 1 | 1D and 2D on boxes | `Line` and `Quadrilateral` grids end to end (report 6); 2D DAE with three condition kinds (report 4); two-field P1/P2 solution interface (report 7) | VERIFIED | -| 1 | Unstructured and Gmsh meshes | pieces resolved to facet sets on an L-shaped Ferrite grid and a Gmsh import probed (reports 2, 4); no solve on an unstructured mesh has been run | INFERRED; M2's API-example exit makes it VERIFIED | +| 1 | Unstructured and Gmsh meshes | pieces resolved to facet sets on an L-shaped Ferrite grid and a Gmsh import probed (reports 2, 4); the API example of [Getting started](@ref) then solves on a Gmsh L-shape | VERIFIED | | 1 | Mixed saddle-point problems with an inf-sup-stable unequal-order pair chosen by the user: Stokes and incompressible Navier–Stokes with Taylor–Hood Q2/Q1 or P2/P1 | DFG 2D-1 cylinder through the PDESystem front end (#31; test group NavierStokes, test/NavierStokes/dfg_cylinder.jl): tolerance stated before the runs = Schäfer–Turek intervals cD ∈ [5.57, 5.59], cL ∈ [0.0104, 0.0110], Δp ∈ [0.1172, 0.1176]; 16 430 unknowns give cD 5.579436, cL 0.010583, Δp 0.117584 and agree with an independent hand-written Ferrite solver on the same mesh to 1e-7; 148 986 unknowns: relative errors −4.5e-7, −5.1e-6, −5.3e-5 (benchmark (d)); Taylor–Hood Stokes rates 3 and 2 (#28) | VERIFIED for the example's formulation: continuity paired with p explicitly, pressure pinned on a boundary piece, outflow ν∂ₙu = 0, index-2 DAE started from rest; no inf-sup check is made, the user chooses a stable pair | -| 2, accepted but not reliable until SUPG (M4) | Pure advection, advection-dominated problems, inviscid hyperbolic problems | `inviscid_burgers_monotonic` exact to 1e-10 only because its solution lies in the P1 space, so it says nothing about shocks or steep fronts; `convdiff4` at cell Péclet > 1 dropped to rate 1.44 on the coarse mesh (report 6) | VERIFIED limitation | -| 3, rejected with a clean error | Periodic conditions (until M4); third- and fourth-order spatial operators (mixed pre-pass is an M4 candidate); `∂ₜ²` (write a first-order system); integral terms; state-dependent mass; non-conormal natural conditions | Appendix A messages; 16 library rejections all periodic, 7 of them also higher order (report 6) | VERIFIED | -| not evidenced | 3D; steady-only systems through the package path; discontinuous coefficients across interfaces | nothing in any corpus or prototype | neither claimed nor rejected | +| 2, accepted; unreliable with Galerkin testing, use `SUPG(τ)` | Pure advection, advection-dominated problems, inviscid hyperbolic problems | `inviscid_burgers_monotonic` exact to 1e-10 only because its solution lies in the P1 space, so it says nothing about shocks or steep fronts; `convdiff4` at cell Péclet > 1 dropped to rate 1.44 on the coarse mesh (report 6) | VERIFIED limitation | +| 3, rejected with a clean error | Periodic conditions; mixed cell types; third- and fourth-order spatial operators; `∂ₜ²` (write a first-order system); integral terms; state-dependent mass; non-conormal natural conditions | Appendix A messages; 16 library rejections all periodic, 7 of them also higher order (report 6) | VERIFIED | +| not evidenced | discontinuous coefficients across interfaces | nothing in any corpus or prototype | neither claimed nor rejected | -The "Unstructured and Gmsh meshes" row is reproduced as the specification states it. Its exit -condition, a solve on a Gmsh mesh, is the API example of [Getting started](@ref), which the -test suite runs (`test/Frontend/api_example.jl`). +The "Unstructured and Gmsh meshes" row's solve on a Gmsh mesh is the API example of +[Getting started](@ref), which the test suite runs (`test/Frontend/api_example.jl`). !!! warning "Unstabilised Galerkin is centred differencing" The Galerkin method without stabilisation behaves like a centred finite-difference scheme: it is second-order accurate and non-dissipative. For Tier 2 problems (pure advection, advection-dominated and inviscid hyperbolic problems) it therefore produces oscillations at steep fronts and loses accuracy when the cell Péclet number exceeds one. - The front end accepts these problems, but their results are not reliable until - streamline-upwind Petrov–Galerkin stabilisation (`SUPG(τ)`) ships in milestone M4. + The front end accepts these problems, but their results are not reliable with Galerkin + testing. Use streamline-upwind Petrov–Galerkin stabilisation, `test_space = SUPG(τ)` (see + [`SUPG`](@ref)). The "not evidenced" row is neither a claim nor a rejection: nothing in any test or prototype -covers 3D, steady-only systems or discontinuous coefficients across interfaces. A row moves +covers discontinuous coefficients across interfaces. A row moves only when a test covers it. Some rows are wider than this release. The table describes the design, so it lists classes -that the front end of this release still rejects with an error naming the milestone that adds -them: steady problems (M4), nonlinear coefficients such as `k(u)` and time-dependent mass or -stiffness coefficients (M3). [Boundary conditions and limitations](@ref) lists what this +that the front end of this release still rejects with an error, such as time-dependent mass or +stiffness coefficients. [Boundary conditions and limitations](@ref) lists what this release accepts. diff --git a/docs/src/index.md b/docs/src/index.md index 868c41cb..a158b637 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -6,11 +6,10 @@ on a mesh, derives the Galerkin weak form, assembles it with [Ferrite.jl](https://github.com/Ferrite-FEM/Ferrite.jl) and lowers it to a `DAEProblem`. !!! warning - This package is under construction. Problems with Galerkin testing are supported, + This package is under construction. Problems with Galerkin or SUPG testing are supported, including nonlinear terms whose state dependence is in the coefficients, sources and natural conditions (`∇·((1 + u²)∇u)`, `u ∂ₓu`, `u²`, `∂ₙu = −u⁴`); periodic - conditions, time-dependent mass or stiffness coefficients and other test spaces raise - an error. [Boundary conditions and limitations](@ref) lists every restriction. + conditions and time-dependent mass or stiffness coefficients raise an error. [Boundary conditions and limitations](@ref) lists every restriction. [Getting started](@ref) solves a heat equation on a Gmsh mesh. A MethodOfLines user should then read [Differences from MethodOfLines](@ref): coordinates are bound differently, boundary diff --git a/src/discretization.jl b/src/discretization.jl index 850d42e9..93a2da8d 100644 --- a/src/discretization.jl +++ b/src/discretization.jl @@ -184,13 +184,13 @@ PDEBase.supported_conditions(::FEMDiscretization) = PDEBase.SupportedConditions( notes = """ Restrictions of this release: - - Geometries are `Ferrite.Grid` meshes (1D, 2D and 3D cell shapes) wrapped as `MeshDomain(grid)`, with boundary pieces named by the grid's facet sets. Only 1D and 2D are evidenced; meshes with mixed cell types are rejected until M4. + - Geometries are `Ferrite.Grid` meshes (1D, 2D and 3D cell shapes) wrapped as `MeshDomain(grid)`, with boundary pieces named by the grid's facet sets. 1D, 2D and 3D meshes are tested; meshes with mixed cell types are rejected. - Coordinates are Cartesian and named by the `(x, y) ∈ Ω` pairing. Time is the first or last argument of every dependent variable, never between spatial arguments. - - Dirichlet data may depend on space, time and parameters but not on another field. Neumann and Robin conditions are written with `NormalDerivative(Γ)`, with any conormal coefficient written explicitly. Neumann and Robin data may depend on time; the Robin coefficient multiplying `u(t, Γ)` may depend only on space and parameters until M3. - - Periodic conditions `u(t, Γa) ~ u(t, Γb)` are rejected until M4. Interface conditions between regions have no syntax; every field lives on the whole mesh. + - Dirichlet data may depend on space, time and parameters but not on another field. Neumann and Robin conditions are written with `NormalDerivative(Γ)`, with any conormal coefficient written explicitly. Neumann and Robin data may depend on time; the Robin coefficient multiplying `u(t, Γ)` may depend only on space and parameters. + - Periodic conditions `u(t, Γa) ~ u(t, Γb)` are rejected. Interface conditions between regions have no syntax; every field lives on the whole mesh. - Boundary pieces must be disjoint. A piece with no condition gets the natural zero-flux condition, with a warning when the operator has a flux. - Where two Dirichlet pieces of one field meet, the condition listed last in the `PDESystem` wins. - Every field with a time derivative needs an initial condition, linear in that one field and finite at every node. - - Time-dependent mass or stiffness coefficients and `codegen = :mtk` are rejected until M3. + - Time-dependent mass or stiffness coefficients and `codegen = :mtk` are rejected. """ ) diff --git a/test/README.md b/test/README.md index 7eee9bfe..a1e86de1 100644 --- a/test/README.md +++ b/test/README.md @@ -36,8 +36,7 @@ GROUP=QA julia --project=. -e 'using Pkg; Pkg.test()' activated with the package developed into it, as `test/qa/` does. A declared group whose folder is missing or empty is an error, so only declare groups that -have tests. Planned milestone groups: `StrongForm`, `Assembly`, `Space`, `DAE`, `Solution`, -`Convergence`, `MOLComparison`, `Library`. +have tests. ## Shared helpers