CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

Obtaining components of the normal vector in a wall

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 17, 2015, 10:14
Default Obtaining components of the normal vector in a wall
  #1
xab
New Member
 
xabi
Join Date: Apr 2015
Posts: 4
Rep Power: 3
xab is on a distinguished road
Is there any way to know the components of normal vector in a boundary wall in order to use it in a custom field function?

Thank you in advance
Xabi
xab is offline   Reply With Quote

Old   April 17, 2015, 19:41
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 792
Rep Power: 9
`e` is on a distinguished road
Yes, use the f_normal[i] variable. Have a read of the example on reflecting particles from a boundary in the UDF Manual for usage.
`e` is offline   Reply With Quote

Old   April 21, 2015, 02:24
Default
  #3
xab
New Member
 
xabi
Join Date: Apr 2015
Posts: 4
Rep Power: 3
xab is on a distinguished road
Thanks for your reply,

I'll try this way.
I don't have any experience working with UDFs so maybe has no sense what I am saying but I need to define the function I want to calculate with this UDF before calculating the solution or this UDF is just to allow me using the f_normal[i] variable?

Here is my case if it clears up a little bit:

I am simulating leakage through the tips of a gear pump but I am simulating just one tooth. I have imposed periodic conditions to the inlet and outlet so when calculating the solution the static pressure that gives fluent is without the pressure gradient and I need to create a custom field function to obtain the real pressure.
What I want to calculate is the pressure and viscous forces but related to the real pressure (fluent gives the forces related to the static pressure) so I need to integrate my variable and here is where I need the normal vector. My question is, do I need to define this integral in the UDF or just need this UDF to acces the normal vector? Is there any other way to calculate this force more easyly?

Thanks a lot
Xabi
xab 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
Divergence in AMG solver! marina FLUENT 15 August 9, 2016 20:15
Difficulty In Setting Boundary Conditions Moinul Haque CFX 4 November 25, 2014 18:30
Radiation interface hinca CFX 15 January 26, 2014 18:11
[ICEM] Export ICEM mesh to Gambit / Fluent romekr ANSYS Meshing & Geometry 1 November 26, 2011 13:11
How to find the components of normal vector coul FLUENT 0 July 30, 2004 12:13


All times are GMT -4. The time now is 13:24.