Repository navigation
Short tutorials 10 to 14: Stokes, unsteady flow, linear solvers, third medium, staggered - #11
Merged
Merged
Conversation
… third-medium contact Four more short tutorials with explicit weak forms, a sketch and a result figure each, and one check: the mass balance of the Stokes flow, the drag of the benchmark at Re = 20, the iterative solution against the direct one, and the force peak of the third-medium contact of E06 on the same mesh.
Correct explanation of the P1 variant of the Stokes flow, a check of the contact peak with a margin, the start of PETSc explained, the profiles of the Stokes figure ending on the cylinder, and clearer texts.
… at one thread in CI Tutorial 14 solves the magnetic field, the beam and the vacuum of E09 in turn, with E09's model; it is longer than the others and says so. Tutorial 13 says that it is an advanced tutorial and where its options are documented. The CI job of the short tutorials runs with one thread, because PETSc with several threads crashed on Linux.
Tutorial 14 explains the sign convention of the magnetisation as E09 does, states the one-pass variant by the tip only, gives the applied field and checks the flag of solve!. A note on PETSc with threads on Linux in the README and tutorial 12. E09 drops the suggestion of a converged loop (coupling_tol with IQN-ILS or Aitken), which does not finish with its solvers.
jmartfrut
force-pushed
the
short-tutorials-4
branch
from
December 4, 2026 19:57
b253619 to
b769d48
Compare
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.
Short tutorials 10 to 14 (phase 3 of the plan), with the same rules as 1 to 9: weak forms written as integrals,
a sketch and a result figure, one final check that says what its reference is.
of the benchmark (−1.8 %, as in E11).
StaggeredModelon E09's case and model; longer than the others(182 lines), as agreed, and marked as the most advanced; the tip of E09.
Also:
the 14 short tutorials take the same time with 1 and 4 threads (about 4 min). The README and tutorial 12 say so
for Linux users.
coupling_tolwith IQN-ILS or Aitken), which doesnot finish with its solvers.
Checks:
Pkg.testof thetutorialsgroup at one thread with--depwarn=error(14 tutorials) and of E09; every"Try it yourself" variant run once; the explicit forms equal HyperFEM's helpers (12, 13) or the values of the
validation examples (10, 11, 14) to round-off, compiled without falling back to Gridap; docs build OK.
Independent review in three rounds: no errors in the physics; fixed explanations (P1 Stokes variant, sign
convention of tutorial 14), a more robust check of the contact peak and details of texts and figures.