|
[Sponsors] |
[snappyHexMesh] snappyHexMesh add-layers issues, warped cells |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 1, 2013, 15:33 |
snappyHexMesh add-layers issues, warped cells
|
#1 |
New Member
Natan Zawadzki
Join Date: Jun 2013
Posts: 11
Rep Power: 13 |
Dear cfd-users,
I'm trying to create a mesh inside a 3d-channel with a hill on the bottom. All channel walls in except of the lower wall I created with BlockMesh. The bottom geometry including the bump I put in the constant/triSurface directory as a .stl file. Although it seems to be a relatively simple geometry I get some considerable issues during the layers adding. The boundary layers on the bump (but solely on the bump, see attached pict.) are highly warped, at many places overgrown itself or even don't exist. In all probability the problem is causes by inadequately quality of the bump surface. First I thought I should in the snappyHexMeshDict file just increase the level of surface refinement and the number of smoothing iterations before finding a correspondence to the surface. In except of computation time nothing changes xD My 2nd presumption was that the bad surface quality is caused by incorrect facet normals orientation. I checked the normals in the .stl file with a self-made matlab code and yes, a lot of normals wasn't vertical on the triangular faces, as should be. Then I wrote a code to reorient the normals but the issue still occur... Below I attached a few pictures showing my problem, an the complete foam run directory with all dictionaries. I will be very grateful for some helpful advices. Attachment description: pict0: whole channel geometry created with blockMesh and sHM, without edges cut1: x normal, cut in the middle of the bump: as You can recognize in the middle of the hill the surface is relatively smooth, then on the sides strongly warped... cut2: z normal cut3: z normal & x normal: as You can easily recognize on the ragged sides of the bump no layers have been added... Download link for run directory: https://docs.google.com/file/d/0B-av...it?usp=sharing |
|
July 2, 2013, 12:14 |
|
#2 |
Senior Member
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16 |
looks like your mesh isn't snapped?
can't tell. check if it SHM says "did not successfully snap mesh". If the mesh is not snapped, I recommend you disable layers and focus on the snapping problem first. |
|
July 2, 2013, 14:25 |
|
#3 |
New Member
Natan Zawadzki
Join Date: Jun 2013
Posts: 11
Rep Power: 13 |
I've got it :-)
the mesh looks like snapped in just one direction (because of the smooth string in the middle of the bump) In the blockMeshDict I had set the frondAndBack patch as "empty". As soon as I set them as "patches", everything worked out. Could be that the snapping direction depend on the patch definition in the BlockMeshDict? Why? @mihaipruna Thanks for the reply! |
|
July 2, 2013, 14:30 |
|
#4 |
Senior Member
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16 |
I've used empty patches to make "2D" flows. I think if you set them as empty SHM won't bother in that direction.
|
|
July 2, 2013, 19:30 |
|
#5 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
snappyHexMesh has some issues when it tries to add layers on a surface that isn't aligned with the coordinate plane sometimes. i suggest
Hope that helps. |
|
August 19, 2013, 10:34 |
|
#6 | |
Senior Member
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 15 |
Quote:
How could we use distance refinement to produce unifromly refined cells near the surface to make layer addition easier? would you explain it more.. Thank you very much |
||
August 19, 2013, 10:47 |
|
#7 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
An example of what I was referring to is in a presentation from the last workshop located here. Look at slides 67-69 and maybe a few before to explain what i was trying to achieve. An example of this is also provided here in section 5.4.5, where
Code:
refinementRegions { box1x1x1 { mode inside; levels ((1.0 4)); // refinement level 4 (1.0 entry ignored) } sphere.stl { // refinement level 5 within 1.0 m mode distance; // refinement level 3 within 2.0 m levels ((1.0 5) (2.0 3)); // levels must be ordered nearest first } } |
|
August 19, 2013, 10:54 |
|
#8 | |
Senior Member
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 15 |
Quote:
|
||
August 19, 2013, 13:16 |
|
#9 |
Member
Miro
Join Date: Jan 2013
Location: Europe
Posts: 51
Rep Power: 13 |
One could also disable relative layer size. In that case, refinement level doesn't have to be uniform on the surface.
- miro |
|
August 19, 2013, 14:01 |
|
#10 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
@ Miro: This is true but then you would have to know the physical size of the cells you would like as your boundary layer. I myself prefer to use relative size since it is a little easier to add layer cells...but this is a good point you've made and definitely an option
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Old and busted: snappyHexMesh and add layers with edges | Siassei | OpenFOAM Meshing & Mesh Conversion | 6 | August 14, 2018 19:33 |
[blockMesh] Create internal faces as patch in blockMesh | m.delta68 | OpenFOAM Meshing & Mesh Conversion | 14 | July 12, 2018 15:43 |
[snappyHexMesh] sHM layer process keeps getting killed | MBttR | OpenFOAM Meshing & Mesh Conversion | 4 | August 15, 2016 04:21 |
[snappyHexMesh] snappyHexMesh matches wrong cells to CellZone | Siegunn | OpenFOAM Meshing & Mesh Conversion | 4 | July 31, 2015 06:10 |
[snappyHexMesh] SnappyHexMeshDict | fabrizio | OpenFOAM Meshing & Mesh Conversion | 25 | October 14, 2011 08:00 |