I am trying to write a UDF that executes at the end of convergence to calculate average wall temperature along the length for flow in ducts.

For example, consider a rectangular duct, wherein a constant heat flux is provided at all faces around the periphery with flow along z direction. I want to calculate Tavg at wall where heat flux applied along z direction.

Mathematically it can be defined as integral [T(x,y)dxdy]/integral[dxdy] at each z

May someone help in this regard? I am not getting which already existing Macro/Functions to use.

More Deewakar Sharma's questions See All
Similar questions and discussions