SHF

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 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 assumes phi is in radians unless you use a D after the value.
b
The average value of displacement of the harmonic function.

Examples

MOTION/1, JOINT=21, TRANSLATION
, FUNCTION=SHF(TIME, 25D, PI, 360D, 0, 5)
This MOTION statement uses SHF to define the harmonic function:
SHF = 5+PI*sin(360D*(time-25D))
The motion has a shift of 25 degrees, has an amplitude of PI, has a frequency of 1 cycle (360D) per time unit, has zero phase shift, and has an average value of displacement of 5 units.
See other General available.