3D surface mesh : curvature adaption problem
hello everyone, I'm trying to create the surface mesh of a 3D hydrofoil with gmsh but I have some troubles with curvature adaption.
It seems the software does not see the high curvature region near the leading edge and does not refine the mesh there. A workaround is to add a small face around the leading edge in the geometry (see top foil on the image) and then everything is meshed properly. I'm just trying to figure out if :
- I'm making a wrong use of the software
- I do not really understand what "curvature adaption" is
- there is a small bug in the software.
I used the Python API to import a step file and mesh it :
file = "wings_example_solid"
step_file = file+'.stp'
stl_file = file+'.stl'
import gmsh
gmsh.initialize()
gmsh.option.setNumber("Mesh.MeshSizeMax",20)
gmsh.option.setNumber("Mesh.MeshSizeFromCurvature",20) # number of elements on a circle's boundary
gmsh.option.setNumber("Mesh.Algorithm", 6) # Frontal-Delaunay
gmsh.model.occ.importShapes(step_file,format="step")
gmsh.model.occ.synchronize()
gmsh.model.mesh.generate(2) # surface mesh
gmsh.write(stl_file)
gmsh.clear()
Do you have an idea of what is happening ?
Thanks in advance,
Kindly,
Lionel