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

how to get average velocity in a given domain

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 5, 2007, 23:51
Default how to get average velocity in a given domain
  #1
W. W. Zhang
Guest
 
Posts: n/a
In my UDF programe,I want to get average velocity in a given domain. But the given domain is not the whole simulation domain.How to get average velocity?
  Reply With Quote

Old   May 6, 2007, 13:25
Default Re: how to get average velocity in a given domain
  #2
Phil
Guest
 
Posts: n/a
You need to loop over all the cells in the domain and add all the velocities together then divide this by the total number of cells to get the average. You should look up c operators in the udf user guide and also look at examples of udf's in the user guide- most use the loop function.

The individual cell velocities are given in components(xyz) so you need to use pythagoras to get single cell velocity magnitudes.
  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
Should I be using True or Superficial Velocity for Porous Domain? siw CFX 2 November 17, 2010 08:52
[OpenFOAM] Average Velocity mrj301988 ParaView 4 June 2, 2009 00:13
Average of Y velocity components along a plane Natesal Siemens 0 September 28, 2007 13:58
maintaining a logarithmic velocity distribution Morten Andersen CFX 1 January 8, 2007 12:37
Average velocity over a section of cells Radhika Siemens 4 November 8, 2006 17:53


All times are GMT -4. The time now is 04:32.