Skip to content

Removing Boundary Conditions from specific elements #16390

Discussion options

You must be logged in to vote

I'm not sure that MOOSE will support dynamically changing the boundary definition on-the-fly very well. However, there are a few workarounds to your issue:

  1. Going back to your original issue, you could simply turn off the renumbering of elements. We do that to keep data structures contiguous, but this is not a requirement. There is an option in the [Mesh] block that will allow you to do this.
  2. There is a method in the BoundaryCondition class that lets you programmatically define when a boundary condition should be applied. You could extend the boundary condition you are using and define that method (shouldApply) to take into account your zero density property.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by GiudGiud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants