Skip to content

Question about outputting elem information? #3183

Answered by roystgnr
PengWei97 asked this question in Q&A
Discussion options

You must be logged in to vote

Each DofObject (node or elem) in a mesh has an id(), which is the fastest way to look it up and which libMesh uses to identify it internally. The set of ids in a mesh is typically very dense, and is often (except when objects have been deleted and not replaced or renumbered afterward) contiguous. This id may be changed mid-simulation if the mesh is changed in such a way to trigger renumbering, unless renumbering is disabled first.

If libMesh is configured with --enable-unique-id (as MOOSE does), each object also has a unique_id(). libMesh provides this but doesn't use it internally. An object's unique_id will never change, unless the object is deleted entirely and a new one created in its…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@PengWei97
Comment options

@roystgnr
Comment options

@PengWei97
Comment options

Answer selected by PengWei97
Comment options

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

@roystgnr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants