idaholab / moose

Multiphysics Object Oriented Simulation Environment
https://www.mooseframework.org
GNU Lesser General Public License v2.1
1.6k stars 1k forks source link

Change element subdomain ID during simulation based on variable value #27486

Closed dewenyushu closed 1 week ago

dewenyushu commented 3 weeks ago

Motivation

Being able to alternate subdomain ID values according to variable values would be useful in simulating diverse physical phenomena, e.g., mechanical, thermal, chemical, etc., when phase transition happens.

Design

Create a UserObject based on the existing `ElementSubdomainModifier, which would be able to modify element subdomain IDs based on a coupled variable value.

Impact

Allow subdomains to change during simulation.