First Steps in Vibration Analysis Using ANSYS
First Steps in Vibration Analysis Using ANSYS
Ulrike Zwiers
Spring 2007
Referring to the two-mass-spring system sketched below, the basic steps in performing
a vibration analysis with ANSYS are outlined. To validate the results of the modal
analysis, the natural frequencies, amplitude ratios and the particular solution are also
computed analytically. Furthermore, ANSYS is used to determine the system response
resulting from an harmonic excitation.
m1 m2
k1 k2 k3
1
1 EQUATIONS OF MOTION AND CLOSED-FORM SOLUTION 2
m1 m2
k1 x1 k2 (x2 − x1 ) k2 (x2 − x1 ) k3 x2
x1 x2
To simplify the further notation, the masses and stiffness coefficients are assumed in
the form
m2 = m1 = m , k3 = k1 = k , and k2 = k1 /5 = k/5 .
Consequently, the mass and stiffness matrices may be written as
1 0 k 6 −1
M =m and K = ,
0 1 5 −1 6
respectively.
As for the analytical solution, an ansatz function of the form x(t) = x̂est may be chosen.
However, since the considered system is undamped, it is known in advance that the two
roots s1 and s2 will turn out to be purely imaginary. Thus, one may express the solution
directly in terms of the natural frequency ω as x(t) = x̂eiωt . Substituting this ansatz
into the matrix equation of motion yields
(K − ω 2 M )x̂ = 0 .
To obtain solutions other than the trivial solution x̂ = 0, the determinant of the matrix
of the coefficients must vanish, i.e., det(K − ω 2 M ) = 0, which gives for the problem at
hand the characteristic equation
2
6 1
k − ω m − k2 = 0 .
2
5 25
This equation is quadratic in ω 2 and may therefore be solved, for example, by using
the so-called pq-formula resulting in
k 7k
ω12 = and ω22 = .
m 5m
The amplitude vector x̂ is not uniquely defined, but the ratios of the amplitude com-
ponents corresponding to the frequencies ω1 and ω2 can be determined, namely,
x̂1 x̂1
=1 and = −1 ,
x̂2 x̂2
2 MODAL ANALYSIS USING ANSYS 3
respectively. Thus, one mode represents an in-phase vibration, while the other one
represents an out-of-phase vibration.
As an example for forced vibrations, the first mass m1 is now assumed to be harmoni-
cally excited in horizontal direction by an external force of the form
F = F̂ sin Ωt ,
where Ω represents the excitation frequency. The governing equations of motion may
now be expressed in matrix notation as
M ẍ + Kx = f sin Ωt ,
with
F̂
f= .
0
x = x̂ sin Ωt
(K − Ω2 M )x̂ = f .
k
5
F̂
x̂2 = 2 .
6 k2
5
k − Ω2 m − 25
and several hundred to thousand eigenvectors are often required as the frequency range
of interest for the modal analysis increases. Several algorithms for solving such large
eigenvalue problems have been implemented in ANSYS. Of course, the modal analysis
of simple problems like the two-mass-spring system considered here does not require
any special solution method, thus, the default setting (Block-Lanczos algorithm) may
be used, while for more complex problems, other algorithms might be more suitable.
However, in any case, the number of modes to extract must be specified, which is also
done by the command MODOPT.
The ANSYS-element type MASS21 models a point mass in space, while simple spring-
damper-combinations are represented by the element type COMBIN14. The mass and
stiffness parameters are to be input as Real Constants.
The spring lengths can be arbitrarily selected since they are used only to define the
spring direction.
After successful computation, the results of a modal analysis may be reviewed in the
General Postprocessor (\post1). The natural frequencies are listed in the Results Sum-
mary SET,LIST, where each set is associated with a natural mode. For a certain mode
(selected by using the SET-command), the corresponding mode shape may be animated
(via the ANMODE-command).
The unit of frequencies computed by ANSYS is Hz specifying the number of cycles per
second, whereas the frequencies determined in the previous section represent angular
frequencies specifying the number of radians per second. Since there are 2π radians in
one revolution, the frequency fn and the angular frequency ωn are related through
ωn
fn = .
2π
Thus, for validation of the results, it is essential to designate frequencies in the correct
unit.
The enclosed APDL-input file modal schwingerkette.txt documents the modal analy-
sis of the two-mass-spring system at hand.
4 Reference Results
The results obtained from the modal analysis and the harmonic analysis performed in
ANSYS are validated by comparing them against the corresponding analytical solutions
derived in the first section. To this end, the following parameters are chosen
It is pointed out that the units of these parameters can be arbitrarily chosen as long as
they are consistent.
The two natural angular frequencies of the considered system are ω1 = 14.1421 [s−1 ]
and ω2 = 16.7332 [s−1 ], which agrees perfectly with the natural frequencies computed
by ANSYS: f1 = 2.2508 [Hz] and f2 = 2.6632 [Hz]. These values are also confirmed by
the amplitude-versus-frequency plot shown in Figure 3.
As a further validation, the amplitudes x̂1 and x̂2 at a certain excitation frequency
should be compared. At Ω = 2.4 [Hz], for example, both the analytical solution and
the ANSYS computation yield concordantly x̂1 = −0.0875 [m] and x̂2 = −0.2776 [m].