CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[cfMesh] version 1.1 - Total boundary layer thickness

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 2 Post By KateEisenhower
  • 1 Post By franjo_j
  • 1 Post By franjo_j
  • 1 Post By franjo_j
  • 1 Post By craven.brent

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 17, 2015, 08:30
Default version 1.1 - Total boundary layer thickness
  #1
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Hello everyone,

I have a question concerning boundary layer creation in cfMesh. If Franjo, Tomislav or another developer is reading this, thank you for creating this tool! I worked with it for two days now and I enjoyed it pretty much.
Let me cite the official User Guide first:
Quote:
In addition, their thickness is controlled by the cell size specified at the boundary and the mesher tends to produce layers of similar thickness to the cell size.
This corresponds with what I have experienced so far.
If I have a small cell size, the total boundary layer thickness is too small for my application.
If I go with a rather coarse grid at the boundary, I manage to get a big enough total boundary layer thickness. So far, so good, the problem is that I need around 25 layers to dissolve my boundary layer sufficiently. Then I get a thickness ratio (first cell of the farfield/last cell of the boundary layer) of at least 5 (please have a look at the attached picture). Please correct me if I'm wrong but I think for a proper mesh, the ratio should be between 1 and 1.5.
Is there any way to tweak this behaviour or is cfMesh simply not fit for my usecase?

Best regards,

Kate
Attached Images
File Type: jpg ratio_farfield_boundarylayer.jpg (40.0 KB, 443 views)
junghyunjin and Gang Wang like this.
KateEisenhower is offline   Reply With Quote

Old   June 17, 2015, 09:53
Default
  #2
Senior Member
 
Franjo Juretic
Join Date: Aug 2011
Location: Velika Gorica, Croatia
Posts: 124
Rep Power: 17
franjo_j is on a distinguished road
Send a message via Skype™ to franjo_j
Hello Kate,

Thank you for your feedback.

Quote:
Originally Posted by KateEisenhower View Post
Hello everyone,

I have a question concerning boundary layer creation in cfMesh. If Franjo, Tomislav or another developer is reading this, thank you for creating this tool! I worked with it for two days now and I enjoyed it pretty much.
Let me cite the official User Guide first:

This corresponds with what I have experienced so far.
If I have a small cell size, the total boundary layer thickness is too small for my application.
If I go with a rather coarse grid at the boundary, I manage to get a big enough total boundary layer thickness. So far, so good, the problem is that I need around 25 layers to dissolve my boundary layer sufficiently. Then I get a thickness ratio (first cell of the farfield/last cell of the boundary layer) of at least 5 (please have a look at the attached picture). Please correct me if I'm wrong but I think for a proper mesh, the ratio should be between 1 and 1.5.
Is there any way to tweak this behaviour or is cfMesh simply not fit for my usecase?
You can try to work around the problem by adjusting the number of layers and the thickness ratio. Currently, there exists no explicit control of the ratio between the last cell of the layer and the first far-field cell. This ratio is not a problem if there is no significant gradient variation there.

Quote:
Originally Posted by KateEisenhower View Post
Best regards,

Kate
Regards,

Franjo
KateEisenhower likes this.
__________________
Principal Developer of cfMesh and CF-MESH+
www.cfmesh.com
Social media: LinkedIn, Twitter, YouTube, Facebook, Pinterest, Instagram
franjo_j is offline   Reply With Quote

Old   June 18, 2015, 05:52
Default
  #3
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Hello Franjo and thanks for the answer,

Quote:
Originally Posted by franjo_j View Post
Hello Kate,

Thank you for your feedback.



You can try to work around the problem by adjusting the number of layers and the thickness ratio. Currently, there exists no explicit control of the ratio between the last cell of the layer and the first far-field cell. This ratio is not a problem if there is no significant gradient variation there.



Regards,

Franjo
I tried this. I don't know if the results are sufficient for my application but I'll just give it a try with checkMesh and simpleFoam.
However I have two more problems:

1) When I go for a rather big layer, the layers go up und down along the boundary (boundaryLayer_waves.png).
2) The mesh around the trailing edge doesn't look good at all. I tried with a cut trailing edge (trailingedge_cut.png) and an uncut version (trailingedge_uncut.png). As recommended in the guide, I already lowered the cell size in this region below the feature size.

Maybe you have some advice for me.

Kind regards,

Kate
Attached Images
File Type: jpg boundaryLayer_waves.jpg (69.1 KB, 349 views)
File Type: jpg trailingedge_cut.jpg (28.2 KB, 276 views)
File Type: jpg trailingedge_uncut.jpg (34.3 KB, 254 views)
KateEisenhower is offline   Reply With Quote

Old   June 18, 2015, 09:04
Default
  #4
Senior Member
 
Franjo Juretic
Join Date: Aug 2011
Location: Velika Gorica, Croatia
Posts: 124
Rep Power: 17
franjo_j is on a distinguished road
Send a message via Skype™ to franjo_j
Hello Kate,

Quote:
Originally Posted by KateEisenhower View Post

1) When I go for a rather big layer, the layers go up und down along the boundary (boundaryLayer_waves.png).
The layer goes up and down because the goal is to generate a mesh without any inverted elements, and this requirement could not be satisfied when the layer has constant thickness.

Quote:
Originally Posted by KateEisenhower View Post
2) The mesh around the trailing edge doesn't look good at all. I tried with a cut trailing edge (trailingedge_cut.png) and an uncut version (trailingedge_uncut.png). As recommended in the guide, I already lowered the cell size in this region below the feature size.
Kate
I am of the impression that you have not defined feature edges or patches, which enforce the mesher to capture the trailing edge. Does the situation get better with mesh refinement?

Regards,

Franjo
KateEisenhower likes this.
__________________
Principal Developer of cfMesh and CF-MESH+
www.cfmesh.com
Social media: LinkedIn, Twitter, YouTube, Facebook, Pinterest, Instagram
franjo_j is offline   Reply With Quote

Old   June 18, 2015, 09:51
Default
  #5
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Hello Franjo,

Quote:
Originally Posted by franjo_j View Post
Hello Kate,


The layer goes up and down because the goal is to generate a mesh without any inverted elements, and this requirement could not be satisfied when the layer has constant thickness.
Can you explain in detail what you mean with inverted elements in this context?

Quote:
Originally Posted by franjo_j View Post
I am of the impression that you have not defined feature edges or patches, which enforce the mesher to capture the trailing edge. Does the situation get better with mesh refinement?

Regards,

Franjo
Yes the situation was a lot worse with a coarser mesh. I defined my patches within the *.stl file. Now I added one for the trailing edge and it now gets dissolved properly as you can see in the picture. That was very helpful. Thank you for that.

Best regards,

Kate
Attached Images
File Type: jpg trailingedge_solved.jpg (23.7 KB, 154 views)
KateEisenhower is offline   Reply With Quote

Old   June 18, 2015, 10:44
Default
  #6
Senior Member
 
Franjo Juretic
Join Date: Aug 2011
Location: Velika Gorica, Croatia
Posts: 124
Rep Power: 17
franjo_j is on a distinguished road
Send a message via Skype™ to franjo_j
Hello Kate,

Quote:
Originally Posted by KateEisenhower View Post
Hello Franjo,

Can you explain in detail what you mean with inverted elements in this context?
All cells shall be convex. There shall be no concave edges in any cell.

Regards,

Franjo
KateEisenhower likes this.
__________________
Principal Developer of cfMesh and CF-MESH+
www.cfmesh.com
Social media: LinkedIn, Twitter, YouTube, Facebook, Pinterest, Instagram
franjo_j is offline   Reply With Quote

Old   July 20, 2016, 05:52
Default
  #7
New Member
 
Join Date: Jul 2016
Posts: 1
Rep Power: 0
francesco.giacobone is on a distinguished road
Hello Franjo,

I'm currently using cf-mesh and I have experienced the same problem as Kate regarding the total thickness of the inflation layers from the surface. Is there now any method to control this thickness or is still automatically set by the cell size at the farfield?

Thanks,

Francesco
francesco.giacobone is offline   Reply With Quote

Old   April 9, 2018, 11:27
Default
  #8
New Member
 
Brent Craven
Join Date: Oct 2015
Posts: 7
Rep Power: 11
craven.brent is on a distinguished road
I realize this is a somewhat dated thread, but I am also trying to increase the thickness of the near-wall boundary layer mesh from cfmesh. I realize there is not an option for this in the meshDict in the open-source version. But, similar to Kate, I am trying to create a coarse mesh at the boundary, which can then hopefully be used to increase the total thickness of the boundary layer mesh.

But, I have not been able to create a coarser boundary mesh because "maxCellSize" always restricts the size of the boundary cells. Has anyone come up with a way to go about doing this: create a slightly coarser boundary mesh than than the interior so that the total boundary layer mesh thickness will be larger?

Thanks!

Brent
Gang Wang likes this.
craven.brent is offline   Reply With Quote

Old   March 16, 2020, 07:46
Default
  #9
Member
 
Gang Wang
Join Date: Oct 2019
Location: China
Posts: 64
Rep Power: 8
Gang Wang is on a distinguished road
Quote:
Originally Posted by craven.brent View Post
I realize this is a somewhat dated thread, but I am also trying to increase the thickness of the near-wall boundary layer mesh from cfmesh. I realize there is not an option for this in the meshDict in the open-source version. But, similar to Kate, I am trying to create a coarse mesh at the boundary, which can then hopefully be used to increase the total thickness of the boundary layer mesh.

But, I have not been able to create a coarser boundary mesh because "maxCellSize" always restricts the size of the boundary cells. Has anyone come up with a way to go about doing this: create a slightly coarser boundary mesh than than the interior so that the total boundary layer mesh thickness will be larger?

Thanks!

Brent
Hi!

I also have this problem when using cfmesh to draw the boundary layer mesh. Do you have any solved plans?

Best,
Gang
Gang Wang is offline   Reply With Quote

Old   May 4, 2023, 15:06
Default cf mesh bundary layer fails all mesh check
  #10
New Member
 
Join Date: Dec 2022
Posts: 1
Rep Power: 0
Harshal.Suthar is on a distinguished road
Hello guys
I am trying to generate a good boundary layer around my rocket model. I want to do a 2d simulation so using the cartesian2Dmesh command. As per the inlet velocity and the length of the rocket my first cell height comes out to be 1.95e-4 with a gradient of 1.4.

but when I am trying to give those values to the meshdict it creates the mesh but during the check mesh it fails all 6 checks. ex. negatives cells are very highly skewed cells and the aspect ratio is in the order of e+295. which is insane. can anyone please guide me where I am making mistake during boundary layer generation
Harshal.Suthar is offline   Reply With Quote

Reply


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
Any formula for approximating the boundary layer thickness around a cylinder? bestniaz Main CFD Forum 0 October 24, 2015 03:00
Prismatic boundary layer KateEisenhower enGrid 5 September 15, 2015 08:48
Validity & transformation of boundary layer equations Obad Main CFD Forum 2 April 27, 2015 03:59
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 16:55
New topic on same subject - Flow around race car Tudor Miron CFX 15 April 2, 2004 07:18


All times are GMT -4. The time now is 19:51.