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

[snappyHexMesh] SnappyHexMesh Internal Mesh problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2019, 11:09
Default SnappyHexMesh Internal Mesh problem
  #1
New Member
 
anonymous
Join Date: Sep 2019
Location: North Carolina
Posts: 25
Rep Power: 6
tenichols19 is on a distinguished road
I trying to do a complicated internal mesh and I am running into some issues. The flow pass through contains some solid pieces which is where I think the problem lies.
I've been able to accomplish some internal meshes before and I pretty much used the same method.

I attached a shareable folder that contains the files after I ran snappyhexmesh.

I was able to run snappyhexmesh without any errors but it doesn't recognize the internal solids.



https://drive.google.com/file/d/1RJA...ew?usp=sharing


https://drive.google.com/file/d/1XRn...ew?usp=sharing





Thanks in advance
Attached Images
File Type: jpg blockMesh.jpg (107.9 KB, 25 views)
File Type: jpg cropveiw1.jpg (84.7 KB, 27 views)
File Type: jpg cropview2.jpg (84.3 KB, 22 views)
File Type: jpg stlfile.jpg (76.4 KB, 22 views)
File Type: jpg stlinblockmesh.jpg (120.1 KB, 21 views)

Last edited by tenichols19; October 23, 2019 at 21:53.
tenichols19 is offline   Reply With Quote

Old   October 22, 2019, 09:33
Default
  #2
New Member
 
anonymous
Join Date: Sep 2019
Location: North Carolina
Posts: 25
Rep Power: 6
tenichols19 is on a distinguished road
To trouble shoot I've created a simpler object and refined the tolerances on the stl file. I ran admesh --fill-holes "file" to ensure there are no holes. I still came up with this problem. The point I have chosen is in the object but worst case if it was outside the object it should still create a mesh around it.. So either there is a whole in the stl, which there shouldn't be, or something else is wrong.
Any advice would be appreciated. Thank you
tenichols19 is offline   Reply With Quote

Old   October 23, 2019, 01:59
Default
  #3
Member
 
Damian Berghof
Join Date: May 2019
Posts: 41
Rep Power: 10
virengos will become famous soon enough
Hello,
could you please grant the access to your file? I'd like to investigate it, since I worked on some similar geometries. What are the rough boundary conditions for you simulation and expected mesh accuracy?
best,
Damian
__________________
Get more support about Meshing with Salome and Visualization with ParaView in my growing groups
https://bit.ly/2lFfDkQ
https://bit.ly/2k2u8Pj
virengos is offline   Reply With Quote

Old   October 23, 2019, 21:56
Default
  #4
New Member
 
anonymous
Join Date: Sep 2019
Location: North Carolina
Posts: 25
Rep Power: 6
tenichols19 is on a distinguished road
Quote:
Originally Posted by virengos View Post
Hello,
could you please grant the access to your file? I'd like to investigate it, since I worked on some similar geometries. What are the rough boundary conditions for you simulation and expected mesh accuracy?
best,
Damian
See if the link is view-able now?
I want to simulate constant volumetric flow rate. As for pressure, I want to fix the outlet pressure to atm and set the inlet to zero-gradient to see what pressure it takes at the inlet to maintain the volumetric flow.

But as of right now I need to start figuring out the mesh problem and I'll go from there..
tenichols19 is offline   Reply With Quote

Old   October 24, 2019, 06:59
Default
  #5
Member
 
Damian Berghof
Join Date: May 2019
Posts: 41
Rep Power: 10
virengos will become famous soon enough
ok, I was now able to download the file and will investigate your case in the next 2 days.
__________________
Get more support about Meshing with Salome and Visualization with ParaView in my growing groups
https://bit.ly/2lFfDkQ
https://bit.ly/2k2u8Pj
virengos is offline   Reply With Quote

Old   October 25, 2019, 02:09
Default
  #6
Member
 
Damian Berghof
Join Date: May 2019
Posts: 41
Rep Power: 10
virengos will become famous soon enough
Hi,
I reviewed the geometry, it might be a challenge
Before we do a deep dive into the meshing some remarks in advance:
1.) try to simplify your basis geometry.
- remove not relevant geometry details (groove, see my screenshot)
- merge the springs and the sealing ring with the spool / poppet valve.
2.) use the springs models for extra refinement or use cylinder for refinement
3.) make sure, the STL files are water-tight (use the forum SEARCH function!)
4.) I guess, you will need robust boundary layer to resolve the flow, especially on the poppet valve and downstream of it?
5.) to reduce some cells, the upstream and downstream pipes can be cut for the main meshing process and be extended with the 'extrudeMesh' command and grading factor afterwards. I use a automated script for this
6.) also the lower duct / channel seems to be not needed for the simulation, can be removed to reduce cells?
7.) what is exactly your technical question? which effect should be simulated? simple pressure-drop study or more specific ? from own experience, I guess the springs might not have big impact in this configuration / spool position
8.) can you also share the STEP geometry to create a negative 3D model and check what's possible with Salome?
best,
Damian


__________________
Get more support about Meshing with Salome and Visualization with ParaView in my growing groups
https://bit.ly/2lFfDkQ
https://bit.ly/2k2u8Pj
virengos is offline   Reply With Quote

Old   October 25, 2019, 14:23
Default
  #7
New Member
 
anonymous
Join Date: Sep 2019
Location: North Carolina
Posts: 25
Rep Power: 6
tenichols19 is on a distinguished road
Thanks for all those ideas. They all sound helpful!

I have the pipes upstream and downstream to create developed flow before entering the area where I expect the energy loss to occur.

But yeah a rather simple analysis. I will be running multiple geometries at similar conditions and I would like to the pressure drop for each one.

So to start and trouble shoot (no being able to snappyhexmesh to develop an internal mesh) I created a simpler geometry and still ran into the same problem. I know my internal point is within the geometry but it still doesn't develop a mesh inside the stl. It doesn't develop a mesh around it either so to me it sounds like something is is wrong with how I setup my files... It just reshows the blockmesh in paraFoam.
I went back to one of my other simulations where I created an internal mesh using snappyhexmesh, which it worked great before, and I tried to rerun it and the same problem happened...

I have no idea what is going on, any advice or experience with this?
tenichols19 is offline   Reply With Quote

Old   October 27, 2019, 01:32
Default
  #8
Member
 
Damian Berghof
Join Date: May 2019
Posts: 41
Rep Power: 10
virengos will become famous soon enough
1.) regarding the inlet/outlet extensions. That's clear, it's just my best practice to create the mesh in 2 stages. It means, to extend it with the 'extrudeMesh' command by 10x diameter, for example
2.) your STL is not of the best quality, and I guess not watertight / waterproof, check this links to see how to create perfect STL
Creating waterproof STL using snappyHexMesh or salome
https://www.youtube.com/watch?v=P4_nKarYzHA
3.) try to split the meshing domain into simple sectors by using additional dummy walls. This approach will help to detect the problematic area
4.) you could also check other tools:
- cfMesh
- GMSH
- Salome
- TCFD
- HEXPRESS/Hybrid
__________________
Get more support about Meshing with Salome and Visualization with ParaView in my growing groups
https://bit.ly/2lFfDkQ
https://bit.ly/2k2u8Pj
virengos is offline   Reply With Quote

Reply

Tags
openfoam


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 does not create any mesh except one for the reference cell Arman_N OpenFOAM Meshing & Mesh Conversion 1 May 20, 2019 17:16
[snappyHexMesh] SnappyHexMesh Patch Problem Perschr OpenFOAM Meshing & Mesh Conversion 0 October 8, 2016 12:09
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 03:21
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
[ICEM] Problem making structural mesh on a surface froztbear ANSYS Meshing & Geometry 1 November 10, 2011 08:52


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