Anda di halaman 1dari 10

DynamAssist

TIME HISTORY
SPECTRAL
ANALYSIS

version 6.2

Worksheet Information

This worksheet performs a spectral analysis on a given time history.


Example time history

ORIGIN 1

Ndata 10001

fsamp 100

i 1 Ndata

t
i

i
fsamp

t 1
fi st

pulse t st fi amp if t st t fi = 1 1 amp sin

val 1 5

val

fr

val

1
2
1

1
4
6
10
32

2
2

v t a sin 2 fr t pulse t 2 3 10 a sin 2 fr t pulse t 20 25 2


1

a sin 2 fr t a sin 2 fr t a sin 2 fr t pulse t 60 80 5


3

a v t
i

Example time history

20

10

10

20

20

40

60

80

spectral analysis function

spec freq values

mx max max values min values


mean values
stdev values
N length values
for i 1 N
V values
i

1
freq

T N t
f

1
T
N

for k 1 ceil
f
k

k1
T

fmax

freq
2

100

120

nf ceil

fmax

2
2
PS
cfft V
freq

In mathcad the cfft function is defined


by

nf

PSk f

m0

c =
j

k 1

nf

PSk fk f

k 1

m0
m1

mp

nf

m2

k 1

nf

m4

PS f 2 f
k k

m0
m2

mzup

k 1

PS f 4 f
k k

m2
m4

mpc

pscsum 0
1

for j 2 nf
pscsum pscsum
j

LS

j1

PS

j1

f PS

lscsum 0
1

for j 2 nf
lscsum lscsum
j

j1

LS

for s 1 31
30 s

cf 1000 10
s

10

Use equations 3.58, 3.71 and 3.74 from


Barltrop and Adams to convert
the cfft into a single sided power
spectrum.

m0

m1

2 j k


vk e n

j1

ef

cf

sum 0
s

ef

32

cf

31

for s 1 31
for i 1 nf

sum sum f ef f ef
s

for t 1 31
1

TOBS sum
t

freq
N

mx
nf
f

fmax

m0
mp
mzup

mpc
PS

pscsum
LS

lscsum

s 1

LSi 2

cf
TOBS

spectral analysis function

Statistics from the spectral analysis function

resulta

100

110 4

100.01

3.56910-4

3.037

13.368

5.00110 3

9.99910-3

50

10

[5001, 1]

11

9.223

12

0.056

13

0.044

14

0.032

15

[10001, 1]

16

[5001, 1]

17

[10001, 1]

18

[5001, 1]

19

[31, 1]

20

[31, 1]

resulta spec fsamp a

The following values are output from the spectral analysis function:
Time history data
1
Sampling frequency
2
Number of data points
3
Overall length of signal
4
mean
5
standard deviation
6
max absolute value
Linear and power spectrum data
7
number of frequencies used to plot the spectra
8
frequency interval (and lowest frequency)
9
maximum frequency (Nyquist frequency)
10
frequencies used to plot the spectra
Power spectrum results
11
area under the power spectrum
12
mean period
13
mean zero up-crossing period
14
mean period of crests
15
power spectrum values
16
cumulative sum of the area under the power spectrum
Linear spectrum results
17
linear spectrum values
18
cumulative sum of the area under the linear spectrum
Third Octave band spectrum results
19
third octave band frequencies
20
third octave band spectrum values

Plot the spectra of the signal

Power Spectrum
300

200

100

10

20

30
Frequency

40

50

Cumulative Area Under the Power Spectrum


10

10

15

20

25
Frequency

30

35

40

45

50

Linear Spectrum
1.5

0.5

10

20

30
Frequency

40

50

Third Octave Spectrum


3

10

20

30

40

frequency

Power spectral density only

Quick calculation for psd only

Calculate the PSD values

Corresponding frequency values

psd

2
fsamp

j 1

2
cfft a

length psd
2

f
j

j 1
max t

Power Spectral Density

300

200

100

10

20

30
Frequency

Power spectral density only

40

50

Anda mungkin juga menyukai