View Issue Details

IDProjectCategoryView StatusLast Update
0000826OpenFOAM[All Projects] Bugpublic2015-01-09 16:25
Reporteruser313Assigned Tohenry 
Status resolvedResolutionfixed 
Product Version 
Fixed in Version 
Summary0000826: Wall distance estimation
DescriptionI am wondering what is the wall distance estimation algorithm in OpenFOAM? But clearly, distance to the wall face CENTER is not the nearest wall distance.
TagsNo tags attached.



2013-04-29 17:40


nearest face centre. Additionally cells with face or point on the boundary get an explicit correction to pick up the exact nearest point on any point-connected boundary faces.


2013-04-29 17:44


I think all cells should be corrected, not just the wall cells. This is important for turbulence modeling. Otherwise, it is not going to be accurate enough.


2013-04-29 17:45


Last edited: 2013-04-29 17:48

View 2 revisions

Instead of using "nearest face centers and then correction", why not use some other searching algorithm to find the true distances directly?


2013-04-30 10:37


The current algorithm is a walking algorithm. The nearest wall point to any cell is the nearest point that any neighbouring cell has. It is very fast, handles transformations (rotational cyclics) and other coupled faces (processors). Any other algorithm (e.g. octree) will have (not unsurmountable) problems with these.


2013-05-03 21:59


I am testing to see how big the difference would be on the flow simulation. The wall distance difference in my simulation however shows that max(CurrentDist-TrueDist)/TrueDist=15%. This is not small.


2013-05-08 18:33


FYI. There is indeed difference in grid convergence study. Using the true distance gives closer results with other CFD codes.


2013-05-14 14:53


Interesting. Which turbulence model are you using?


2013-05-14 15:15


two, one is SA, the other is SST, the models I have modified to make sure the comparison is valid the models and b.c. are correct.


2014-12-29 14:54

updater   ~0003395

For future reference, this is related to this report:


2015-01-09 16:25

manager   ~0003523

Resolved in OpenFOAM-dev, see

Issue History

Date Modified Username Field Change
2013-04-29 16:26 user313 New Issue
2013-04-29 17:40 user4 Note Added: 0002136
2013-04-29 17:44 user313 Note Added: 0002137
2013-04-29 17:45 user313 Note Added: 0002138
2013-04-29 17:48 user313 Note Edited: 0002138 View Revisions
2013-04-30 10:37 user4 Note Added: 0002139
2013-05-03 21:59 user313 Note Added: 0002158
2013-05-08 18:33 user313 Note Added: 0002183
2013-05-14 14:53 user4 Note Added: 0002196
2013-05-14 15:15 user313 Note Added: 0002197
2014-12-29 14:54 wyldckat Note Added: 0003395
2015-01-09 16:25 henry Note Added: 0003523
2015-01-09 16:25 henry Status new => resolved
2015-01-09 16:25 henry Resolution open => fixed
2015-01-09 16:25 henry Assigned To => henry