3-D Oscillator with Two Masses, Coupled by Elastic Springs
? 2001 Harald Kammerer, GERB Schwingungsisolierungen, Germany www.gerb.com
Introduction
This worksheet shows the calculation of the motion of a system with 12 degrees of freedom excited by ground motion.
The following Maple techniques are highlighted:
Problem Description
Consider a system of two masses. Both masses are described by rectangular prisms. The support for the two masses are elastic. The ground motion is known and is stored in the file "motion.dat". Note: The file "motion.dat" includes four columns. First the discrete time steps, second the values of the ground acceleration in x-direction, third in y-direction and fourth in z-direction.
Contents
The lower mass and the lower spring in general are described by the index "u", the upper ones by the index "o".
The coordinates 1, 2 and 3 are the translation of the lower mass in x-, y- and z-direction, 4, 5 and 6 the corresponding rotations. The coordinates 7, 8 and 9 are the translations of the upper mass, 10, 11 and 12 the rotations.
Initialization
Description of the Mechanical Model
Dimensions of the Bodies
x-direction: lu; lo [m]
y-direction: bu; bo [m]
z-direction: hu; ho [m]
mass: mu,mo [kg]
lower mass
End points of the diagonal
upper mass
distance between the centers of gravity
this is necessary to know for the animation later
General Spring Characteristics
The general characteristics in the horizontal and vertical direction for the lower and the upper springs are given. This general data can be modified in the following subsection for each individual spring.
coh/cuh: stiffness of the upper/lower spring in horizontal direction [N/m]
cov/cuv: stiffness of the upper/lower spring in vertical direction [N/m]
lower springs
upper springs
Position of the Bodies Supporting Springs and their Individual Characteristics
all positions in metres (m), the stiffness of the individual springs can be manipulated in the following (see e.g. 1. spring of lower mass)
a[ i, j ]: position of the lower spring i in direction j cu[ i, j ]: stiffness of the lower spring i in direction j
Spring 1
Note: The stiffness are varied from the general stiffness defined previously.
Spring 2
Notice that we assume the stiffness (in the z direction) of this spring is significantly different from that of the others. This could be caused by damage to the spring.
Spring 3
Spring 4
Overall Parameters
Here, we will display the two sets of parameters in matrix form
b[ i, j ]: position of the upper spring i in direction j co[ i, j ]: position of the upper spring i in direction j bzq||i: z position of the lower mass support
Notice that the upper springs here need additional information on the position of the lower mass support.
Calculate the System Matrices
System Stiffness
deformation of the lower springs
Here, we describe the deformation of the lower springs in terms of the position and orientation of the lower body.
q1, q2,...,q6 are the degrees of freedom (q1, q2, q3 being the linear motion in x, y, z direction respectively and q4, q5 and q6 being the rotation about the x, y, z axis) of the lower body.
u1, u2 and u3 are the spring displacement in the x, y and z direction respectively.
deformation of the upper springs
For the upper springs, the deformation is described in terms of the position and orientation of the upper and lower body.
p1, p2,...,p6 are the degrees of freedom of the upper body (similar to the q defined for the lower body).
o1, o2 and o3 are the spring displacement in the x, y, and z direction respectively.
general form of stiffness matrix for individual spring directions
Using the above deformation equations, we can extract the general form of the spring stiffness components for each direction from the potential energy according to [1] cu1, cu2, cu3: 12 x 12 stiffness matrices for the lower springs in x, y, and z direction respectively. co1, co2, co3: 12 x 12 stiffness matrices for the upper springs in x, y, and z direction respectively.
stiffness matrix for every spring in every direction
With the above general form of the stiffness matrices in the x, y, and z direction, we can generate the stiffness matrix associated with each spring by substituting the parameters corresponding to each of the springs.
The follow index notion are used for the resulting table of stiffness matrices:
first index: 1, 2, 3 and 4 for lower springs; 5, 6, 7 and 8 for upper springs,
second index: for direction x, y and z
overall stiffness matrix
Finally, to get the overall system stiffness matrix, we add up all of the individual stiffness matrices.
System Mass
matrix of one body
To obtain the system mass matrix, we first define the mass matrix for one body.
general mass matrix
Then we combine them to get the overall system mass matrix.
System Matrix
Finally, the system matrix is the product of the inverse of the mass matrix and the system stiffness matrix.
Eigenvalue Problem Solution
With the system matrix, we can now look at the eigenvalue problem.
Eigenvalues and Eigenmodes
First, we compute the eigenvalues and eigenvectors of the system matrix using the Eigenvectors procedure from the LinearAlgebra package.
Here, we split the eigenvector matrix into individual vectors so that we can sort them based on the associated eigenvalues.
Sorting with respect to eigenvalues:
Eigenfrequencies
We can also extract the eigenfrequencies from the eigenvalues.
Modal Matrix
We obtain the model matrix by normalizing the eigenvectors.
Modal Mass and Modal Stiffness
Numeric Solution of the Equation of Motion
Here, we will obtain the numeric solution to the equation of motion using the NEWMARK algorithm [2]
Time-History of the Ground Motion
Reading in data from file
First, we will read in the ground motion from the data file motion.dat.
Recall that the data is listed in 4 columns:
1. time, 2. x-acceleration, 3. y-acceleration, 4. z-acceleration
Extract the time step from the data
Getting the number of samples
Setting the total time
Setting up the discrete time variables for use later.
Assigning the direction data into separate variables.
For the animation later, the ground acceleration is numerically integrated twice to get the ground displacement. For the numeric integration, it is assumed that the acceleration between two discrete time steps is linear. Additionally, we assume that the velocities and the displacement at the beginning of the time period is zero.
Plotting the input data
Setting up the line colour.
Ground Acceleration
x - direction
y - direction
z-direction
Ground Displacement
z - direction
Plots
Accelerations
Displacement
Computing the ground forces from the ground motion
We will transform the ground motion into the substitute force, assuming no ground rotations, using .
Transform the Substitute Force into Modal Coordinates
NEWMARK-Algorithm
Now, apply the NEWMARK algorithm
First, setup the NEWMARK-constants
Then, we compute the modified mass matrix
Next initialize the vectors.
Then compute the output one step at a time.
Finally, we can transform the solution into back real coordinates
Viewing the Solution
Eigenmodes
The modes are shown numerically.
Graphical View of the Time History of the Motion
Translations
x - direction (relative to ground motion)
Setup the data points.
Setup the plot.
y - direction (relative to ground motion)
z -direction (relative to ground motion)
Rotations
Rotation about x
Setup data points.
Rotation about y
Rotation about z
Animation
To reduce execution time, only some time steps are used for the animation. If you have a fast machine, you can increase this number.
Setting the number of plots used for the animation.
Animation stepsize
Maximal motion
Calculate the normalization factor of the motion for the animation (using the Maximal motion magnitude).
Setting up the basic elements
Nominal ground plate location
Nominal Diagonal Points for each prism at each animation time
Creating the plot objects.
Translate and Rotation the basic elements
Ground and the Cuboids
Create the plots of the translated cuboids and the ground.
The plot of the upper cuboid must be translated by the constant distance between both bodies in the initial position, because all motions are calculated with respect of the bodies' center of gravity. Finally, the cuboids are rotated around the rotation vectors.
Spring Connection Positions
Next, we calculate the spring connections between the cuboids. We use the spring deformation relationships derived above in the calculation.
Connecting the Bodies
Displaying the Animation
References
[1] E. Luz, "Schwingungsprobleme im Bauwesen", (Expert Verlag, 1992)
[2] K.-J. Bathe; E. L. Wilson, "Numerical Methods In Finite Elemente Analysis", (Prentice-Hall, 1976)
Legal Notice: The copyright for this application is owned by the author(s). Neither Maplesoft nor the author are responsible for any errors contained within and are not liable for any damages resulting from the use of this material. This application is intended for non-commercial, non-profit use only. Contact the author for permission if you wish to use this application in for-profit activities.