Ansys > Fluent

How can I calculate time-average velocity in transient simulation?

(1/2) > >>

I want to get time-average velocity profiles in a transient simulation. Fluent only gives me the results for a particular time step. But how can I get the time average values for a specified delta t?

Please help.


You will need to save the data files at regular time intervals, say after every 5 time steps. Now we may at times need to find the "average solution" for the past "n" timesteps from the data files that have already been saved.

The attached User Defined Function (UDF) and Scheme utility will help you to do this.

Example Problem:
The user has iterated the case till timestep no. 200, saving files after every 10 timesteps. Now if the user wants to see the average solution for timesteps 50 to 120 then the attached Scheme utility will load the appropriate data files, call the UDF to find the average of velocity, pressure and turbulence parameters and pass them on to FLUENT. The user will have to save this new averaged data with a new name in order to avoid overwriting the last data.

To use this Scheme utility and UDF, you need to ensure that the data files are saved with appropriate name. A correct naming convention would be "string-x.dat.gz"


Here "std-" is the initial string in the file name, "00x" is the timestep number added as an extension, so that the Scheme utility can recognize the appropriate data file.The usage instructions can be found in the "scm-file.scm" file which you can read using notepad or any text editor.


I want to use scheme and utility to get average of velocity in each time step.but I have a problem that the value of all of uds is 0.
can you help me?

meanwhile I use another udf for my case to hook use dynamic mesh..

dear all
can i just interpret the udf for the calculating of time- average velocity or it must be compiled.
thank you

The UDF needs to be compiled. You can not interpret it.


[0] Message Index

[#] Next page


Go to full version