How can I write a UDF that relates the changing cross-sectional diameter of 3D irregular channel to the viscosity.
Since the flow rate is known. May be use the area-average velocity to find the changing diameter along the segment.
If you have a defined surface (interior) at each position of interest you can add up the facet areas too.
I don't have a position of interest the diameter is continuously changing and so must the viscosity.
If there is any recommendation on writing the UDF utilizing the changing x-velocity normal to the cross sectional area, to use it in the empirical viscosity equation it will be most helpful
C_U(c,t) gives you the x-velocity in the cell ...
How can I write the UDF to ass the facets area of a cross section? and can I use the same function for several points along the segment?
Have a look in the manual, there's a section on data storage and facet area is in there.
Ansys customers with active commercial software licenses can access the customer portal and submit support questions. You will need your active account number to register.