CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[cfMesh] Difficulties in using cfMesh: division is not uniform

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2015, 14:28
Default Difficulties in using cfMesh: division is not uniform
  #1
Member
 
Ron Burnett
Join Date: Feb 2013
Posts: 42
Rep Power: 13
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, 41 views)
File Type: jpg B.jpg (50.8 KB, 47 views)
Attached Files
File Type: txt meshDict.txt (1.4 KB, 12 views)
rnburne is offline   Reply With Quote

Old   May 4, 2015, 09:39
Default Re: Difficulties in using cfMesh: division is not uniform
  #2
Senior Member
 
Franjo Juretic
Join Date: Aug 2011
Location: Velika Gorica, Croatia
Posts: 124
Rep Power: 17
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 and CF-MESH+
www.cfmesh.com
Social media: LinkedIn, Twitter, YouTube, Facebook, Pinterest, Instagram
franjo_j is offline   Reply With Quote

Old   May 6, 2015, 22:44
Default
  #3
Member
 
Ron Burnett
Join Date: Feb 2013
Posts: 42
Rep Power: 13
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


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
dsmcFoam setup hherbol OpenFOAM Pre-Processing 1 November 19, 2021 02:52
T Junction Stability ignacio OpenFOAM Running, Solving & CFD 5 May 2, 2013 11:44
[swak4Foam] Air Conditioned room groovyBC Sebaj OpenFOAM Community Contributions 7 October 31, 2012 15:16
Need help with boundary conditions: open to atmosphere Wolle OpenFOAM 2 April 11, 2011 08:32
RasInterFoam STRANGE RESULTS AT BOUNDARY kumar2 OpenFOAM Running, Solving & CFD 8 March 24, 2008 19:38


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