Hi Pranshu
In Ansys you can enter the loading condition in form of fuction. For entering a mathematical function, click the flyout arrow in the input field (for example, Magnitude), choose Function, then enter a function, such as =1000*sin(10*time).
You can find more information on varying loading condition input on this Ansys Help Document page ( under the “Function Loads” section).
Defining Boundary Condition Magnitude (ansys.com)
Regards
Saurabh