|
[Sponsors] |
[cfMesh] Difficulties in using cfMesh: division is not uniform |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 3, 2015, 14:28 |
Difficulties in using cfMesh: division is not uniform
|
#1 |
Member
Ron Burnett
Join Date: Feb 2013
Posts: 42
Rep Power: 13 |
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 |
|
May 4, 2015, 09:39 |
Re: Difficulties in using cfMesh: division is not uniform
|
#2 |
Senior Member
|
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 |
|
May 6, 2015, 22:44 |
|
#3 |
Member
Ron Burnett
Join Date: Feb 2013
Posts: 42
Rep Power: 13 |
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. |
|
|
|
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 |