CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

I want to the velocity vector for the first node point to the wall. Can I use wallDis

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

LinkBack Thread Tools Display Modes
Old   January 13, 2012, 09:25
Default I want to the velocity vector for the first node point to the wall. Can I use wallDis
New Member
Join Date: Nov 2010
Location: Dresden
Posts: 14
Rep Power: 9
catapult is on a distinguished road
Hi there

I have a particle P(xp,yp,zp) somewhere in the mesh. I need the index of the nearest wall cell to my point P so I can calculate the velocity vector of the first node point to the wall. I first thought of using the library "wallDist.H". It unfortunately only returns the distance of the closest cell at the wall and not the index of this latter.

in other words:
//create field containg wall distances
volScalarField wd = wallDist(mesh)

//create field of the indexes of the closest wall cells
volField<label> = wd.labelOfTheWallCells() <- how do I get this?

Is there any such functions already implemented in OF? If not, what could I do to achieve this ?

catapult is offline   Reply With Quote


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
Velocity and Temp. jump on wall p_agoodboy FLUENT 0 March 27, 2011 21:53
Wall function for velocity? johnblund OpenFOAM 0 March 10, 2011 09:50
how to calculate flow properties along the first grid point near to the wall kiran OpenFOAM Post-Processing 2 September 12, 2010 12:59
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 06:13
Wall functions Abhijit Tilak Main CFD Forum 6 February 5, 1999 02:16

All times are GMT -4. The time now is 12:44.