moose
moose copied to clipboard
Make ExplicitDynamicsContact Action block restrictable
Motivation
For two reasons:
- 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.
- 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
Are you taking care of this @WilkAndy ?
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
Closed by above #32094