moose icon indicating copy to clipboard operation
moose copied to clipboard

Make ExplicitDynamicsContact Action block restrictable

Open WilkAndy opened this issue 2 months ago • 2 comments

Motivation

For two reasons:

  1. I've found that calculating AuxKernels takes a significant amount of walltime in explicit simulations. If we can block-restrict the AuxVariables that ExplicitDynamicsContact creates, that walltime will reduce.
  2. It may be that we don't want AuxVariables defined on a particular block. Eg, that block corresponds to "removed" material, and it makes no sense to calculate AuxKernels on it.

Design

Probably just add something like

  params.addParam<std::vector<SubdomainName>>(
      "block",
      {},
      "Optional list of subdomain names on which to create the contact MooseObjects.  If omitt\
ed, MooseObjects will be created on all subdomains");
    _blocks(getParam<std::vector<SubdomainName>>("block"))
      if (!_blocks.empty())
        var_params.set<std::vector<SubdomainName>>("block") = _blocks;

Impact

Enhance the ExplicitDynamicsContactAction

WilkAndy avatar Dec 06 '25 19:12 WilkAndy

Are you taking care of this @WilkAndy ?

GiudGiud avatar Dec 08 '25 20:12 GiudGiud

Are you taking care of this @WilkAndy ?

Yep, @GiudGiud , i've got a PR ready to go, but would prefer that #30853 were merged first

WilkAndy avatar Dec 09 '25 19:12 WilkAndy

Closed by above #32094

WilkAndy avatar Dec 18 '25 05:12 WilkAndy