Skip to content

Keep the zero-trans overlap and the deck in mechanical runs - #7329

Open
hnil wants to merge 2 commits into
OPM:masterfrom
hnil:pr/mech-keep-grid-and-deck
Open

Keep the zero-trans overlap and the deck in mechanical runs#7329
hnil wants to merge 2 commits into
OPM:masterfrom
hnil:pr/mech-keep-grid-and-deck

Conversation

@hnil

@hnil hnil commented Aug 17, 2026

Copy link
Copy Markdown
Member

Two one-line conditions, both gated on runspec.mech():

  • GenericCpGridVanguard stops pruning the overlap layer by transmissibility in mechanical runs. Mechanics couples cells across zero-transmissibility faces, so pruning by transmissibility drops cells the mechanical stencil needs. This is the same reasoning upstream already applies to thermal and temperature runs, added to the same condition.
  • Main retains the deck when mechanics is enabled, because fracture seeds and mechanics keywords are read during the run rather than only at setup.

No effect on a run without MECH. 8 lines total.

@hnil hnil added the manual:enhancement This is an enhancement/improvent that needs to be documented in the manual label Aug 17, 2026
@hnil
hnil marked this pull request as ready for review August 19, 2026 08:23
hnil and others added 2 commits August 19, 2026 10:23
Mechanics couples cells across zero-transmissibility faces, so the
overlap layer must not be pruned by transmissibility when MECH is
active -- the same reasoning upstream already applies to thermal runs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Geomechanical runs read fracture seeds and mechanics keywords during the
simulation, so the deck must be retained regardless of the general
keepKeywords setting.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@hnil
hnil force-pushed the pr/mech-keep-grid-and-deck branch from 58d0373 to a406c8f Compare August 19, 2026 08:24
@hnil
hnil requested review from svenn-t and totto82 August 20, 2026 09:51

@svenn-t svenn-t left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing overlap cells in geomechanics simulations; it's needed in TPSA as well! Just one question, otherwise it looks good to me.

keepKeywords,
// Geomechanics needs the full deck retained (fracture
// seeds and mech keywords are read during the run).
keepKeywords || getPropValue<PreTypeTag, Properties::EnableMech>(),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you only need this for fracture simulations or also for other geomechanics purpose? I have not seen the use for this for TPSA yet, so I was wondering if it's necessary to enable for all geomechanics simulators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual:enhancement This is an enhancement/improvent that needs to be documented in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants