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

[snappyHexMesh] What could be the reason of snappy not applying to mesh?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Yann
  • 1 Post By AtoHM

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2023, 05:39
Default What could be the reason of snappy not applying to mesh?
  #1
Member
 
Song Young Ik
Join Date: Apr 2022
Location: South Korea
Posts: 57
Rep Power: 4
songyi719 is on a distinguished road
Even after snappyhexmesh finished successfully, mesh only have result of blockmesh, so it doesn't have any patch of stl file I put in constant folder

When I checked the log, snappyhexmesh finished without error (and several Millions of cell). I used -overwrite, and used 'location inside mesh' properly

What could be other possibility to fail my snappyhexmesh result to written in mesh?
songyi719 is offline   Reply With Quote

Old   June 26, 2023, 05:42
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,085
Rep Power: 26
Yann will become famous soon enough
  1. Did you run snappy in parallel or serial mode?
  2. Did you try slicing your resulting mesh in paraView to see if snappy did something inside the mesh or if it's only the original blockMesh file?

In addition, posting your snappy log might help to spot something.

Yann
Yann is offline   Reply With Quote

Old   June 26, 2023, 11:15
Default
  #3
Member
 
Song Young Ik
Join Date: Apr 2022
Location: South Korea
Posts: 57
Rep Power: 4
songyi719 is on a distinguished road
I ran in parallel, and checked paraview, but it was only original file.
songyi719 is offline   Reply With Quote

Old   June 26, 2023, 11:31
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,085
Rep Power: 26
Yann will become famous soon enough
Have you reconstructed your mesh, or selected "Decomposed case" in Case Type when loading your case in paraView?

If not, you are probably looking at the initial mesh located in constant/polyMesh rather than the final mesh located in processor*/constant/polyMesh.

2 Solutions:
  • If you use paraFoam: run reconstructParMesh -constant before running paraFoam
  • If you use paraView or paraFoam -builtin: When opening your case in paraView, pay attention to the "Case Type" parameter, and switch from "Reconstructed case" to "Decomposed case"
AtoHM likes this.
Yann is offline   Reply With Quote

Old   June 26, 2023, 21:16
Default
  #5
Member
 
Song Young Ik
Join Date: Apr 2022
Location: South Korea
Posts: 57
Rep Power: 4
songyi719 is on a distinguished road
I reconstructed my mesh using reconstructparMesh, and after that I used simpleFoam, but was extraordinary fast with every force being 0 (probably bc patch wasn't overwritten and only blockmesh was left in mesh)
Few weeks ago I ran similar code with different stl file, and it worked fine. So I'm curious if stl file can affect it.
songyi719 is offline   Reply With Quote

Old   June 26, 2023, 21:19
Default
  #6
Member
 
Song Young Ik
Join Date: Apr 2022
Location: South Korea
Posts: 57
Rep Power: 4
songyi719 is on a distinguished road
Also, when I check constant/polyMesh, mesh seems to be properly updated since all files' size have increased significantly. But I can't find out why It isn't used when I decompose again and run simpleFoam parallel

Update) No, it isn't updated. I made a mistake. It is same file size as before
songyi719 is offline   Reply With Quote

Old   June 27, 2023, 03:06
Default
  #7
Senior Member
 
M
Join Date: Dec 2017
Posts: 643
Rep Power: 12
AtoHM is on a distinguished road
I'd recommend starting from a fresh directory and doing only the meshing as a first step and carefully look for the pointers that Yann provided!
Yann likes this.
AtoHM is offline   Reply With Quote

Old   June 27, 2023, 03:51
Default
  #8
Member
 
Song Young Ik
Join Date: Apr 2022
Location: South Korea
Posts: 57
Rep Power: 4
songyi719 is on a distinguished road
I reduced mesh size and started with fresh directory, and it worked!

Problem is, it shows "expected a ')' while reading binaryblock" error while reconstruction with non-reduced mesh version sim.

But it is different issue, so I will finish this question in the thread with thanks to both of you.
songyi719 is offline   Reply With Quote

Old   June 27, 2023, 03:54
Default
  #9
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,085
Rep Power: 26
Yann will become famous soon enough
Quote:
Originally Posted by songyi719 View Post
I reconstructed my mesh using reconstructparMesh, and after that I used simpleFoam, but was extraordinary fast with every force being 0 (probably bc patch wasn't overwritten and only blockmesh was left in mesh)
Few weeks ago I ran similar code with different stl file, and it worked fine. So I'm curious if stl file can affect it.
I insist on the reconstructParMesh -constant. If you meshed with snappy using the -overwrite option and then only run reconstructParMesh without the -constant option, reconstructParMesh will run but will not reconstruct anything.
(with OpenFOAM, details matter! )

In addition to AtoHM recommendation: if it worked before with another STL file, make sure your new STL is properly scaled and properly positioned relatively to the blockMesh.

EDIT: I didn't see your last message, glad to know you made it work!
Yann 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
[snappyHexMesh] Holes in internal mesh when adding boundary layer snappyHex otaolafr OpenFOAM Meshing & Mesh Conversion 3 February 8, 2021 08:19
[snappyHexMesh] non uniform mesh near the stl object vava10 OpenFOAM Meshing & Mesh Conversion 0 January 31, 2021 14:41
[snappyHexMesh] Snappy Hex Mesh - issue with smoothness of the model edges olek.warc OpenFOAM Meshing & Mesh Conversion 1 August 31, 2018 11:31
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52


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