Repository navigation
Short tutorials: Poisson, dielectric plate and cantilever vibration - #9
Merged
Merged
Conversation
Three more short tutorials, in learning order around the hyperelastic bar: the Poisson equation (first), a dielectric plate bent by a voltage and the free vibration of a cantilever, each with a sketch and a result figure (SVG) and one check. The tables of the README and the docs list the four in order.
White background in the figures (readable on the dark theme); Poisson solves with the factorisation of the model (Assembly=false); consistent names for the voltage and the initial velocity; clearer figure of the cantilever and wording of the plate curve.
The bar, the plate and the cantilever write their residual and tangent as integrals of the derivatives of the energy, each integral matching a formula of "The problem", instead of the residual and jacobian helpers of HyperFEM. The results are the same to the last bit, and the compiled backend compiles the same kernels.
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.
Three more short tutorials, in learning order around the hyperelastic bar of #8:
StaticLinearModel, VTK output;checked against the exact solution (relative L2 error 3e-3).
the load; the deflection follows the V² law at small voltages (ratio 4.01 when the voltage doubles). Cartesian
mesh instead of the Gmsh one (same final deflection as E04 to 5 digits).
TransientModel, Newmark,TimeStepping; the period is within0.4 % of beam theory.
All four write their weak forms as integrals in the code, each matching a formula of the text (the bar
tutorial is changed to do so too): the energy model only gives Ψ and its derivatives. The results are identical
to those with HyperFEM's
residual/jacobian, and the compiled backend compiles the same kernels.Each has a sketch and a result figure (SVG, white background) and one final check; 100–129 lines, 30–49 of code,
17–40 s each including compilation. The figures, the README and the docs list the four in order.
Checks:
Pkg.testof thetutorialsgroup with--depwarn=error; each tutorial and each "Try it yourself"variant run once; docs build OK. Light review: fixed the figures on the dark theme, a double assembly in Poisson
(
Assembly=false, as in E01), names of the voltage and of the initial velocity, and wording.