FLUENT 6 - Utility to compute the time averaged solution from multiple data files saved at regular intervals


Suppose an unsteady calculation has been run for several timesteps and we have saved the data files at regular intervals. 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 help 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, the user needs to ensure that the data files are saved with appropriate name. A correct naming convention would be "string-x.dat.gz"

std-00020.dat.gz
std-00030.dat.gz
std-00040.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.
Please use the following link to download the zipped file, averaging-data.tar.gz. The usage instructions can be found in the "scm-file.scm" file.
<a target=_blank href="http://www.fluentusers.com/support/solutions/1272/averaging-data.tar.gz">http://www.fluentusers.com/support/solutions/1272/averaging-data.tar.gz</a>http://www.fluentusers.com/support/solutions/1272/averaging-data.tar.gz





Show Form
No comments yet. Be the first to add a comment!