UDF for fluid property determination in VOF
I want to write a UDF to calculate the fluid properties (density & viscosity) through a modified exponential equation as attached in the file and not use the regular linear interpolation at the interface in case of VOF method.
The exponent factor in the modified equation has a viscosity ratio mu1/mu2, where the viscosity of the primary fluid has to be calculated through an asymptotic power law for which I have written a separate UDF using DEFINE_PROPERTY and plan on hooking it in the primary fluid's material properties.
I also need to calculate the area-averaged volume fraction which I think can be achieved using a C_FACE_LOOP. But my concern is with hooking the modified fluid property determination UDF.
I'm not sure where I would be hooking such a UDF though, Can you suggest how to proceed?