CFD Online Logo CFD Online URL
Home > Forums > FLUENT

how to get average velocity in a given domain

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

LinkBack Thread Tools Display Modes
Old   May 5, 2007, 22:51
Default how to get average velocity in a given domain
W. W. Zhang
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, 12:25
Default Re: how to get average velocity in a given domain
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


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
Should I be using True or Superficial Velocity for Porous Domain? siw CFX 2 November 17, 2010 08:52
Average Velocity mrj301988 OpenFOAM Paraview & paraFoam 4 June 1, 2009 23:13
Average of Y velocity components along a plane Natesal Siemens 0 September 28, 2007 12: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 14:15.