CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Average of a UDMI in UDF (https://www.cfd-online.com/Forums/fluent/47926-average-udmi-udf.html)

milan April 15, 2008 12:37

Average of a UDMI in UDF
 
I am using an UDF to calculate the source term (which is stored as UDMI_1) in each cell in my transient problem. Now I want to calculate the volume average of the source term at the end of each time step. I know I will have to use define_execute_at_end macro, but any ideas as to how do I calculate the volume average of source.



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