UDF for velocity

Hi all in my model, there are a wall and its shadow wall. Wall have a velocity profile so velocity magnitude is not constant along the wall. I want to set wall's x velocity values to shadow wall's x velocity value. So, I want to be wall and shadow wall's x velocities same. how can i do this with UDF. or there are a different way. please help me.