Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curved surface mesh #25

Merged
merged 1 commit into from
Apr 25, 2024
Merged

Curved surface mesh #25

merged 1 commit into from
Apr 25, 2024

Conversation

UZerbinati
Copy link
Collaborator

@UZerbinati UZerbinati commented Apr 24, 2024

Support for curved surface mesh. A minimal working example follows:

from firedrake import *
from firedrake.output import VTKFile
from netgen.occ import *
from netgen.meshing import MeshingStep


shape = Sphere(Pnt(0,0,0),1)
geo = OCCGeometry(shape)
mesh = Mesh(Mesh(geo.GenerateMesh(maxh=0.5, perfstepsend=MeshingStep.MESHSURFACE)).curve_field(2))

VTKFile("output/mesh_sphere.pvd").write(mesh)

image

Signed-off-by: Umberto Zerbinati <[email protected]>
@UZerbinati UZerbinati requested a review from pefarrell April 24, 2024 23:48
@pefarrell pefarrell merged commit df3d472 into main Apr 25, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants