CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Mean Velocity (https://www.cfd-online.com/Forums/cfx/24931-mean-velocity.html)

Maan December 16, 2007 20:33

Mean Velocity
 
How can i calculate a mean velocity in a duct for LES simulation? Thank You

Glenn Horrocks December 17, 2007 16:30

Re: Mean Velocity
 
Hi,

You can do it as an average against time as the solver progresses with a transient statistics object, you can put this in CFX-Pre on the output tab. You can do it against length or volume in CFX-Post as post-processing.

Glenn Horrocks

Maan December 17, 2007 18:50

Re: Mean Velocity
 
Unfortunately, i didnt write transient statistics when i was setting up my problem in CFX-Pre. I have obtained the solution now! How can i find it now? Thank you for your answer.

Mann

UnderwaterAlex December 17, 2007 19:34

Re: Mean Velocity
 
You can write an expression for the quantity you want to solve in CFX-Post, and then plot it as a function of time in a Chart. This will only evaluate the expression at each timestep that you have saved as a .trn (or .bak) file though, so it won't be a true mean of the variable unless you saved that variable at every step (this is why it is beneficial to use the transient statistics instead). Also, it will take more time since Post will have to load each timestep and then evaluate the expression to create the chart. If you want the average of these values, you can export the plot data to a text file and find the mean with matlab or excel. Maybe taking the mean of a chart can be done internally in Post as well, but I have never tried. Understand this is a kludge and not a replacement for calculating the data during the run, but will work if rerunning is not an option.

Maan December 17, 2007 21:12

Re: Mean Velocity
 
But i need to plot my u-velocity as a function of vertical distance. Why do i need to plot it against time at all? Can i not plot my u-velocity against vertical distance in CFX-post and then export that plot data to excel to find mean velocity value (which is u/inlet velocity, i think). Then i can plot my mean velocity against vertical distance (Y). Is there something wrong with this method Alex? Thanks

Maan

UnderwaterAlex December 18, 2007 10:49

Re: Mean Velocity
 
Yup, that will work. As Glenn said, if you are trying to find the mean with respect to a distance, area, or volume that can be done many ways in Post. Since you replied that you didn't collect transient statistics, I thought you needed a mean with respect to time. You can also use the post functions like massflowave or areaave to find averages. Check the documentation for more help on those functions.

-Alex

Mann December 18, 2007 11:00

Re: Mean Velocity
 
Ok this should help. Thank you for your reply Alex and Glenn! BY the way Maan and Usman happens to be same person.

Regards Usman


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