I am trying to write a UDF that relates the changing cross-sectional diameter of 3D irregular channel to the viscosity.
To find the diameter I thought about finding the area of a cross section and find the diameter from there. Thus I need a UDF to add the facets area of a cross section of the channel.
Also can I use the same function to relate several cross sections to the following empirical equation to have changing viscosity along the segment? viscosity= 0.022* exp(Diameter^0.3)