How to write udf for two gear rotating half dipped inside the oil bath.
I am trying to 3-D simulate two gear rotating inside the gearbox to predicate the oil flow inside the gear box. I am using two gear in mesh with each other with half dipped in lubricating oil inside cuboid. As the gear are rotating inside the gear box I have been suggested to use either remeshing or overset mesh. I am confused which one should I use ? and also How can i write UDF for two rotating gear in mesh with each other. I am quite new to simulation world so If anyone can suggest how to approach this problem or suggest some good and relevant tutorials