|
[Sponsors] |
August 3, 2009, 07:17 |
Unit normal vector of nearest wall
|
#1 |
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23 |
Hello,
I'm looking to implement a wall lubrication force for multiphase flow. For this I need the unit vector normal of the nearest wall. I found reflectionVector, and that gives the unit vector normal at the wall. Is there a function to give the unit vector normal of the nearest wall?
__________________
Laurence R. McGlashan :: Website |
|
August 4, 2009, 03:40 |
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Yes, this is precisely what you need.
It is used in wall reflection terms in Reynolds stress transport turbulence models. Enjoy, Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
August 4, 2009, 05:52 |
|
#3 |
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23 |
Ah, wallDistReflection! I somehow missed the fact that it inherits from reflectionVector in the class reference. Thank you for the gentle nudge in the right direction.
__________________
Laurence R. McGlashan :: Website |
|
May 13, 2014, 18:06 |
|
#4 |
Member
CHARLES
Join Date: May 2013
Posts: 46
Rep Power: 13 |
Hello,
I know that wallDistReflection is what I need to use but I'm not sure how I would use it. Can you please give me an example of how you would implement it in the code? Thanks! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Fluent3DMeshToFoam | simvun | OpenFOAM Meshing & Mesh Conversion | 50 | January 19, 2020 16:33 |
UDF to Access Wall Normal Concentration Gradient | Daniel Tanner | Fluent UDF and Scheme Programming | 4 | February 18, 2015 15:35 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |
NACA0012 geometry/design software needed | Franny | Main CFD Forum | 13 | July 7, 2007 16:57 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 06:12 |