The SHF function evaluates a simple harmonic function. The following equation defines SHF:
SHF = a*sin(
*(x-x0)-phi)+b
SHF (x, x0, a, w, phi, b)
| 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
| |
| 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. |
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.