|
[Sponsors] |
April 28, 2010, 04:43 |
calculating wall distance wallDist
|
#1 |
New Member
Volker Tritschler
Join Date: Jan 2010
Posts: 20
Rep Power: 16 |
hi all,
I need to calculate the nearest wall distance within a solver code to add a damping function. I know that there is a tool wallDist that does the job. and in order to make use of wallDist one has to include the wallDist.H file. But somehow I'm failing to call the function in the right way. I went through some code files and within the turbulence models they always put: Code:
#include "wallDist.H" wallDist y_; thanks for any help! greets, volker |
|
April 28, 2010, 05:17 |
|
#2 |
Senior Member
|
Hi volker
Please try the volScalarField y = wallDist(mesh).y(); y is the distance to the nearest wall. Junwei |
|
April 29, 2010, 08:46 |
|
#3 |
Senior Member
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 18 |
Hey Foamers!
I have a similar problem: I want to the velocity vector for the first node point to the wall. Can I use wallDist.H somehow? Cheers |
|
April 29, 2010, 09:24 |
|
#4 |
New Member
Volker Tritschler
Join Date: Jan 2010
Posts: 20
Rep Power: 16 |
I'm calling wallDist.H as Junwei suggested. but on solver-level it doesn't seem to work. actually not due to the call of wallDist.H (which seems to be correct) but due to some header file which cannot be found.
maybe someone has an idea how to get rid of that problem, or how to get the wall distance within a solver code in an accurate way? many thanks and greets volker |
|
April 29, 2010, 12:26 |
|
#5 |
Senior Member
|
||
May 10, 2010, 12:09 |
|
#6 |
Senior Member
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 19 |
I need the distance from the wall for my solver but when I compile my solver I get this error under 1.5-dev:
/usr/local/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude/wallDist.H:66:27:error: cellDistFuncs.H: No such file or directory When I search for cellDistFuncs.H, I find it in this directory: /usr/local/OpenFOAM/OpenFOAM-1.5-dev/src/meshTools/cellDist Does anybody know how to fix this? |
|
May 10, 2010, 13:15 |
|
#7 |
New Member
Volker Tritschler
Join Date: Jan 2010
Posts: 20
Rep Power: 16 |
yes, I had the same problem under 1.6.x. but couldn't manage to solve it.
maybe someone can help us! cheers, volker |
|
May 10, 2010, 14:23 |
|
#8 |
Senior Member
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 19 |
I think this is the fix for 1.6.x at least:
http://www.cfd-online.com/Forums/ope...stfuncs-h.html I'm guessing it's the same for 1.5-dev as well. |
|
May 12, 2010, 15:29 |
|
#9 |
Senior Member
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 19 |
||
April 29, 2015, 18:10 |
Streamwise distance
|
#10 |
Member
pooyan
Join Date: Nov 2011
Posts: 62
Rep Power: 15 |
How can we change some parameter based on the streamwise location? Do we have same thing as wallDist.H for streamwise variations?
|
|
May 1, 2015, 12:34 |
|
#11 | |
Member
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11 |
Quote:
I met the same problem. I copy the kOmegaSST model and rename it and then build it. It's no problem. But in my case, it's wrong like yours. Have you solved this problem? jason |
||
May 1, 2015, 12:54 |
|
#12 |
Member
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11 |
||
December 28, 2017, 12:29 |
|
#13 |
Member
Sangeet
Join Date: Jun 2017
Location: India
Posts: 43
Rep Power: 9 |
Hello,
I also need the nearest wall distance for applying wall boundary condition to Omega in kOmegaSST turbulence model, can someone help me on exactly how to get this value? Thank You |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Fluent3DMeshToFoam | simvun | OpenFOAM Meshing & Mesh Conversion | 50 | January 19, 2020 16:33 |
distance to wall in given direction | nikwin | OpenFOAM | 3 | February 16, 2012 10:27 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |
How to update polyPatchbs localPoints | liu | OpenFOAM Running, Solving & CFD | 6 | December 30, 2005 18:27 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 06:12 |