Tutorial 1: Getting Started
Tutorial 1: Getting Started
Tutorial 1
Getting Started
Objective
Part I: If you are using a commercial license, make sure to have the libraries • Extending and
MBS Mechanics (3D) and Hydraulics installed. Otherwise, simply read through modifying exist-
Part I or view the sample model with the Viewer Edition. ing models and
parameters
Parts II and III: Apart from the Basic Module, no other modules are required.
The models in Part II and III can also be created with the Student Edition. The • Viewing results
Viewer and Student Editions are both available for free and can be downloaded
in the Customer Center (www.simulationx.com/customer-center). • Post-processing
To change the edition, go to: Extras Options Licensing
Used symbols
The following view (with default GUI of SimulationX) and a result window appears on your screen:
menu bar
diagram view
3D view
components
bar
library bar
parameter table
result table
output area
Fig. 2: Default GUI of SimulationX Professional Edition with a model (Bucket Cylinder Hydraulics) from the SimulationX Sample
Browser
Menu bar: Provides tools to create models and to control the simulation.
Library bar: Provides access to the element types installed and grouped into different topical libraries
in a hierarchical order.
Output area: Displays notifications, warning messages and errors. The content of the output area can
be saved, exported as text and printed.
Parameter table, result table and the components bar: Contains the properties of your model and the
results displayed. (In order to have values displayed in the parameters and result tables as shown in
figure 2, click on an element in the diagram view).
SimulationX 3.8 – Tutorial 1: Getting Started 3 | 12
hydraulic
Diagram
Click the button New in the menu bar or go to File New. A new, empty diagram view appears.
(To open an existing file, click the button Open in the menu bar or File Open…)
Go to Mechanics Linear Mechanics in the library bar. Click on Spring, hold the mouse button and
drag the element into the diagram view. Release the mouse button.
Fig. 6: Placing an element from the library bar in the diagram view by drag and drop
For information about a model element’s physics, click on (Direct Help) in the menu bar. The cur-
sor will change to . Click on spring1 in the diagram view or on Spring in the library bar. A window
will pop up with detailed information about the model element Spring. Close the Help with (Close)
to proceed with the tutorial.
Now, drag the element Mass from the library Linear Mechanics in the diagram view and drop it there.
Your diagram view should look as follows:
Fig. 7: Diagram view with two unconnected model elements (Spring and Mass from the library Linear Mechanics)
SimulationX 3.8 – Tutorial 1: Getting Started 5 | 12
3 Connecting elements
In order for the elements to be able to interact with each other, they have to be linked through connec-
tions. Activate (Pin Labels) in the menu bar to display the names of the connectors in the diagram
view.
Place the cursor over ctr2 (connector 2) of spring1. The connector turns red and the cursor changes
to . Press , hold the mouse button and drag the connection towards ctr1 of mass1 as shown in
figure 8.
Now, place a model element of type Damper from Mechanics Linear Mechanics in the diagram view.
Connect the model element damper1 with the existing structure as shown in figure 9. You will notice
that you can also connect a connector with an existing connection.
4 Entering Parameters
To control the simulation and specify its settings, open the Properties dialog in the simulation control
section (see figure 14) in the menu bar.
Place the element Spring-Damper Backlash and the element Mass from the library Linear Me-
chanics in the diagram view beside your model from chapter II and connect both new elements.
As you will see in the following steps, the element type Spring-Damper Backlash can represent the same
physical correlation as the single elements spring and damper (depending on the parameters).
Change the properties of mass2 in the same man- model element parameter value
ner with the values given in table 2.
mass2 Mass (m) 5 kg
SpringDamper1 has now the same properties as
Initial 0 mm
the connected elements spring 1 and damper 1.
Displacement (x0)
As the new model has not yet been simulated, no simulation results are available in the result window.
Reset the previous calculation by clicking (Back to Start) in the menu bar. Restart the simulation
with (Start). You can now compare the displacements of mass1 and mass2. The results should be
identical.
Select springDamper1 and mass2 by drawing a rectangle in the diagram view holding . Releasing the
mouse button selects all marked model elements.
Copy the model structure of the one-mass oscillator by dragging one of the selected elements while
pressing and holding ctrl + and drop it in a position as shown in figure 22.
Change the routing of the connection between springDamper2 Damping (b) 2 Ns/m
those two elements by grabbing a control point
(see figure 24 – the cursor will change to ) and mass3 Initial 0 mm
Displacement (x0)
drag it to a different position.
Mass (m) 1 kg
In order to delete the connection between mass2
and SpringDamper2, press Shift while hovering over
the connector. As soon as the symbol appears
next to the cursor (see figure 25), click and the
connection with the next element will be deleted.
(Please note: If a selected connection is deleted with
Del, not only the connection between one element
and the next one is deleted, but also all selected Fig. 24: Changing the position of a connection point
connection lines are deleted.)
Reset the calculation, by clicking (Back to Start) in the menu bar. Restart the simulation with
(Start). The result window mass2.x will change (see figure 29 [left]) due to the extension of the simula-
tion time in the step before. Click on mass3 and drag the result window symbol ( ) for the displace-
ment into the diagram view. The displacement of mass3 is displayed in a separate window (see figure
29 on the right).
For better comparison of the interaction between both masses, you can display both curves within one
diagram. In order to do this, grab the symbol of mass2.x in its result window and drop it near the center
of the result window of mass3.x as shown in figure 30. (Be careful not to drop mass2.x on one of the
operator buttons in the middle of the window as this will result in both functions to be merged.) Both
curves are now displayed within one diagram. As the graphs have the same units, both share the same
x and y axes.
Click on (Freeze) in the result window to pin Fig. 33: Measurement of explicit values from the graph
an image of the diagram to the background of the
window. Change the stiffness k of springDamper1 to
40000 N/m. Reset the calculation to the start and
restart it. You will now see the results of the calcu-
lation with changed parameters in the foreground
and the ones from the previous calculation slightly
faded to the background (see figure 34).
Conclusion
In this tutorial, you have learned the basic concepts of building a model. The model’s system behavior
was simulated and analyzed. The presented example was taken from the mechanics domain, but the
general approach to creating and analyzing system models is the same for all other physical domains
in SimulationX. Depending on the user’s preferences and the specific requirements for each task, there
are often several ways to solve it. This introductional tutorial gave you a small insight into SimulationX’
various features.
If you want to learn more about how to use SimulationX, please take a look at
• SimulationX User Manual and Library Manual (Help Documents User Manual/Library Manual)
SimulationX is a registered trademark of ESI ITI GmbH Dresden. © ESI ITI GmbH, Dresden, Germany, 2016. All rights reserved.
Modelica® is a registered trademark of the Modelica Association.