CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF using for an averaging parameter (https://www.cfd-online.com/Forums/fluent-udf/149852-udf-using-averaging-parameter.html)

masoud12321 March 10, 2015 01:22

UDF using for an averaging parameter
 
hi
I'm trying to write a udf which gives me average-time of parameters and rms (root mean square) like velocity and tempreture over a specific time priode in all domain. and export the result to an exel file.
If this is possible I would greatly appreciate some information.
thank you

`e` March 10, 2015 06:25

You could use a UDF at the end of each time step using the DEFINE_EXECUTE_AT_END(name) macro to save the current variable (velocity, temperature etc) to a data file using comma separated values. Then import this data file into Excel for data processing (time averaging and rms).


All times are GMT -4. The time now is 12:50.