Skip to content

Algorithm to generate a shock response spectrum given an input acceleration-time data.

Notifications You must be signed in to change notification settings

frederickpek/ShockResponseSpectrum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ShockResponseSpectrum

Algorithm to generate a shock response spectrum given an input acceleration-time data.

SRS Calculation

The SRS is specifically a plot of the peak absolute accelerations of a structure against a range of hypothetical natural frequencies of interest. This gives us a the approximate worst case accelerations experienced by the structure.

We will first model the system as a Single-Degree-Of-Freedon Spring-Mass-Damnper system. We can derive a 2nd order ODE as follows.

The damping ratio is given by the equation , where is set to for large metallic bodies in SRS calculations by convention. and are the relative displacement of the structure to the base and the base displacement respectively.

The absolute acceleration of the structure is given by the following relation.

First we find by solving the 2nd order ODE with numerical methods, as we only have pairwise values of and .

The method chosen to for the numerical integration is Runga Kutta's 4th Order Method (RK4). Given the initial value problem as such;

We can solve for successive values by the following;

Where is the timestep and,

RK4 is a much more accurate numerical integration method as compared to the famouse Euler's Method. However, RK4 can only be used to solve 1st order ODEs. We need to first transform our 2nd order ODE into a form we can work with.

State-Space Representation are mathematical models of physical systems as a set of input, output and state variables related by 1st order differentials.

We let and be the the relative displacement and relative velocities, they are the minimum number of states required to quantify the 2nd order ODE. We then represent the dynamics (derivatives) of these states in terms of the states themselves, as well as the input .

The State-Space Model can be represented in matrix form.

Define , we can get that our state-space model follows , the exact form we are able to apply RK4 on. With initual conditions of being , seeing as how the displacements and velocities of both the base and structure is . We can find by applying .

Employing RK4 allows us to evaluate for pairwise values of and . We're interested in finding . Going back to the equation , we just need to find and add it to. Again, we need to use a numerical method to find calculate the derivative. This would be done by taking successive differences between and , keeping in mind that the the size of our array would be less than the array. Repeating for the 2nd derivative, lastly, summing and gives us . We can now store the maximum value of against the value used to calculate this absolute acceleration. We repeat this over the range of natural frequencies of interest. The resulting plot of the peak values against gives us the SRS.

A sample implementation of the above described algorithm is given below.

About

Algorithm to generate a shock response spectrum given an input acceleration-time data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published