CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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
  #1
New Member
 
Gregory
Join Date: Nov 2010
Location: Dresden
Posts: 14
Rep Power: 16
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 ?

Thanks
catapult 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
Wall function for velocity? johnblund OpenFOAM 3 September 6, 2022 08:22
Velocity and Temp. jump on wall p_agoodboy FLUENT 0 March 27, 2011 22:53
how to calculate flow properties along the first grid point near to the wall kiran OpenFOAM Post-Processing 2 September 12, 2010 13: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 03:30.