SHF

Your Ad Here


The SHF function evaluates a simple harmonic function. The following equation defines SHF:

SHF = a*sin(*(x-x0)-phi)+b

Format

SHF (x, x0, a, w, phi, b)

Arguments

x The independent variable in the function. It may be any valid expression. For example, if the independent variable in the function is twice the current simulation time, x is the system variable 2*TIME.
x0 The offset in the independent variable x.
a The amplitude of the harmonic function.
The frequency of the harmonic function. ADAMS/Solver (FORTRAN) assumes is in radians per unit of the independent variable. Conversion to degrees per unit of the independent is achieved by appending a D after the number specifying .
phi A phase shift in the harmonic function. ADAMS/Solver (FORTRAN) assumes phi is in radians unless you use a D after the value.
b The average value of displacement of the harmonic function.

Examples

SHF(TIME, 25D, PI, 360D, 0, 5)

This function uses SHF to define the harmonic function:

SHF = 5+PI*sin(360D*(time-25D))

The motion has a shift of 25 degrees, an amplitude of PI, a frequency of 1 cycle (360D) per time unit, zero-phase shift, and an average value of displacement of 5 units.

Your Ad Here