Steady state initialization through ModelRunner - #1707
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
View / edit / reply to this conversation on ReviewNB IvarStefansson commented on 2026-07-06T08:35:38Z Some of the code is obsolete after recent PRs. I think most of the remaining code should be split between an example and applications. |
|
View / edit / reply to this conversation on ReviewNB IvarStefansson commented on 2026-07-06T08:35:40Z I don't think we need this and the next few blocks. Can't we explain the problem more precisely without illustrating, then proceed to the solution (implicit initialization)? |
|
For clarity: This PR is in hiatus, to be picked up after summer. |
Proposed changes
An extension of the
ModelRunneris suggested that enables the implicit definition of initial conditions through a steady state solution that complies with boundary conditions and governing equations. The routine requires a small set of control parameters such as convergence criteria for characterizing when to call a state a steady state, and pseudo time discretization parameters. A tutorial is added to illustrate both the functionality and the rationale behind the intialization routine.The initialization routine essentially runs a pseudo-time stepping routine. It is therefore expected that the code can actually be substantially shortened after #1682 has been finalized. A TODO note is added to
model_runner.pyto indicate the foreseen changes.API and placement of code has not been fully thought through (also in light of the changes of time loops).
NOTE: This PR will be used as basis to extend to initialization of reference states.
What types of changes does this PR introduce to PorePy?
Put an
xin the boxes that apply.Checklist
Put an
xin the boxes that apply or explain briefly why the box is not relevant.pytestwas run with the--run-skippedflag.