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

[snappyHexMesh] Patchy / Discontinuous Inlet/outlet regions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 14, 2019, 10:50
Default Patchy / Discontinuous Inlet/outlet regions
  #1
New Member
 
Join Date: Dec 2018
Posts: 2
Rep Power: 0
openThanos is on a distinguished road
Good morning,

Im new to the forum, thank you for having me. I anticipate that this is not a previously covered topic because Ive done my due diligence searching high and low. I apologise in advance if Im repeating.

I'm new to openFoam; at the stage where I've challenged myself to model my own geometry from scratch (on the framework of the motorbike tutorial). Using the motorbike tutorial as a framework and following Calum Douglas' tutorial (https://www.youtube.com/watch?v=ObsFQUiVi1U) for guidance with my own geometry (grabcad sourced exhaust manfd.)

I am able to 'mesh' and start the run making it a few iterations before diverging. I suspect this is due to my mesh. More specifically, when looking at the mesh in paraView, the inlet and outlet boundaries are patch and discontinuous. That is it appears that not every node on the boundary is associated with the inlet region. Please see attached photo. I suspect this needs to be fixed - and have been working at it for a few days now. Ive been trying a few different parameters in my shmDict, surfFeatExtractDict, surfaceFeaturesDict, blockmeshDict. They do influence the outcome, but not drastically.
Can anyone help me figure out why this is happening and help me fix it?


Notes on the geometry:
The geometry was imported to solidworks and exported as three asci STL files; one solid domain encapsulating all geometry as a solid [volume.stl], and two surface STLs for the inlet [inlet.stl] and outlet [outlet.stl] . I created a fourth merged geometry by concatenating these STLs [merge.stl] and am using that for my 'surfaceFeaturesDict' but not my 'surfaceFeatureExtractDict'. I should not that using volume.stl instead does not change the outcome.

Having exported these stl files independently, I suspected that variations in the exported geometry may be causing this. I used blender to create new inlet and outlet meshes as carbon copies of the volume mesh in the respective regions. This did not change the outcome. The regions are still patchy.


Do you folks have any insight or recommendations? Happy to elaborate or provide the case files.

Many thanks!
Thanos

Please see attached for shmDict, surfFeatExtractDict, surfaceFeaturesDict, and blockmeshDict
Attached Images
File Type: jpg 3.jpg (117.2 KB, 35 views)
Attached Files
File Type: txt blockMeshDict.txt (1.5 KB, 7 views)
File Type: txt snappyHexMeshDict.txt (9.6 KB, 5 views)
File Type: txt surfaceFeatureExtractDict.txt (1.9 KB, 6 views)
File Type: txt surfaceFeaturesDict.txt (981 Bytes, 8 views)
openThanos is offline   Reply With Quote

Old   February 18, 2019, 13:24
Default
  #2
New Member
 
Murilo Henrique Moreira
Join Date: Feb 2019
Posts: 4
Rep Power: 7
MuriloHenriqueMoreira is on a distinguished road
Exactly the same problem here!
I'm so close to get what I want hahaha.
MuriloHenriqueMoreira is offline   Reply With Quote

Old   February 20, 2019, 05:53
Default
  #3
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!


Make sure that the "volume" stl doesn't contain the inlet/outlet patches. If there are 2 stls (boundary and inlet), snappy won't know what patch should be these faces, since they are the same.
Based on my experiences also try to avoid a perfectly fitted background mesh because in this case you can have the patch on some faces from the background mesh.


Also check your featureEdges. You can set "writeObj yes;" and you can open the obj files into paraview. It seems like snappy didn't snapped to the features (edges).
simrego is offline   Reply With Quote

Old   February 21, 2019, 09:51
Default Solved
  #4
New Member
 
Join Date: Dec 2018
Posts: 2
Rep Power: 0
openThanos is on a distinguished road
simrego,

You nailed it. Volume stl included the inlet and outlet. I split the surfaces out and used them as my inlet and outlet and got everything working.

In your foam experience, is it important to snappy to have the STL vertices intersect between inlet and volume bodies? I.E. is it best practice to export the volume stl from cad with the Inlet and Outlet boundaries, and subsequently break them out using a program like blender? Or just export them individually?

Thank you all,
I hope this thread helps someone in the future.
openThanos is offline   Reply With Quote

Old   February 21, 2019, 10:05
Default
  #5
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
It is not necessary to have coincident vertices. At least based on my experiences. I usually just export the face groups from salome with a simple export as stl for each patch, so the neighbouring stls usually have different vertices/edges. And snappy works perfectly. Sometimes (maybe had to do once or twice) I have to increase tolerance when I export the stl (to capture the surface more precisely if it there are a really difficult surfaces near each other in different patches), but most of the time it is working perfectly without bleeding.
simrego 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] multiple regions Tobi OpenFOAM Meshing & Mesh Conversion 56 March 29, 2020 04:53
[ANSYS Meshing] ICEM CFX Primitive Regions Appearing after Smoothing syble ANSYS Meshing & Geometry 1 July 29, 2016 16:29
[CAD formats] Clean / Repair STL file with multiple regions on command line matthiasd OpenFOAM Meshing & Mesh Conversion 6 May 24, 2016 06:51
Determining the calculation sequence of the regions in multe regions calculation peterhess OpenFOAM Running, Solving & CFD 4 March 9, 2016 03:07
chtMultiRegionFoam different properties in (fluid) region(s) volker1 OpenFOAM Pre-Processing 3 February 4, 2015 06:46


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