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

[snappyHexMesh] failed to snap to a symmetry boundary condition patch

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 22, 2021, 20:06
Default failed to snap to a symmetry boundary condition patch
  #1
Senior Member
 
Charles
Join Date: Aug 2016
Location: Vancouver, Canada
Posts: 148
Rep Power: 9
Marpole is on a distinguished road
I have a model with a geometry like a 3D wedge. The two sides of the wedge use symmetry boundary condition. I use snappyHexMesh to mesh the wedge with background mesh of a block mesh. All cellls are cubic. The wedge circular end was snapped well but not the two sides. For the two sides, it basically did nothing. I changed the boundary conditions of the two sides to type wall. It snapped perfectly. Anyone has this experience? Any help?
__________________
Charles L.
Marpole is offline   Reply With Quote

Old   February 26, 2024, 02:31
Default
  #2
New Member
 
Marco Müller
Join Date: Feb 2013
Location: Germany
Posts: 23
Rep Power: 13
marco.müller is on a distinguished road
Hi Charles,

did you find a solution? I'm facing the same issue where shm fails to snap to a symmetry plan not parallel to the main planes. In my case there is a 120 degree section, see attachment. Changing it to wall type shows no problem for the snapping

Marco
Attached Images
File Type: png section.png (124.6 KB, 7 views)
marco.müller is offline   Reply With Quote

Old   February 26, 2024, 03:27
Default
  #3
Senior Member
 
M
Join Date: Dec 2017
Posts: 643
Rep Power: 12
AtoHM is on a distinguished road
Pragmatic solution: mesh it with "wall" and just change the type back to symmetric in the boundary file once meshing is complete. Obviously you need to work in ASCII.
AtoHM is offline   Reply With Quote

Old   February 26, 2024, 12:35
Default
  #4
Senior Member
 
Charles
Join Date: Aug 2016
Location: Vancouver, Canada
Posts: 148
Rep Power: 9
Marpole is on a distinguished road
Yes, I should have updated the solution. snappyHexMesh does not snap "symmetry" patch. It snaps "wall" patch. The solution is as AtoHM said.
1. define the "symmetry" patch type "wall"
2. After generating mesh, edit file boundary in folder constant/polyMesh and change the patch type "wall" back to "symmetry"
__________________
Charles L.
Marpole is offline   Reply With Quote

Old   February 26, 2024, 13:52
Default
  #5
New Member
 
Marco Müller
Join Date: Feb 2013
Location: Germany
Posts: 23
Rep Power: 13
marco.müller is on a distinguished road
Thanks guys! Though a little hard to understand why shm doesnt snap to it...
marco.müller 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00
user subroutine error CFDUSER CFX 2 December 9, 2006 06:31
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19


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