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

[snappyHexMesh] Mesh alignment

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2023, 20:33
Default Mesh alignment
  #1
New Member
 
Gustavo
Join Date: Jun 2021
Posts: 17
Rep Power: 5
gustavoliveira is on a distinguished road
Hi,


How can I align a mesh over a plane? For example, in this attached image, I used snappyHexMesh, but I would like the cell faces to align with the red line. Some of them are not aligned, for example, in the yellow circle.


Thanks
Attached Images
File Type: jpg snappy.jpg (147.0 KB, 18 views)
gustavoliveira is offline   Reply With Quote

Old   June 12, 2023, 05:17
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 703
Rep Power: 13
AtoHM is on a distinguished road
Untested: It should be possible to add a searchablePlane (https://www.openfoam.com/documentati...ableplane.html) in the geometry section. Then also make an entry for this region in the refinementSurfaces section of snappyHexMeshDict. This should cause snappy to snap nearby cells to the plane and keep them in place.

But keep in mind, the shifting you see there is caused by the layer introduction step. Keeping the cells at the plane frozen, may lead to worse quality or fewer layers being generated because the required quality can not be maintained.
AtoHM 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
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Meshing & Mesh Conversion 13 February 17, 2022 08:34
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
[ICEM] 2D hybrid mesh (unstructured mesh highly dependent on structured mesh parameters) shubham jain ANSYS Meshing & Geometry 1 April 10, 2017 06:03
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 05:24
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


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