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

[snappyHexMesh] Geometry Splitting and Layer Refinement Around Curvatures

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2024, 05:27
Exclamation Geometry Splitting and Layer Refinement Around Curvatures
  #1
New Member
 
Ilyes SAYAD
Join Date: Jul 2021
Posts: 22
Rep Power: 5
highpressure is on a distinguished road
Hello everyone,

I'm attempting to replicate the simulation case presented in this article as a validation for my model. However, I'm encountering difficulties with the meshing process.


Quote:
Each blade has been split into three parts, from apex to central zone. This allowed to keep thinner cells on the edge, crucial zone for vortex generation, and reducing the number of cells in the central zone. In the rest of domain, a gradual transition from zone around the rotor to boundaries has been constructed.
According to the authors, they divided the geometry into different sections to achieve refinement around curvatures. Additionally, the attached figure indicates they used layers with "relativeSizes" turned off (see attached figure).

I am facing the following issues:

  1. I am unsure how to split the geometry in SHM to refine specific regions, such as blade tips.
  2. When I disable "relativeSizes," SHM crashes. My average y+ is around 20, and I am uncertain how to configure the layer parameters to achieve optimal results.

I have attached the case file for reference.

Thank you for your assistance!
Attached Images
File Type: jpg Capture d’écran du 2024-07-16 10-18-03.jpg (127.3 KB, 17 views)
Attached Files
File Type: zip 2D_AMI_forced.zip (64.3 KB, 1 views)
highpressure is offline   Reply With Quote

Old   July 16, 2024, 10:59
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello Ilyes,
  1. You should have several regions (named surfaces) in your STL/OBJ file in order to specify different refinement levels for each surfaces in snappyHexMeshDict. You should find resources about this on the forum. For instance: Naming regions in stl file for snappyHexMesh
  2. When relativeSizes is set to true, the layers parameters such as finalLayerThickness are expressed as a fraction of size of the first cell next to the layer cells. If relativeSizes is set to false, this parameter is expressed in meters. So if you switch from relative to absolute size, you will need to adjust your layers settings accordingly. (see documentation: https://doc.openfoam.com/2306/tools/...-relativeSizes)

Regards,
Yann
AtoHM likes this.
Yann is online now   Reply With Quote

Old   July 22, 2024, 06:44
Default
  #3
New Member
 
Ilyes SAYAD
Join Date: Jul 2021
Posts: 22
Rep Power: 5
highpressure is on a distinguished road
Bonjour Yann,


Thank you for your reply !

Quote:
You should have several regions (named surfaces) in your STL/OBJ file in order to specify different refinement levels for each surfaces in snappyHexMeshDict. You should find resources about this on the forum. For instance: Naming regions in stl file for snappyHexMesh
I think the provided link doesn't directly answer the question. Could you please show me a tutorial on how to do that ?


I still have two other questions regarding the 3D simulation :
  1. In a 2D simulation, how do I choose the thickness (extrusion) in the 3rd direction (Z) ?
  2. While running a 2D case, I'm still getting forces and coefficients according to a third direction. Why ?
Regards,
highpressure is offline   Reply With Quote

Old   July 22, 2024, 07:15
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Bonjour Ilyes,

I don't have a specific tutorial for that because it depends on the software you use to prepare your geometries. Some software supports regions in STL/OBJ files, others do not. So you will have to dig a bit more about that on your own.

Regarding your questions:
  1. the thickness value does not matter, you can pick whatever you want. However, you might have to use the mesh thickness when defining your lRef/Aref values for the forceCoefficient function object in order to get the proper coefficients.
  2. OpenFOAM works in 3D (your mesh still has a thickness in 2D mode) so it will output 3 force components. But in 2D the 3rd component should be 0.

Regards,
Yann
Yann is online now   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
[snappyHexMesh] SnappyHexMesh stuck at "Introducing baffles..." Rojj OpenFOAM Meshing & Mesh Conversion 1 June 30, 2023 09:14
SimpleFoam & Theater jipai OpenFOAM Running, Solving & CFD 3 June 18, 2019 11:11
[mesh manipulation] Splitting the mesh for AMI wgvanveen OpenFOAM Meshing & Mesh Conversion 17 October 18, 2017 06:23
[snappyHexMesh] Bad meshing result on corrugated metal sheet UebertreibeR OpenFOAM Meshing & Mesh Conversion 1 August 19, 2016 05:55
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 10:03


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