Add 1D cooling Thermo-Mechanical tutorial to documentation - #4123
Open
npillardou wants to merge 1 commit into
Open
Add 1D cooling Thermo-Mechanical tutorial to documentation#4123npillardou wants to merge 1 commit into
npillardou wants to merge 1 commit into
Conversation
npillardou
requested review from
OmarDuran,
bd713,
dkachuma,
frankfeifan,
herve-gross,
jhuang2601 and
rrsettgast
as code owners
August 17, 2026 09:46
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.
This PR adds a new validation example under
advancedExamples/validationStudies/thermoPoromechanics/that isolates a single mechanism: cooling a rock that is not free to contract generates
tensile stress, and the constitutive model decides whether that stress leads to failure.
The example reuses the
1DCoolinginput files already indevelopand contrasts two runsthat differ only by the solid model:
ThermoElastic_1DCooling_fim_smoke.xml—ElasticIsotropic: the induced stress growslinearly with cooling, without bound.
ThermoDruckerPrager_1DCooling_fim_smoke.xml—DruckerPrager: the stress saturates onthe yield surface and the rock deforms plastically.
Documentation infrastructure
Follows the convention introduced in #3884: the
.hdf5outputs are not versioned.postprocess1DCooling.py— run locally, reads the TimeHistory outputs and writes a single20 kB CSV.
plot1DCooling.py— run by Sphinx at build time, reads that CSV only. Depends onnumpyand
matplotlibalone, noh5pyand nompmath.Files
1DCooling/Example.rst1DCooling/AnalyticalSol.py1DCooling/postprocess1DCooling.py1DCooling/plot1DCooling.py1DCooling/cooling1D.csvthermoPoromechanics/Index.rstinputFiles/thermoPoromechanics/*1DCooling*.xmlNotes for reviewers
<!-- SPHINX_... -->comment markers, sothe tutorial can
literalincludethe constitutive and boundary-condition blocks directlyfrom the XML rather than duplicating them. No physics, mesh, solver or event is changed.
1DCoolingdecks are already declared inthermoPoromechanics.atsondevelop.and call
postprocess1DCooling.py -e <elastic_dir> -d <druckerPrager_dir>.