Repository navigation
Conversation
pbrubeck
force-pushed
the
pbrubeck/form-interp-tsfc
branch
10 times, most recently
from
September 10, 2026 16:38
37fe40f to
4cce203
Compare
pbrubeck
force-pushed
the
pbrubeck/plate-bending-demo
branch
from
September 10, 2026 23:15
4cd06f0 to
1a5c69e
Compare
pbrubeck
force-pushed
the
pbrubeck/form-interp-tsfc
branch
7 times, most recently
from
September 17, 2026 20:44
49f2247 to
243649b
Compare
pbrubeck
force-pushed
the
pbrubeck/plate-bending-demo
branch
from
September 17, 2026 20:44
aac3f9a to
d86c8c5
Compare
pbrubeck
force-pushed
the
pbrubeck/form-interp-tsfc
branch
from
October 29, 2026 17:23
c407caf to
0e10a44
Compare
The commuting property of the scalar and Nédélec interpolants is only used to justify the MITC reduced constraint, so state it there. The list of methods now follows the sentence that introduces it, the discrete Kirchhoff method is described as a plate under in-plane tension, and the Reissner-Mindlin energy ends with a comma before its "where" clause. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E4waqaawTixm9QfuVW76Hg
Compare the Morley and modified Morley methods at epsilon = 1e-4. The Morley error does not decrease under refinement, while the modified Morley method converges. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pbrubeck
force-pushed
the
pbrubeck/plate-bending-demo
branch
from
November 19, 2026 19:58
0b74432 to
d24996c
Compare
Introduce the test rotation of the bending form, explain the t^{-2}
scaling of the shear term, write delta for the perturbation parameter
so it does not clash with the strain, define V_h and W_h before they are
used, and call grad(beta) the rotation gradient rather than the
curvature. Correct the claim about the Morley form at D = 0 and the
reason for weak boundary conditions. Accent Nédélec in the diagram and
update the discrete Kirchhoff errors to what the demo prints.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiE9EbBapfyhts8ndUSq73
pdf2svg is not installed on the docs CI runner; pdftocairo ships with poppler-utils, which texlive-full already pulls in. Stop tracking the generated SVGs, since CI rebuilds them and differing copies would dirty the tree. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BiE9EbBapfyhts8ndUSq73
The Morley degrees of freedom on the boundary are the vertex values and the mean normal derivatives on the edges, which the clamped data determines. Drop Morley from the strong BC guard and replace the Nitsche terms in the plate bending demo with a DirichletBC. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BiE9EbBapfyhts8ndUSq73
Reuse the Morley solver in the membrane limit and refresh the tutorial figure. Conjugate the Kirchhoff test function and evaluate scalar Dirichlet data against the dual basis when required. Check the linear Morley trace and normal derivative moments in the boundary regression. Honor UFL pullback overrides when plotting and stop diagram conversion when LaTeX fails. Assisted-by: OpenAI Codex
Keep the plate-bending tutorial, its figures, and its registration in the demo tests. Use a restricted Morley space for the clamped boundary and interpolate the Kirchhoff solution to cubic Lagrange for plotting.
Define the applied tension and scaled deflection, introduce the test rotation and clamped Morley space, and vary the thickness in the membrane-limit study. Assisted-by: OpenAI Codex
Introduce the three reduction operators up front, describe every element space by its role and degrees of freedom, and explain why each reduction is needed. The code is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Build the SVG diagrams of the demos in make copy_demos with pdflatex and pdftocairo, instead of committing the generated files. Install poppler-utils in the docs job for pdftocairo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drop Morley from the strong BC guard again and replace the restricted Morley space in the plate bending demo with a DirichletBC. The merge fb56d42 reverted these branch changes, which this commit restores from a clean merge of the same parents: - the evaluation of scalar Dirichlet data against the dual basis in DirichletBC, and test_morley_constant_bc; - the docs/Makefile rule that compiles the TikZ diagrams, and the .gitignore entry for the generated SVGs. This replaces the loop that 178d18f added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Compile the TikZ diagrams in copy_demos into build/diagrams and write the SVGs straight to source/demos, so that no generated file lands in demos/ and no .gitignore entry is needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The merge fb56d42 reverted these branch changes, which this commit restores from a clean merge of the same parents: - FunctionPlotter interpolates functions in mapped elements into broken Lagrange before it samples them, with its two tests; - test_discrete_kirchhoff.py; - the column-pairs table style. With the plotting fix, the demo plots the reduced Hermite solution directly, without the interpolation into DG3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test_helmholtz_zany.py is where solve() with zany elements is tested. Give the module a general docstring and move the description of the Helmholtz problem to helmholtz(), with the solution that the code uses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In test_morley_constant_bc, assign the boundary condition and the test function separately, explain each check, and check the rank-local normal derivative moments with parallel_assert. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The file now tests the convergence of the discrete Kirchhoff triangle as well as of the Helmholtz problem. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Call each operator the canonical interpolant into its space, defined by its degrees of freedom. Keep "reduction operator" only for the MITC shear interpolant, as in Brezzi, Bathe and Fortin. Measure the rotation error in the broken H1 seminorm, and expand MITC at its first use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pefarrell
previously approved these changes
Dec 3, 2026
Put the summary of the demo and its author in an emphasis block, and link the Argyris element. Define each canonical interpolant by the equations that match its degrees of freedom, cross-reference interpolate and Constant, and set the defined terms deflection and rotation in bold. Explain that the limiting Morley matrix is singular because the linear Lagrange interpolant has a nontrivial nullspace. Cite the paper of each method in the list of the three methods. Call the cellwise gradient the broken gradient, and measure the deflection error of the membrane study in the broken H1 seminorm. Remove repeated statements of the clamped boundary conditions, of the vertex values that the linear Lagrange interpolant keeps, and of the membrane limit of the Morley method. Say how the reduced Hermite element sets the value at the barycentre. Label the arrows in the element diagrams as interpolation operators, and rewrap the prose at 80 columns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pbrubeck
force-pushed
the
pbrubeck/plate-bending-demo
branch
from
December 3, 2026 15:13
4858b59 to
cd6a944
Compare
This branch has not been deployed
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.
Assisted by OpenAI Codex and Claude Code.
Summary
Add a plate bending demo. Each of its three nonconforming methods replaces a function in one term of the variational form by its canonical interpolant into a second space. The demo writes this interpolant with a symbolic
interpolateinside the form. Both spaces are on the same mesh, so the form compiler applies the interpolation inside each element kernel (same-mesh support from #5258).The demo shows that the Morley method does not converge in the membrane limit of a plate under tension, and that the modified Morley method does. It then compares the rotation errors of the three methods in the broken H¹ seminorm.
Changes for users:
DirichletBCnow accepts Morley spaces. A constant boundary value goes directly to elements that have point evaluation degrees of freedom; any other value is interpolated or projected as before.firedrake.pyplotplots functions in spaces whose basis is not the pullback of the reference basis (Morley, Hermite, reduced Hermite, Raviart–Thomas, Bernardi–Raugel, rotated Bernardi–Raugel). Before it samples them, it interpolates them into a broken Lagrange space.Evidence
Before: no demo;
DirichletBC(FunctionSpace(mesh, "Morley", 2), 0, "on_boundary")raisesNotImplementedError; plots of mapped elements sample the reference basis.After: the demo runs and prints the values in its tables:
At t = 10⁻⁴, the Morley error stays at 8.0e-03 while the modified Morley error decreases at rate 1.89.
Tests that pass:
test_demos_run.py -k "plate_bending or no_missing": 2 passed, 0 skipped.test_plotting.py -k "mapped or pullback": 7 passed.test_zany_convergence.py -k kirchhoff: 1 passed.test_bcs.py -k morley: passed on 1 and 2 processes.make srclintis clean. The Sphinx HTML build succeeds, and the page shows the three element diagrams and the surface plot.Implementation details
docs/Makefilecompiles the TikZ diagrams indemos/*/*.texwithpdflatexand converts them to SVG withpdftocairo. The docs CI job installspoppler-utilsforpdftocairo.column-pairstable class in the docs theme separates the error and rate columns of each method.test_helmholtz_zany.pyis renamed totest_zany_convergence.py, and it now also tests the convergence of the discrete Kirchhoff triangle.Merge Danger
Door: two-way
Blast Radius: demos, plotting,
DirichletBCThe
DirichletBCchange affects every boundary condition: a numeric value is now converted to UFL before it is applied. The docs build now needspdflatexandpdftocairofor every demo diagram.🤖 Generated with Claude Code