CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

Difficulties in using cfMesh: division is not uniform

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 3, 2015, 13:28
Default Difficulties in using cfMesh: division is not uniform
  #1
New Member
 
Ron Burnett
Join Date: Feb 2013
Posts: 21
Rep Power: 4
rnburne is on a distinguished road
If cfMesh is given a unit cube (side=1) and a maxCellSize of .1 , with the intent of creating 10 divisions, it divides the sides into 18 parts. If the maxCellSize is changed to .101 , it does indeed divide the sides into 10 parts. However, the division is not uniform. The cells range in size from .087 to .115 with an aspect ratio of up to 1.35 (pic A) . Is it possible to force a uniform division?
Also, when working with a refinement zone within the unit cube (thru objectRefinements) another undesired result occurs: cells with nonparallel sides (pic B) . Can this be controlled or overcome?

Ron
Attached Images
File Type: png A.png (3.2 KB, 8 views)
File Type: jpg B.jpg (50.8 KB, 11 views)
Attached Files
File Type: txt meshDict.txt (1.4 KB, 4 views)
rnburne is offline   Reply With Quote

Old   May 4, 2015, 08:39
Default Re: Difficulties in using cfMesh: division is not uniform
  #2
Member
 
Franjo Juretic
Join Date: Aug 2011
Location: Velika Gorica, Croatia
Posts: 63
Rep Power: 7
franjo_j is on a distinguished road
Send a message via Skype™ to franjo_j
There are a few things you can try to get the desired behaviour.
1. Do not insert boundary layers by commenting out generateBoundaryLayers() function from the generateMesh function in cartesianMeshGenerator.C. This will deteriorate mesh quality in 99.99% of realistic cases, and hence cartesianMesh always generates additional cells. However, you may safely turn it off for the purpose of meshing a cube.
2. Non-parallel cells occur as a consequence of mesh smoothing. You can turn of the laplacian smoother in the function optimizeMeshFV() in optimizeMeshFV.C. This will preserve orthogonal lines in mesh, and will probably increase meshing times once you start running complex geometries.

I hope this helps you solve your problems.
__________________
Principal Developer of cfMesh
www.c-fields.com
Social media: LinkedIn, Twitter, YouTube, Google+, Facebook, Pinterest
franjo_j is offline   Reply With Quote

Old   May 6, 2015, 21:44
Default
  #3
New Member
 
Ron Burnett
Join Date: Feb 2013
Posts: 21
Rep Power: 4
rnburne is on a distinguished road
Franjo, thanks for the help.
After playing with the problem I have concluded that the cells with nonparallel walls will occur only where there is a transition from one refinement level to another.......and nowhere else. And, unfortunately, turning off the smoother has no effect.
rnburne is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
dsmcFoam setup hherbol OpenFOAM Pre-Processing 0 July 14, 2013 17:16
T Junction Stability ignacio OpenFOAM Running, Solving & CFD 5 May 2, 2013 10:44
Air Conditioned room groovyBC Sebaj OpenFOAM 7 October 31, 2012 15:16
Need help with boundary conditions: open to atmosphere Wolle OpenFOAM 2 April 11, 2011 07:32
rhoSimpleFoam claco OpenFOAM 7 April 20, 2010 04:32


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