Welcome to the C++ Version of Adams/Solver > C++ Functions > FORCOS

www.kxcad.net Home > CAE Index > MSC Software Index > Adams MD R2 Index

The FORCOS function evaluates a Fourier Cosine series at a user-specified value x. The x0, a0, a1,...,a30 are parameters used to define the constants for the Fourier Cosine series.
FORCOS (x, x0, w, a0, a0, a1,...,a30)
A real variable that specifies the independent variable. For example, if the independent variable in the function is time, x is the system variable TIME.
A real variable that specifies the fundamental frequency of the series. Adams/Solver (C++) assumes w is in radians per unit of the independent variable unless you use a D after the value.
Extended Definition
The Fourier Cosine series is defined:
where the function are defined as:
The index j has a range from 1 to n, where n is the number of terms in the series.
, FUNCTION=FORCOS(TIME, 0, 360D, 1, 2, 3, 4)
This MOTION statement defines a harmonic motion as a function of time. The motion has no shift, has a fundamental frequency of 1 cycle (360D) per time unit, has a constant value of 1.0. The function defined is:
FORCOS = 1+2*COS(1*360D*TIME)
The curve is shown next.
Curve of a Harmonic Motion Defined by FORCOS