Skip to content

Docs/npillardou/thermo poromechanics tutorial - #4110

Open
npillardou wants to merge 9 commits into
fix/frankfei/thermoPorousSolidTotalStressfrom
docs/npillardou/ThermoPoromechanics-tutorial
Open

Docs/npillardou/thermo poromechanics tutorial#4110
npillardou wants to merge 9 commits into
fix/frankfei/thermoPorousSolidTotalStressfrom
docs/npillardou/ThermoPoromechanics-tutorial

Conversation

@npillardou

Copy link
Copy Markdown
Contributor

This PR updates the script to generate documentation figures by computing directly the analytical solutions without need of csv files.

This branch is based on Frank Feifan's branch which includes the thermal stress contribution directly in the total stress calculation.

A stress figure has been added to see the difference between Frank Feifan's branch and develop :

  • develop ( without adding the thermal stress in post-processing script)
Verification_tutorial_with_develop_branch
  • current
Verification_tutorial

MelReyCG and others added 9 commits July 7, 2026 14:46
Allow to query statistics computation for solver (for reservoir reference pressure for wells), without needing an output statistics component. Statistics are no longer recomputed for each convergence step but only at iteration start.
- `RegionStatistics` classes for resulting data storages at different levels:
    - sub-regions mpi-local kernel compute read-backs,
    - (cell element) regions,
    - solver discretisation `MeshLevel`,
- `StatsAggregator` classes to compute & reduce the statistics to rank 0,
- `StatsTask` `Group`, the user component to schedule flow statistics computation & output to log & CSV.
)

* update publications

* fix error for doc build

* fix the failure for the button-ref directive

* switch to button-link

* add path

* fix links for reference

* Fixed hyperlinks

* address review comment

---------

Co-authored-by: DENEL Bertrand <bertrand.denel@total.com>
This wommit introduces:

- An improved well schema layout and code refactor better suited for well modeling. The previous implementation primarily targeted Jacobian generation requirements for the coupled reservoir and well system.

- The well estimator is used to select the active well constraint by solving the well system assuming fixed reservoir conditions and selecting the constraint with the highest or lowest well flowing pressure.

the estimator is applied at beginning of Jacobian assembly of the coupled system frequency determined via input setting estimator is a data member of WellControl and a tailed version of PhysicsSolver for wells logic underpins future capability to replace the segmented well model with other formulations.
This is a breaking change, detailed migration instructions and migration script are posted at #4081
some changes that were needed to succesfully compile and pass unit tests in our environment (AOCC Compiler, AOCL).
1. Variable shadowing solved,
2. testSinglePhaseMFDPolyhedral failed intermittently during mesh initialization, crash solved by disabled FPE trapping.
Solved a bug where a shut well following a non-converged open well reset the max well residual to zero, letting the simulation falsely converge. Affected compositional models only (well segment flow residuals).
Fix a bug breaking determinism in numerical Jacobian tests, where iterate-dependent constitutive state persisted across Newton attempts.
Update CompositionalMultiphaseBase::resetStateToBeginningOfStep to explicitly discard warm-started state held by the fluid model by calling fluid.initializeState(). This guarantees that rolled-back steps start clean and do not inherit iterate-dependent state from failed Newton attempts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants