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

Vertical distance from each cell to patch using modified yPlus utility?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 16, 2013, 09:30
Default Vertical distance from each cell to patch using modified yPlus utility?
  #1
Senior Member
 
M. Montero
Join Date: Mar 2009
Location: Madrid
Posts: 121
Rep Power: 9
be_inspired is on a distinguished road
Hi all,

The point is that I need to calculate the vertical distance ( z axis) from each cell of the mesh to the wall ( patch "terrain"). I was thinking about using yPlusRAS utility but changing wallDist ( and so, PatchWave) to calculate the distance in a different way. I have some doubts about if it is possible to do it in this way.

My second option is to use meshSearch::intersection to modify PatchWave to do what I need but I do not know what is the correct sintax of this approach.

What do you think it is the easier way to do it?
Could someone help me how to use meshSearch.intersection? Something like this?

meshSearch ms(mesh);
pointIndexHit point=ms.intersection (p1,p2);
distance=point-p1;

Thank you very much
be_inspired is offline   Reply With Quote

Old   May 7, 2013, 05:28
Default
  #2
Senior Member
 
M. Montero
Join Date: Mar 2009
Location: Madrid
Posts: 121
Rep Power: 9
be_inspired is on a distinguished road
Please, any suggestion?
be_inspired is offline   Reply With Quote

Reply

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
CGNS converters available mbeaudoin OpenFOAM Meshing & Mesh Conversion 125 July 1, 2015 21:09
FvMatrix coefficients shrina OpenFOAM Running, Solving & CFD 10 October 3, 2013 14:38
Cyclic BC's: Possible face ordering problem? (Channel flow) sega OpenFOAM Native Meshers: blockMesh 3 September 28, 2010 12:46
Warning 097- AB CD-adapco 6 November 15, 2004 05:41
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 05:18.