« Last post by boa7128 on December 08, 2016, 10:33:55 AM »
I can not download your attachments, could you please send it to me? firstname.lastname@example.org. Thx very very much!
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.
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.