|
[Sponsors] |
how to get average velocity in a given domain |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 5, 2007, 23:51 |
how to get average velocity in a given domain
|
#1 |
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?
|
|
May 6, 2007, 13:25 |
Re: how to get average velocity in a given domain
|
#2 |
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. |
|
|
|
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 |