docs(examples): add elastic footing geomechanics example#10
Merged
Shizheng-Wen merged 1 commit intoJun 9, 2026
Merged
Conversation
Signed-off-by: Kursat Kilic <kilic_kursat@hotmail.com>
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.
Summary
This PR adds a small elastic strip-footing geomechanics boundary-value example
under
examples/solid/geomechanics/.Unlike the existing Drucker-Prager triaxial example, which is a constitutive
driver, this example solves a real linear-elastic boundary-value problem:
a soil block with roller-style supports is loaded by a centered footing patch,
then solved with TensorMesh's existing direct linear-elasticity workflow.
Scope
examples/solid/geomechanics/elastic_footing/LinearElasticityElementAssemblerCondenserfor vector-valued displacement boundary conditionsValidation
Ran locally:
python examples/solid/geomechanics/elastic_footing/elastic_footing.py --no-plot --chara-length 0.55pytest tests/assemble/test_elastic_footing_example.py -vpytest tests/assemble/test_drucker_prager_triaxial_example.py -vcd docs && make htmlcd docs && make zhChecked that the generated docs page renders the new figure and that the Solid
Mechanics gallery card has a thumbnail.
Notes
The footing pressure is lumped over top-surface nodes for a compact educational
example, following the style of the existing direct linear-elastic solid examples.
The reaction/load-balance test verifies that the total applied load is recovered
by the constrained vertical DOFs.
This PR intentionally does not add
tensormesh/assemble/geomechanics.pyor apublic material API. It is a small example-only step toward a geomechanics
boundary-value example family.