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

[snappyHexMesh] perfect flat inlets for "flowRateInletVelocity"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 8, 2020, 06:43
Default perfect flat inlets for "flowRateInletVelocity"
  #1
Member
 
alexander thierfelder
Join Date: Dec 2019
Posts: 71
Rep Power: 7
superkelle is on a distinguished road
Hi I have following problem:


I have several inlets and those who do not align perfectly to my blockMesh are not getting meshed very well, especialy the edge. That is not so dramatic unless I apply a "flowRateInletVelocity" BC for the inlets. It applys a surface normal velocity based on the set flow rate. But because my edges of some inlets have hard cuts, I get a non uniform velocity at the inlets that are not perfectly alignd to the mesh. And so problems with Co, numerics etc. Does someone has an idea for a fix in the meshing?
Attached Images
File Type: jpg completeMesh.jpg (24.3 KB, 16 views)
File Type: jpg goodFlatInlet.jpg (22.4 KB, 9 views)
File Type: jpg goodFlatInlet2.jpg (21.4 KB, 13 views)
File Type: jpg badInlet3.jpg (38.4 KB, 13 views)
File Type: jpg badInlet2.jpg (23.7 KB, 13 views)
superkelle is offline   Reply With Quote

Old   June 19, 2020, 21:03
Default
  #2
Member
 
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13
Lisandro Maders is on a distinguished road
Hello!

I know there are ways to use blockMesh for not XYZ aligned geometries. However, why don't you use snappyHexMesh for that? I only use blockMesh for very very simple geometries. Yours I would go with snappyHexMesh without thinking twice!

Cheers
Lisandro Maders is offline   Reply With Quote

Old   June 20, 2020, 02:41
Default
  #3
Member
 
alexander thierfelder
Join Date: Dec 2019
Posts: 71
Rep Power: 7
superkelle is on a distinguished road
Quote:
Originally Posted by Lisandro Maders View Post
Hello!

I know there are ways to use blockMesh for not XYZ aligned geometries. However, why don't you use snappyHexMesh for that? I only use blockMesh for very very simple geometries. Yours I would go with snappyHexMesh without thinking twice!

Cheers
It was created with shm
superkelle is offline   Reply With Quote

Old   June 20, 2020, 10:40
Default
  #4
Member
 
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13
Lisandro Maders is on a distinguished road
it was late night, I completly misunderstood your problem...

Check your STL. Is the quality of it ok? Can you see some weird stuff on the affected mes regions in your STL geometry?

Also, try to extract the feature lines on those patches and apply a local line refinement to see if it helps.
Lisandro Maders is offline   Reply With Quote

Old   June 23, 2020, 04:48
Default
  #5
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello Alexander,


In addition to Lisandro's questions : what OpenFOAM version are you using ?


Yann
Yann is offline   Reply With Quote

Old   June 23, 2020, 11:30
Default
  #6
Member
 
alexander thierfelder
Join Date: Dec 2019
Posts: 71
Rep Power: 7
superkelle is on a distinguished road
Hi, I use OF7. The I checked the STL with surfaceCheck and the mesh after meshing with checkMesh. Both did not give any error. The whole geometry is very small, I thougt that this might be the problem. The height of the whole geometry is 2.7 cm and the diameter about 3 cm. One of the Inlets has a diameter of 0.1 cm. I also had to disable the maximum cellvolume in the meshquality dict.

Never the less I tried to make a finer backround mesh and addLayers (what I not really wanted because of the additional cells). It is now better, but still, all inlet patches that do not lay parallel to the backround mesh are somehow bad. The layers do not get created right, and they have again some corrupted cells at the edges. The attached pictures are from the same mesh.
Attached Images
File Type: jpg goodOneInlet.jpg (77.2 KB, 12 views)
File Type: jpg badOneInlet.jpg (65.8 KB, 13 views)
superkelle is offline   Reply With Quote

Old   June 23, 2020, 21:17
Default
  #7
Member
 
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13
Lisandro Maders is on a distinguished road
I think you meant minCellVolume in the quality check, right? Instead of disabling it, try to set it to 1e-18, since your geometry is really small.

I can see you have different levels of refinement in the surface. The layer addition struggles on these regions. Are you using different min/max levels of refinement for such surfaces? Like: levels (1 4)... If so, try to use same level or closer values to see if it helps, and not only for the inlet patches but for the connected-to-inlet wall patches as well
Lisandro Maders is offline   Reply With Quote

Old   July 6, 2020, 08:29
Default
  #8
Member
 
alexander thierfelder
Join Date: Dec 2019
Posts: 71
Rep Power: 7
superkelle is on a distinguished road
Quote:
Originally Posted by Lisandro Maders View Post
I think you meant minCellVolume in the quality check, right? Instead of disabling it, try to set it to 1e-18, since your geometry is really small.

I can see you have different levels of refinement in the surface. The layer addition struggles on these regions. Are you using different min/max levels of refinement for such surfaces? Like: levels (1 4)... If so, try to use same level or closer values to see if it helps, and not only for the inlet patches but for the connected-to-inlet wall patches as well

Hi I tried those but nothing did really help, non the less thank you for your advise. But finaly I found a setting that works. But it is a little bit conta intuitive. I set other snapping control settings. I reduced nSmoothPatch to one, before it was seven. I don't know why that did the trick. Maybe it is a combination of this setting, mesh quality settings and the fact that the object is very small.



Code:
snapControls
{
    nSmoothPatch 1; //7
...
}
superkelle 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
Flow over a flat plate as an immersed solid hamed.majeed CFX 4 September 8, 2016 15:40
Flat Plate Boundary Layer Height kennedy1992 Fidelity CFD 7 February 24, 2016 05:45
Flat plate analysis in cfx hamed.majeed CFX 14 February 4, 2015 08:07
Two pressure inlets problem Medison CFX 1 August 22, 2012 07:50
Multiple Inlets Charlie V FLUENT 0 May 28, 2001 03:29


All times are GMT -4. The time now is 12:50.