How can I apply 20 kHz ultrasonic vibration in my system?

Hello, I work on my master thesis and am a novice in CAD and FEM. I try to simulate the ultrasonic metal welding process in Ansys but currently stuck with boundary conditions.
The main problem at the moment is that I cannot apply the vibration motion to my system.
In ultrasonic welding, an upper metal sheet slides along the x-axis on top of another one with a frequency of 20 kHz.
In some paper I found a formula: Ux = Xsinwt,
where X is the amplitude of vibration (27.5 micrometres). E.g., the upper sheet first goes to the left direction, then returns to the initial position, then goes to the right direction and so on.
w = 2πf , f is 20 kHz.
Welding time in the real process is about 1-2 s, but for saving computational time it could be 0,1 s in Ansys for the beginning.
So I need to apply this equation in Ansys as a displacement. Perhaps it usually applies with APDL but do not understand how.