Repository navigation
Short tutorials for learning HyperFEM: structure and the hyperelastic bar - #8
Merged
Merged
Conversation
… bar The new folder tutorials/ holds short scripts to learn HyperFEM, listed in SHORT_TUTORIALS: the problem, the theory it needs and a simple implementation, with a sketch and a result figure. The first one stretches a hyperelastic bar (from E02). The scripts in src/ stay where they are and are presented as validation examples. The documentation and the README show the tutorials first; the test suite runs them as published (group "tutorials", also in CI) and checks that each is listed and links to its example.
Images and the link to E02 also work in the notebooks (absolute addresses there); the variants of "Try it yourself" say to remove the check; the compiled backend, the parameters and two idioms explained; the README describes the new test group and notebook names; a clear error for an unknown script name; no metadata in the figures.
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.
First step of the short tutorials for learning HyperFEM (plan agreed with @jmartfrut).
tutorials/with short scripts, listed in order inSHORT_TUTORIALS: the problem, the theory it needs,a simple implementation in five blocks, a sketch and a result figure, and a link to the validation example that
solves the same problem in full. The first one: Stretching a hyperelastic bar (from E02; 128 lines, of which
about 50 are code).
src/stay where they are and are presented as validation examples. They will move tovalidation/once all the short tutorials exist, together with the links from HyperFEM's documentation.run_tutorial("hyperelastic_stretch")runs a short tutorial.
tutorials(also in CI) runs each short tutorial as published, in a temporary folder; the list testchecks that each short tutorial is in the README and the docs index and that its validation example exists.
Checks: the tutorial runs in 10 increments and its force equals the exact one (largest relative difference 2.4e-9);
Pkg.testof thetutorialsgroup and of E02/E19 with--depwarn=errorpass; docs build OK, with the figures and thelink to E02 working in the page and in the notebook. Light review: fixed the notebook links, the "Try it yourself"
variants (they must drop the final check) and a few explanations.