Multiple boundary layer in a geometry

Hello,

I have a geometry that consist of mostly primitive shapes. I have big box which consist 6 holes. I made the blocks explicitly to get better structured elements. I will use this mesh in CFD analysis so I’m trying to add boundary layer. I’m having distorted elements in the corners of the holes. What is the optimum way to fix this in CUBIT ? Should I give better block around that part or maybe another may to add boundary layers?

Best

Hi @okyas,
do you need a mapped mesh everywhere? Or is the pave scheme an option?

With the pave scheme it could look like this

reset
create surface rectangle width 1 height 1 zplane
create surface rectangle width 0.2 height 0.8 zplane
subtract surface 2 from surface 1

create boundary_layer 1
modify boundary_layer 1 uniform height 0.005 growth 1.2 layers 4 
modify boundary_layer 1 add curve 11 surface 3 curve 10 surface 3 curve 9 surface 3 curve 12 surface 3 
modify boundary_layer 1 add curve 1 surface 3 curve 2 surface 3 curve 3 surface 3 curve 4 surface 3 
modify boundary_layer 1 continuity on

mesh surface all

Hi @Norbert_Hofbauer ,

thanks for the reply. I would to get mapped mesh in everywhere as much as it’s possible. Is there any way can I get the same boundary layers in a mapped mesh ? If this is not feasible, I’m willing to try the method you described.

Best
Sinan

Hi @okyas,
it should be possible by assigning a submap scheme. Is this what you are looking for?

image

reset
create surface rectangle width 2 height 1 zplane
create surface rectangle width 0.2 height 0.8 zplane
create surface rectangle width 0.2 height 0.8 zplane
move surface 2 x -0.5
move surface 3 x 0.5
subtract surface 2 from surface 1
subtract surface 3 from surface 4

create boundary_layer 1
modify boundary_layer 1 uniform height 0.005 growth 1.2 layers 4 
modify boundary_layer 1 add curve 13 surface 5 curve 14 surface 5 curve 15 surface 5 curve 16 surface 5 
modify boundary_layer 1 add curve 17 surface 5 curve 18 surface 5 curve 19 surface 5 curve 20 surface 5 
modify boundary_layer 1 add curve 1 surface 5 curve 2 surface 5 curve 3 surface 5 curve 4 surface 5 
modify boundary_layer 1 continuity on

Surface all scheme submap
mesh surface all