Académique Documents
Professionnel Documents
Culture Documents
densities
Introduction
This document demonstrates some properties of the frequency spectra and spectral densities and
how they related to their corresponding signals in the time domain.
Spectra
This section begins by explaining how periodic sine waves can be summed and shown in the
frequency domain. It then continues to describe how impulse response functions and random
vibrations appear in the frequency domain and how they compare to their time domain
counterparts.
Properties of sine wave
A sine wave can be defined by:
() ()
Equation 1
Where is the amplitude of the sine wave, is time and is the angular frequency which is related
to frequency in Hz by:
Equation 2
Where the period of the signal in seconds is defined as:
Equation 3
This example will consider the resulting spectra of two sine waves with frequencies of 2.5 Hz and 4.0
Hz. The sine wave parameters are shown in Table 1, and are plotted in Figure 1 between 0 and 10
seconds. It is important to note that the total time period used is an integer multiple of the sine
wave period. As such, if it was desired to extend the signal, it can simply be appended onto the end.
(Hz) (s)
1 2.5 0.4
2 4.0 0.25
Table 1 Sine wave parameters.
Figure 1 - Sine waves using parameters from Table 1.
Some properties can be calculated for the sine wave. The mean can be defined as:
Equation 4
For a sign wave that oscillates around the zero position, the mean will always be zero so long as the
signal length is an integer multiple of the sine wave period. A more appropriate measure is the root
mean square (RMS) which is defined as:
)
Equation 5
Another common parameter is the power of a signal which is defined as:
)
Equation 6
It can be seen that RMS is the square root of the power. As the signals are harmonic, i.e. repeat
exactly after a certain time period, these properties are constant, irrespective of the signal length.
If two sine waves are summed:
()
)
Equation 7
The period of the combined signal is now the minimum common multiple of the individual sine wave
periods. In this example this is 2 seconds, i.e. 4 oscillations of
and 8 oscillations of
. In this
case, the power is simply the sum of the individual waves.
The properties for the signals in this example are shown in Table 2.
0 1 2 3 4 5 6 7 8 9 10
-2
-1
0
1
2
Time (s)
A
m
p
l
i
t
u
d
e
2.5 Hz Sine Wave
0 1 2 3 4 5 6 7 8 9 10
-2
-1
0
1
2
A
m
p
l
i
t
u
d
e
Time (s)
4.0 Hz Sine Wave
(s)
0.4 0
0.5
0.25 0
2
2 0
.5
2.5
Table 2 Sine wave properties.
Steady state sine wave spectra
The sum of the sine waves is shown in the top plot of Figure 2. In this case it is difficult to distinguish
the properties of each sine wave. To aid in this the signal can be shown in the frequency domain
using a type of Discrete Fourier Transform (DFT), know as the Fast Fourier Transform (FFT). This is a
complex valued transform that contains information about each individual sine waves frequency,
amplitude and phase. The transform essentially decomposes the signal into individual sine waves at
discrete frequencies. Each sine wave can be summed to recreate the original signal. The bottom plot
of Figure 2 shows the magnitude FFT of the summed sine waves with a time step of 0.01 s and a
maximum time of 10 seconds. It is clear that there are two sine waves at 2.5 Hz and 4 Hz, with
amplitudes of 1 and 2 respectively.
Figure 2 Summed sine waves using parameters from Table 1 (top) and their corresponding frequency domain
representation (bottom). dt=0.01s, tmax=10s.
As the FFT can be used to recreate the original time history, it should be obvious that some of the
properties of the time history signal effect the FFT result; namely the time step,
, and the maximum time,
Equation 8
0 1 2 3 4 5 6 7 8 9 10
-4
-2
0
2
4
Time (s)
A
m
p
l
i
t
u
d
e
Time Domain
0 5 10 15 20 25 30 35 40 45 50
0
0.5
1
1.5
2
2.5
Frequency (Hz)
A
m
p
l
i
t
u
d
e
Frequency Domain
Equation 9
For example, the time signal is now sampled with and
and
Equation 10
Where is the damping ratio. As damping is small it is assumed that the damped natural frequency
equals the undamped natural frequency.
Figure 5 shows the time history response with and
corresponding frequency
spectrum with and
corresponding frequency
spectrum with and
corresponding frequency
spectrum with and
2 0 0.5 0.25
10 0 0.5 0.25
Table 3 Pseudo random properties.
Figure 8 shows the pseudo random signal for and
Equation 11
Which can be rewritten as:
Equation 12
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
-4
-2
0
2
4
Time (s)
A
m
p
l
i
t
u
d
e
Time Domain
0 5 10 15 20 25 30 35 40 45 50
0
0.5
1
1.5
Frequency (Hz)
A
m
p
l
i
t
u
d
e
Frequency Domain
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
0
0.5
1
1.5
Frequency (Hz)
A
m
p
l
i
t
u
d
e
Frequency Domain
In this case,
.
Figure 8 Random response using properties from Table 3 (top) and its corresponding frequency domain representation
(bottom). dt=0.01s, tmax=10s.
0 1 2 3 4 5 6 7 8 9 10
-2
-1
0
1
2
Time (s)
A
m
p
l
i
t
u
d
e
Time Domain
0 5 10 15 20 25 30 35 40 45 50
0
0.05
0.1
Frequency (Hz)
A
m
p
l
i
t
u
d
e
Frequency Domain
Figure 9 Random response using properties from Table 3 (top) and its corresponding frequency domain representation
(bottom). dt=0.01s, tmax=2s.
Spectral densities
This section begins by explaining the characteristics of the spectral densities of sine waves, impulse
response signals and random signals and how they compare to their time domain counterparts.
This section specifically deals with power spectral densities (PSDs) which are used to represent
random signals and are used to calculate the RMS of the signal. A one-sided PSD can be defined as
defined as:
()
|()|
Equation 13
Where () is the single sided DFT of (). Using the power spectrum, the total power can be
defined as the numeric integral of the PSD:
()
Equation 14
And the RMS canbe defined as:
Equation 15
Steady state sine wave spectra
The top plot in Figure 10 shows the time history of the same summed sine waves as in Figure 2,
however this time the bottom plot shows the PSD. It should be noticed that the amplitude is now
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
-2
-1
0
1
2
Time (s)
A
m
p
l
i
t
u
d
e
Time Domain
0 5 10 15 20 25 30 35 40 45 50
0
0.05
0.1
Frequency (Hz)
A
m
p
l
i
t
u
d
e
Frequency Domain
units squared per Hz and the amplitude is no longer a discrete frequency point as it is a density.
Strictly speaking, the data points should be represented as a histogram, but it is commonly shown as
a line graph. As with the FFT, changing changes
()
||
()
which is the
same as the value reported in Table 2. So although the amplitude of the PSD may be high, sensible
values of power and RMS are achieved.
Figure 12 shows the time history and resulting PSD for the two summed sine waves for a 2 s time
window. In this case the amplitude of the peaks has significantly reduced. This characteristic is not
the same as a FFT where the amplitude of the spectrum stays constant for periodic signals. For a
periodic signal, so long as the time window is a multiple of the period, the power of the signal is
constant, regardless of the length of the time window. This fact must be replicated in the PSD. As
the time window reduced, so did the frequency resolution. The power in the signal, and therefore
the area under the graph, must stay constant, therefore the amplitude must decrease.
Figure 10 Summed sine waves using parameters from Table 1 (top) and their corresponding PSD (bottom). dt=0.01s,
tmax=10s.
Figure 11 Summed sine waves using parameters from Table 1 (top) and their corresponding PSD (bottom). dt=0.1s,
tmax=10s.
0 1 2 3 4 5 6 7 8 9 10
-4
-2
0
2
4
Time (s)
A
m
p
l
i
t
u
d
e
2
/
H
z
Time Domain
0 5 10 15 20 25 30 35 40 45 50
0
5
10
15
20
Frequency (Hz)
A
m
p
l
i
t
u
d
e
2
/
H
z
PSD
0 1 2 3 4 5 6 7 8 9 10
-4
-2
0
2
4
Time (s)
A
m
p
l
i
t
u
d
e
Time Domain
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
0
5
10
15
20
Frequency (Hz)
A
m
p
l
i
t
u
d
e
2
/
H
z
PSD
Figure 12 Summed sine waves using parameters from Table 1 (top) and their corresponding PSD (middle and bottom).
The bottom plot is a cropped region between 0 and 5 Hz. dt=0.01s, tmax=2s.
Impulse response spectra
As it has been shown that only changes the maximum frequency, 0.01 s will be used in the rest of
the PSD examples.
Figure 13 and Figure 14 show the impulse response for a 10 s and 2 s window respectively. In this
case the spectral densities are different, and because the signal is a transient (i.e. non-periodic), the
power and RMS of the two signals is not the same. As a result, the area under the PSD is not the
same, which is different to the previous summed sine wave example. In this case, the signal with the
2 s window has a larger power and RMS value.
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
-4
-2
0
2
4
Time (s)
A
m
p
l
i
t
u
d
e
Time Domain
0 5 10 15 20 25 30 35 40 45 50
0
2
4
Frequency (Hz)
A
m
p
l
i
t
u
d
e
2
/
H
z
PSD
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
0
5
10
Frequency (Hz)
A
m
p
l
i
t
u
d
e
2
/
H
z
PSD
Figure 13 Impulse response of summed sine waves using parameters from Table 1 (top) and their corresponding PSD
(bottom). dt=0.01s, tmax=10s.
0 1 2 3 4 5 6 7 8 9 10
-4
-2
0
2
4
Time (s)
A
m
p
l
i
t
u
d
e
Time Domain
0 5 10 15 20 25 30 35 40 45 50
0
0.5
1
1.5
2
Frequency (Hz)
A
m
p
l
i
t
u
d
e
2
/
H
z
PSD
Figure 14 Impulse response of summed sine waves using parameters from Table 1 (top) and their corresponding PSD
(bottom). dt=0.01s, tmax=2s.
Random response spectra
As with the FFT example, a pseudo random signal is created with equal power at all frequencies. As
power is the square of the RMS, the RMS in the time domain should is constant with an amplitude of
0.5.
The pseudo random signal, and corresponding PSDs, for a 10 s and a 2 s time window are shown in
Figure 15 and Figure 16 respectively. In this case, the PSDs for both signals have the same
amplitude, which is the opposite to the FFT spectra in Figure 8 and Figure 9. This is because
although the signals are not periodic, the properties are time invariant. As such, a PSD will have the
same amplitude, regardless of the length of the time window. In this case it is easy to calculate the
power and RMS of the signal. It is simply and respectively, which
matches Table 3.
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
-4
-2
0
2
4
Time (s)
A
m
p
l
i
t
u
d
e
Time Domain
0 5 10 15 20 25 30 35 40 45 50
0
1
2
Frequency (Hz)
A
m
p
l
i
t
u
d
e
2
/
H
z
PSD
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
0
1
2
Frequency (Hz)
A
m
p
l
i
t
u
d
e
2
/
H
z
PSD
Figure 15 Random response using properties from Table 3 (top) and its corresponding PSD (bottom). dt=0.01s,
tmax=10s.
0 1 2 3 4 5 6 7 8 9 10
-2
-1
0
1
2
Time (s)
A
m
p
l
i
t
u
d
e
Time Domain
0 5 10 15 20 25 30 35 40 45 50
0
0.005
0.01
Frequency (Hz)
A
m
p
l
i
t
u
d
e
2
/
H
z
PSD
Figure 16 Random response using properties from Table 3 (top) and its corresponding PSD (bottom). dt=0.01s,
tmax=2s.
Conclusions
From the examples shown here it can be seen that:
The DFT is a good method to display the frequency content of periodic signals, so long as the
time window as a whole number multiplier of the period. The amplitude of the DFT is
constant, regardless of the time window size and time step.
A spectral density is not a good method to display the frequency content of a periodic signal.
The amplitude of the spectral density is a function of the length of the time window.
Neither the DFT or spectral density give a good estimation of an impulse response function
as the amplitude of both methods are dependent on the length of the time window.
Although not shown here, these responses can be normalised by calculating a transfer
function between the impulse response, and the impulse. This is the same for any non-
deterministic, time varying excitation/response.
The DFT is not a good method of displaying the frequency content of a random signal. The
amplitude of the DFT is a function of the length of the time window.
A spectral density is a good method of displaying the frequency content of a random signal,
so long as the properties of the random response are deterministic and time invariant. In
this case, the amplitude of the spectral density is constant, regardless of the time window
length.
PSDs can be used to simply calculate the total power of the signal and RMS by integration.
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
-2
-1
0
1
2
Time (s)
A
m
p
l
i
t
u
d
e
Time Domain
0 5 10 15 20 25 30 35 40 45 50
0
0.005
0.01
Frequency (Hz)
A
m
p
l
i
t
u
d
e
2
/
H
z
PSD
Real example
This example shows two simulated stress PSDs from two locations on a flare stack.
The top plot in Figure 17 shows the stress PSD at a location of relatively low stress, but many
vibrations modes contribute to the response, which is shown by the numerous peaks in the PSD.
The middle plot shows the cumulative integration of the PSD, which shows the increase in power as
the frequency increases. The bottom plot shows the cumulative RMS of the PSD. These plots allow
you to see how much the peaks in the PSD spectrum contribute to the response. There are clear
steps as the peaks are passed. The total RMS is approximately 0.28 MPa.
Figure 17 Stress PSD (top), cumulative stress power (middle) and cumulative RMS stress (bottom) for low stress
location.
Figure 18 shows the response at another node. This node reported the highest stress and minimum
fatigue life in the model. In this case the peak in the PSD spectrum has a large amplitude, which may
initially give concern. However if the cumulative RMS plot is considered, it is clear that the response
is due to the peak between 2 and 3 Hz, and due to the peaks being narrow, the total RMS response
is only approximately 1.6 MPa.
0 1 2 3 4 5 6 7 8 9 10
0
0.2
0.4
Frequency (Hz)
M
P
a
2
/
H
z
PSD
0 1 2 3 4 5 6 7 8 9 10
0
0.05
0.1
Frequency (Hz)
M
P
a
2
Cumulative power spectrum
0 1 2 3 4 5 6 7 8 9 10
0
0.2
0.4
Frequency (Hz)
M
P
a
Cumulative RMS spectrum
Figure 18 Stress PSD (top), cumulative stress power (middle) and cumulative RMS stress (bottom) for high stress
location.
0 1 2 3 4 5 6 7 8 9 10
0
10
20
Frequency (Hz)
M
P
a
2
/
H
z
PSD
0 1 2 3 4 5 6 7 8 9 10
0
2
4
Frequency (Hz)
M
P
a
2
Cumulative power spectrum
0 1 2 3 4 5 6 7 8 9 10
0
1
2
Frequency (Hz)
M
P
a
Cumulative RMS spectrum