Skip to content

How do I extract coordinates of DOF points in high-order FE Space? #4890

Answered by j-signorelli
anmelander asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

This is explained in #63, but it can be a bit confusing because by default Mesh::GetNodes() (for low-order straight-edged meshes) just returns the vertices. For higher-order FE spaces, you can use Mesh::GetNodes(GridFunction &gf), where the grid function is defined on the FE space of higher-order.

Alternatively you can set the FiniteElementSpace of the nodes internal to Mesh using Mesh::SetNodalFESpace to one of higher-order and then call Mesh::GetNodes().

Replies: 2 comments 3 replies

Comment options

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

@j-signorelli
Comment options

@anmelander
Comment options

Answer selected by anmelander
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants