Simple Harmonic (SHF)

Evaluates a simple harmonic function.

Format

SHF (x, Shift, Amplitude, Frequency, Phase Shift, Average Value of Displacement)

Arguments

 
x
Real variable that specifies the independent variable.
Shift or x0
Real variable that specifies the offset in the independent variable x.
Amplitude or a
Real variable that specifies the amplitude of the harmonic function.
Frequency or
Real variable that specifies the frequency of the harmonic function. It is assumed that is in radians per unit of the independent variable unless you use a D after the value for degrees.
Phase Shift or phi
Real variable that specifies a phase shift in the harmonic function. Adams assumes that phi is in radians unless you use a D after the value.
Average Value of Displacement or b
Real variable that specifies the average value of displacement of the harmonic function.

Equation

Mathematically, SHF is defined as follows:
SHF = a*SIN(*(x-x0)-phi)+b
where:
x = Independent variable
x0 = Shift
= Frequency
phi = Phase Shift
a = Amplitude
b = Average Value of Displacement

Example

The following example illustrates the use of the SHF function:
SHF(TIME, 25D, PI, 360D, 0, 5)
The following function defines the harmonic function:
SHF = 5+PI*SIN(360D*(TIME-25D))
In the function:
x = TIME
x0 = 25 degrees
= 1 cycle (360D)
phi = 0
a = PI
b = 5