How to mesh a cylinder in some complex situations

Hello everyone,
I’ve created the geometry,but I don’t know how to mesh it。
Hope you can take some time to help me solve it。


Here is my cub5 file.
model.cub5 (246.8 KB)

Hi @stupid_me,

a little decomposition is needed as we need some sweepable volumes.

reset
open "C:/Users/user/Downloads/model.cub5"
reset vol all

webcut volume all with plane xplane offset 1712
webcut volume all with plane xplane offset 1726
webcut volume all with plane yplane offset 8

imprint vol all
merge vol all

We can already mesh it now. We just have to make some mesh settings and make sure that we first mesh the cylinder and the adjacent volumes. Afterwards we can mesh the side surface with the pave scheme. This will then get sweeped through along the y-axis.

surface 602 size 1
curve 1086 size 1
surface 753 size 4

volume all size 30
Volume 14 13 size 4
Volume 63 64 size 4
Curve 1124 1149 size 4

Surface 753 scheme pave
mesh curve 1086
mesh surface 602
mesh surface 753

volume 14  redistribute nodes off 
volume 14  scheme Sweep  source surface 602    target surface 603   sweep transform least squares 
volume 14  autosmooth target on  fixed imprints off  smart smooth off 
mesh volume 14

volume 63  redistribute nodes off 
volume 63  scheme Sweep  source surface 753    target surface 751   sweep transform least squares 
volume 63  autosmooth target on  fixed imprints off  smart smooth off 
mesh volume 63 

volume 13  redistribute nodes off 
volume 13  scheme Sweep  source surface 603    target surface 613   sweep transform least squares 
volume 13  autosmooth target on  fixed imprints off  smart smooth off 
mesh volume 13 
volume 64  redistribute nodes off 
volume 64  scheme Sweep  source surface 751    target surface 761   sweep transform least squares 
volume 64  autosmooth target on  fixed imprints off  smart smooth off 
mesh volume 64 

Surface 625 637 641 651 scheme pave
mesh Surface 625 637 641 651
mesh Volume 59 60 62 61 

mesh vol all


If you need more mesh control you will have to decompose the geometry further. Also you would gain a better mesh quality if angle in the cut from the cylinder wouldn’t be so sharp.

I hope this gives you some ideas.

Thank you for taking the time to answer my questions. Your approach to meshing gave me great inspiration. Through your example, I understand how to use cubit when the geometry difference is too large. I will learn from your steps and think about how to get a more suitable grid.
Thank you again for your answer.