Skip to content

Supplying element-neighbor pairs for (periodic) interface calculations #22948

Answered by ttruster
ttruster asked this question in Q&A Meshing
Discussion options

You must be logged in to vote

Question at the bottom about inverse_map.

So I was able to verify that reassigning the element-neighbor pair through a Mesh-Generator class was able to restore the connection needed for the cohesive simulation.
Elem * current_elem = mesh->elem_ptr(elem_id);
Elem * neighbor_elem = mesh->elem_ptr(neighbor_id);
current_elem->set_neighbor(elem_side, neighbor_elem);
neighbor_elem->set_neighbor(neighbor_side, current_elem);
Thus, maybe on day in the future, we could add a feature to BreakMeshByBlockGenerator to export a CSV list of this data while running, and having another mesh class that reads it back in.

On the second topic for periodic BC, I spent an hour looking through the code for how n…

Replies: 4 comments 32 replies

Comment options

You must be logged in to vote
26 replies
@ttruster
Comment options

@lindsayad
Comment options

@lindsayad
Comment options

@ttruster
Comment options

@lindsayad
Comment options

Answer selected by ttruster
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@hugary1995
Comment options

@lindsayad
Comment options

@lindsayad
Comment options

@ttruster
Comment options

Comment options

You must be logged in to vote
2 replies
@hugary1995
Comment options

@ttruster
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants