Skip to content

Let users specify which blocks to keep in BlockDeletionGenerator #32220

@travismui

Description

@travismui

Motivation

Sometimes you might only know which blocks you want to keep, or that list might be shorter than the blocks you need to remove from a given mesh. This can be done by a combination with ParsedSubdomainMeshGenerator, but the process could be simplified entirely within BlockDeletionGenerator.

Design

As suggested by @YaqiWang, follow the example in BoundaryDeletionGenerator for consistency:

  MooseEnum opt("keep remove", "remove");
  params.addParam<MooseEnum>("operation", opt, "Whether to remove or keep the listed boundaries");

Add a keep_blocks = true flag to BlockDeletionGenerator so that the user-defined blocks parameter can specify the blocks you want to keep and delete everything else from input.

Impact

New feature, added convenience.

Metadata

Metadata

Assignees

Labels

C: MeshingMeshGenerator system, mesh loadingT: taskAn enhancement to the software.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions