# I need some help in applying sinusidal input voltage in ansys workbench

• 85 Views
• Last Post 07 December 2018
• Topic Is Solved
Akshay1990 posted this 07 December 2018

Hello everyone,

I am working on piezoelectric actuation of the MEMS sensor using FEM ansys workbench simulation.

I am facing a problems while applying sinusidal input voltage against time.

I have use following logic,

NTIMES=51

Volatge=80   !peak to peak voltage (-80v to 80v)

!Array of the time

*dim,soltime,array,NTIMES

soltime(1)=0.0

*do,i,2,NTIMES,1

soltime(i)=soltime(i-1)+0.02

*enddo

!array of the voltage in the form of sinusidal wave

*dim,bc_x,array,NTIMES

*do,i,1,NTIMES,1

bc_x(i)=Voltage*sin(2*3.141592654*1*soltime(i))

*enddo

*do,i,1,NTIMES,1

d,vol1,volt,bc_x(i)

solve

TIME,soltime(i)

*enddo

Any suggetions or help will be much appreciated.

Thank you all.

Kind regards,

Akshay

jj77 posted this 07 December 2018

Since it is a sinusoidal load, use harmonic analysis.

Thus define two named selections of the positive (called positive say) and negative electrodes.

Finally apply a voltage boundary condition (via commands) like this (800 harmonic voltage, and zero on negative, that is grounded).

d,positive,volt,800

d,negative,volt,0

There is a video called ansys cae 16 harmonic response analysis for details

• Liked by
Akshay1990 posted this 07 December 2018

Hello jj77,