Skip to content

Relabelling facets of a hexahedral mesh #3048

Discussion options

You must be logged in to vote

This PR will allow for marking facets with Q2 space for hex: #3049.

from firedrake import *
  

gmesh = UnitCubeMesh(3, 3, 3, hexahedral=True)
x,y,z = SpatialCoordinate(gmesh)
V0 = FunctionSpace(gmesh, "Q", 2)
f1 = Function(V0).interpolate(conditional(x < .01, 1.0, 0.0))
f2 = Function(V0).interpolate(conditional(x > .99, 1.0, 0.0))
mesh = RelabeledMesh(gmesh, [f1, f2], [1, 2])

Replies: 1 comment 2 replies

Comment options

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

@ksagiyam
Comment options

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