Skip to content

Extracting surface meshes - coordinate mismatch #2873

Discussion options

You must be logged in to vote

I think this is because on the interval mesh of the boundary the 1D lagrange elements by default use spectral nodes. Whereas on the triangle the degree three elements use equispaced nodes. So it is not true that the nodes match up the way you construct your boundary mesh. For degree 1 and 2 they do because for degree 1 there are only vertex nodes, and for degree 2 the extra node is at the midpoint.

If you construct your coordinate space on the surface mesh with FunctionSpace(surfacemesh, VectorElement("P", interval, 3, variant="equispaced")) I think you will find things match.

Edit: fixed the functionspace setup.

Replies: 1 comment 2 replies

Comment options

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

@wence-
Comment options

Answer selected by tranner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants