Professional Documents
Culture Documents
Getting Started Pendulum Model
Getting Started Pendulum Model
In this lesson you will learn how to create and develop a model. You will learn how
to:
Create and work with reference frames, bodies, joints and markers
Create the 3D graphical representation of the physical parts
Use the more advanced model and file management features
Use SIMPACK to integrate the differential equations generated from the
model data. Subsequently you will learn how to calculate measurements and
animate the model from the simulation results
Manipulate the view of the model in the Model Setup window
You will build a relatively simplistic model of a pendulum which will be developed into
a double-pendulum with a substructure (chapter 5. and 6.). Figure 4.1. shows the
pendulum which you will create in this section.
Body pendulum:
mass = 4.0 [ kg ]
10 0 0
inertia tensor I = 0 10 0 [ kgm ]
0 0 1.0
Joint:
Gravity:
Start a SIMPACK session and click on the Open Model toolbar button or
on File Open Model from the Graphic User Interface.
You must now select a directory in which you want to create the new model.
Click on New and enter the model name pendulum. Hit Return to accept.
When a new model is created, SIMPACK automatically create a default model with the
following parameters: Inertia reference frame, one body with a marker, one joint, one sensor,
a default gravity vector and a default 3D-geometry.
Hint: For a better overview it is advisable to create an own folder for each
new model. Therefore click on and enter a name (model name and
folder name should be equal).
Select either Bodies from the toolbar or from the pull-down menu
Elements Bodies.
The Bodies list box will appear on the screen.
Double click on $B_pendulum or select it with the mouse and then click on
.
The MBS Define Body dialogue box appears. For this model you will enter the
data by hand, but it is even possible to get it from the database. Within this
dialogue box you can enter the physical attributes of the body. These include
the mass, centre of mass and the inertia-tensor.
You should now enter the data from 4.2 for the body.
Figure 4.4. shows how the MBS Define Body dialogue box should look.
You will now change the body from a cuboid to a prism to look like the hand of
a clock. Click on and the 3D geometry window appears.
Within this window you will find the default ensemble $E_pendulum and the
default primitives of this ensemble. There is the primitive
$P_pendulum_cuboid.
Back in the Primitive Definition window change the prism thickness to 0.05
and the No. of shape points to 4.
In the shape/line list box enter the four shape points as given in chapter 4.2
In the Model Setup window the cuboid should have changed to a prism with
the shape of a hand of a clock. To bring the body in the right position like it is
in figure 4.1. you have to rotate it. Therefore you have to edit the built-in
vector and rotation matrix:
Figure 4.5. shows how the primitive dialogue box should look.
Hint: Because SIMPACK does not have an undo facility but only a reload facility it
is necessary to save your model from time to time (best after each
modification).
Therefore click on or select File Save from the pull-down menu.
If you want to remove a number of changes then you have to reload the
model from the last save. Either click on or File - Reload
From this dialogue box you should now either double click on the reference
frame $B_Isys or select it and then click on . The following
dialogue box, figure 4.7. will appear.
In the input box that then appears you should enter the name Isys_axle
(remember: $P_ will be attached automatically). Then click on .
You will now change the parameters diameter and length according to 4.2.
To rotate the cylinder in its right position you need to edit the build-in vector
matrix as follows:
Here you will now define the markers which are associated with a joint. In this
case the is the default marker $M_Isys set by SIMPACK on
the reference frame. Select $M_pendulum, the default marker on the
pendulum, as .
In the MBS Define Joint Dialogue box click on the first line (Rotation about al
[rad]) of the initial state box. In the following input window you can enter the
initial state of the joint in terms of both position and velocity.
Enter the following modifications into the input panel, as they are given in 4.2.
- Position = 0.707
- Velocity = 0
Click on . The MBS Define Joint window should look like figure
4.9.
The Pendulum is finished now and should look like Figure 4.10.
The following steps will show you how to animate your model, change the
view and modify it to a double-pendulum.
You will learn, in this section, how to move the model within the 3D Model Setup
window. However, before changing the view you should save the model. To get back
to the original view settings you only need to reload the model.
Select View View Setup from the pull-down menu. The following dialogue
box figure 4.11. appears.
In the dialogue box figure 4.11. you can use slider bars to zoom, translate and
rotate your model.
When you click on standard views as seen in figure 4.12. you can chose
between some isometric and parallel views.
Hint: You can even change the view by holding down the control key and one of
the three mouse keys and moving the mouse:
Note: When working with Simpack it could happens that the following window
appears.
In this case you will find a new file in your folder, which is called:
.S_sui_g3d_g3d.flag
It is necessary to delete this file to continue with SIMPACK.
Before animating the model SIMPACK needs to form the equations of motion and
solve them. The integration of the differential equations can be done either off- or on-
line. On-line integration is when SIMPACK animates the model while performing the
integration process. Off-line integration means that SIMPACK integrates for a
defined start and end time. The animation of the model is performed after the
integration.
The on-line integration is recommendable for small models with only a few degrees
of freedom like our pendulum.
Click on Go to start the on-line integration and animate the pendulum in the
model setup window.
Off-line integration is normally used for large complex models with a large number of
degrees of freedom. The CPU time required to integrate the equations may be high,
which makes it impossible to animate the model while performing the time
integration.
Before starting an off-line integration, SIMPACK must be told what to perform in the
integration. Important Values are the initial start time and the end time and the
numbers of communications points (these points determine how many times
SIMPACK writes data to the result files in the integration process). These
calculations are done in the GUI.
Note: The example above leads to a communication step size of 0.01 s. Normally
the integrator chooses the integration stepsize during the integration
procedure and varies it due to the integration stability. It may be necessary to
define a maximum integration stepsize to guarantee that the dynamic answer
of all important eigenfrequencies is mapped.
Note: Before performing the time integration it is necessary to save the model
because SIMPACK reads the data from the model files while performing the
calculations.