CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Salome] Boundary layer mesh on hybrid meshes with submeshes

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By giorgianig

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2023, 08:29
Default Boundary layer mesh on hybrid meshes with submeshes
  #1
Member
 
Giorgio
Join Date: Mar 2023
Posts: 55
Rep Power: 3
giorgianig is on a distinguished road
Dear all, I am trying to mesh a T-junction of 3 pipes. Here is the geometry







I would like to mesh the 3 rectilinear section with a 3D extrusion, and the T-junction in the middle with an unstructured mesh of tetrahedra. I also would like to have a boundary layer on the walls. So, I generated a partition and exploded in 4 solids: 3 cylinders and a T. See figure:






Then I generated a submesh on the faces connecting the cylinder and the T, and another submeshes for the extrusion of the cylindrial meshes. So far, so good, see picture:





Also you can notice a nice boundary layer on the cylinders





Now, I define the global mesh as Netgen 3D, put the same parameters as the other mesh hoping that Salome will propagate the mesh in the T with the boundary layer, but when I generate the mesh, the boundary layer is disappeared on the cylinders. No way to have it back. Here is the picture of the whole mesh:






and if I display only the mesh on the cylinders:






... the boundary layer is gone.


Am I missing something? Is it a limitation of Salome?


Thanks in advance
giorgianig is offline   Reply With Quote

Old   June 16, 2023, 11:31
Default
  #2
Senior Member
 
Join Date: Dec 2021
Posts: 251
Rep Power: 5
Alczem is on a distinguished road
Hey


I would proceed the other way around: start with the unstructured volume, and mesh it with boundary layers (by adding a hypothesis within the netgen settings). Tune your settings until you are satisfied with the look of your three connections towards the straights pipes. Then create submeshes and use "3D Extrusion" for each straight pipe with the starting face being the face connected to the T-junction, and the ending face the outlets/inlets.


This way, you will propagate the boundary layers of your T-junction.
Alczem is offline   Reply With Quote

Old   June 16, 2023, 12:35
Default
  #3
Member
 
Giorgio
Join Date: Mar 2023
Posts: 55
Rep Power: 3
giorgianig is on a distinguished road
Quote:
Originally Posted by Alczem View Post
Hey


I would proceed the other way around: start with the unstructured volume, and mesh it with boundary layers (by adding a hypothesis within the netgen settings). Tune your settings until you are satisfied with the look of your three connections towards the straights pipes. Then create submeshes and use "3D Extrusion" for each straight pipe with the starting face being the face connected to the T-junction, and the ending face the outlets/inlets.


This way, you will propagate the boundary layers of your T-junction.





Hello, thanks for your answer. It doesn't work either. I created a submesh for the T, it generates it with boundary layers:





Then I created another submeshes for the straight pipes using 3d estrusion, when I generated it , the bounday layer is gone (it is still present on the T though, meaning the mesh is not conformal)






I know it seems trivial, but I turned around this problem for some days now, tried in every way possible, it doesn't work.
giorgianig is offline   Reply With Quote

Old   June 16, 2023, 15:04
Default
  #4
Senior Member
 
Join Date: Dec 2021
Posts: 251
Rep Power: 5
Alczem is on a distinguished road
Are you sure you extrude from the T-junction towards the extremities? It does work for me.
Alczem is offline   Reply With Quote

Old   June 19, 2023, 04:06
Default
  #5
Member
 
Giorgio
Join Date: Mar 2023
Posts: 55
Rep Power: 3
giorgianig is on a distinguished road
Quote:
Originally Posted by Alczem View Post
Are you sure you extrude from the T-junction towards the extremities? It does work for me.
Yes, I described the procedure in my previous answer. Maybe I am doing something wrong though, I don't know. Can we share files?
giorgianig is offline   Reply With Quote

Old   June 19, 2023, 04:20
Default
  #6
Senior Member
 
Join Date: Dec 2021
Posts: 251
Rep Power: 5
Alczem is on a distinguished road
You didn't mention explicitly which face you used as starting face for the 3D Extrusion, that's why I asked again. I didn't save the file, but I used Salome 9.10 if that makes any difference.
Alczem is offline   Reply With Quote

Old   June 19, 2023, 04:32
Default
  #7
Member
 
Giorgio
Join Date: Mar 2023
Posts: 55
Rep Power: 3
giorgianig is on a distinguished road
Quote:
Originally Posted by Alczem View Post
You didn't mention explicitly which face you used as starting face for the 3D Extrusion, that's why I asked again. I didn't save the file, but I used Salome 9.10 if that makes any difference.



I am on Salome 9.9 . When I do the 3D extrusion, I don't specify the face to start the extrusion. I use Extrusion 3D as 3D algorithm, Wire Discretization as 1D algorithm with a Local Length which specify the extrusion length. I don't see how to specify the face to extrude.



Here is my files on Dropbox if you want to take a look



https://www.dropbox.com/s/0v7ly43q5t...study.hdf?dl=0
giorgianig is offline   Reply With Quote

Old   June 19, 2023, 05:28
Default
  #8
Member
 
Giorgio
Join Date: Mar 2023
Posts: 55
Rep Power: 3
giorgianig is on a distinguished road
Quote:
Originally Posted by Alczem View Post
You didn't mention explicitly which face you used as starting face for the 3D Extrusion, that's why I asked again. I didn't save the file, but I used Salome 9.10 if that makes any difference.



Sorry I uploaded the wrong file. It's actually quite the same, but the correct one is here:



https://www.dropbox.com/s/cj53nbrh5m...ified.hdf?dl=0
giorgianig is offline   Reply With Quote

Old   June 19, 2023, 11:19
Default
  #9
Member
 
Giorgio
Join Date: Mar 2023
Posts: 55
Rep Power: 3
giorgianig is on a distinguished road
Quote:
Originally Posted by Alczem View Post
You didn't mention explicitly which face you used as starting face for the 3D Extrusion, that's why I asked again. I didn't save the file, but I used Salome 9.10 if that makes any difference.

I didn't have any hope, but I tried also with Salome 9.10, still no joy
giorgianig is offline   Reply With Quote

Old   June 20, 2023, 05:03
Default
  #10
Senior Member
 
Join Date: Dec 2021
Posts: 251
Rep Power: 5
Alczem is on a distinguished road
Hey


I took a look at your file, and the main issue you had is that the three straight sections are in one unique group. You have to define one group per pipe so that you can create one submesh per pipe. I attached a picture of what it looks like in Salome (the modified t-junction is the "junction_corr").


And you actually don't have to define a starting face when you extrude, my mistake it seems that Salome can tell which face to use for the sweep, but I created groups anyways, so ignore them.



Hope it helps!
Attached Images
File Type: jpg salome_tjunction.jpg (87.2 KB, 11 views)
Alczem is offline   Reply With Quote

Old   June 20, 2023, 05:17
Default
  #11
Member
 
Giorgio
Join Date: Mar 2023
Posts: 55
Rep Power: 3
giorgianig is on a distinguished road
Quote:
Originally Posted by Alczem View Post
Hey


I took a look at your file, and the main issue you had is that the three straight sections are in one unique group. You have to define one group per pipe so that you can create one submesh per pipe. I attached a picture of what it looks like in Salome (the modified t-junction is the "junction_corr").


And you actually don't have to define a starting face when you extrude, my mistake it seems that Salome can tell which face to use for the sweep, but I created groups anyways, so ignore them.



Hope it helps!





Hello Alczem, yes indeed that helped a lot. The mesh generation now works as expected in this geometry.

Indeed, this was a simplified example, in the reality I have several straight pipes connected to Ts. I am wondering if having a straight pipe connected with 2 Ts at both end will still work with this procedure, as now the extrusion I constrained at both ends. Maybe chosing the priorities between section in a smart way...

I'll try it out, thanks for the help so far.
Alczem likes this.
giorgianig is offline   Reply With Quote

Old   June 20, 2023, 09:26
Default
  #12
Member
 
Giorgio
Join Date: Mar 2023
Posts: 55
Rep Power: 3
giorgianig is on a distinguished road
Well, it actually generates a mesh with boundary layers, but every time I generate a mesh of a T attached to a pipe that I already meshed, the mesh seems not to be conformal... when I try to export it to OpenFoam, some default patches are generated.
So all in all the mesh is not valid again.
giorgianig is offline   Reply With Quote

Reply

Tags
boundary layer, hybrid meshes, submeshes


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Hybrid mesh for 2D boundary layer Bigio ANSYS Meshing & Geometry 33 November 18, 2019 10:15
Boundary Layer Mesh must cover the whole thickness of BL sasanghomi CFX 2 June 11, 2019 22:16
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 10:03
[snappyHexMesh] Boundary layer generation problems ivan_cozza OpenFOAM Meshing & Mesh Conversion 0 October 6, 2010 14:47
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05


All times are GMT -4. The time now is 12:03.