CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > 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 Search this Thread Display Modes
Old   April 16, 2013, 10: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: 134
Rep Power: 13
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, 06:28
Default
  #2
Senior Member
 
M. Montero
Join Date: Mar 2009
Location: Madrid
Posts: 134
Rep Power: 13
be_inspired is on a distinguished road
Please, any suggestion?
be_inspired is offline   Reply With Quote

Old   June 10, 2019, 05:59
Default
  #3
New Member
 
HBR
Join Date: Jun 2018
Posts: 6
Rep Power: 4
landau is on a distinguished road
Did you find any solution to this problem? I am really interested on this.
I've tried with patchWave function, but I don't know how to use it properly.

Thank you in Advance,
Héctor
landau is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[CGNS] CGNS converters available mbeaudoin OpenFOAM Meshing & Mesh Conversion 137 December 14, 2018 05:20
FvMatrix coefficients shrina OpenFOAM Running, Solving & CFD 10 October 3, 2013 15:38
[blockMesh] Cyclic BC's: Possible face ordering problem? (Channel flow) sega OpenFOAM Meshing & Mesh Conversion 3 September 28, 2010 13:46
Warning 097- AB Siemens 6 November 15, 2004 05:41
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12


All times are GMT -4. The time now is 06:48.