Skip to content

docs(examples): show Drucker-Prager triaxial response#9

Merged
Shizheng-Wen merged 1 commit into
camlab-ethz:mainfrom
kilickursat:docs/show-drucker-prager-triaxial-figure
Jun 8, 2026
Merged

docs(examples): show Drucker-Prager triaxial response#9
Shizheng-Wen merged 1 commit into
camlab-ethz:mainfrom
kilickursat:docs/show-drucker-prager-triaxial-figure

Conversation

@kilickursat

Copy link
Copy Markdown
Contributor

Summary

This PR adds the generated Drucker-Prager triaxial compression response figure to the already-merged geomechanics example page and uses the same image as the Solid Mechanics gallery card thumbnail.

The example already writes drucker_prager_triaxial.png during a normal run. This PR follows the existing solid-mechanics docs pattern by copying that output into docs/source/_static/solid_mechanics/ and embedding it with a .. figure:: directive.

Scope

  • Adds docs/source/_static/solid_mechanics/drucker_prager_triaxial.png
  • Embeds the figure in docs/source/example_gallery/solid/drucker_prager_triaxial.rst
  • Adds the image as the gallery card thumbnail in docs/source/example_gallery/solid/index.rst
  • No public API changes
  • No core code changes

Validation

Ran locally:

  • python examples/solid/geomechanics/drucker_prager_triaxial/drucker_prager_triaxial.py --no-plot --steps 16
  • pytest tests/assemble/test_drucker_prager_triaxial_example.py -v
  • cd docs && make html

Checked that the generated docs page renders the new figure and that the Solid Mechanics gallery card has a thumbnail.

Signed-off-by: Kursat Kilic <kilic_kursat@hotmail.com>
@Shizheng-Wen Shizheng-Wen merged commit ee18e23 into camlab-ethz:main Jun 8, 2026
4 checks passed
@kilickursat kilickursat deleted the docs/show-drucker-prager-triaxial-figure branch June 9, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants