OSENGINEER

HOME

Scoota

Introduction

Tutorial

User's Guide

Download

Blended MBDyn

Introduction

Double Pendulum Tutorial

Spring Mass Tutorial

User's Guide

Download

Examples

Blended MBDyn Spring Mass Tutorial

Open Blender. In Linux type: "blender -w".  When blender opens you will see a cube outlined in pink.

Change the view from front to side, by using the menu (see figure below)


Type "g" to grab the cube, then type "z" to move it in the z direction and type "5" and "Enter". (The mouse can also be used to move the cube, holding the "Ctrl" key will move the cube in increments.) Now make a ground plane by hitting the "Space Bar" and selecting "Add"-> "Mesh"-> "Plane".





To orient the plane correctly type "r", "y", "90" and "Enter". That is all the geometry we will create.


Hit "Tab" to change from edit to object mode. The purpose of edit mode is to edit the mesh, for example, moving a node. Right now we need to be in object mode which allows the user to add an empty. Add an empty by hitting the "space" bar and selecting "Add" -> "Empty". The empty option will not show up if you are not in object mode.
 


The empty will define the direction the cube is allowed to move. The z-axis needs to be oriented up to allow the cube to move in the global z direction. The rotation of the empty is similar to the rotation of the plane. Type "r" "y", "90" and "Enter". Now the empty needs to be parented to the plane. The empty should already be selected (it is pink, if it is not pink right click on it). We need to have both the empty and the plane selected (the empty first). Hold the "shift" key and right click on the plane. It may be hard to see the plane with this global orientation if you would like you can hold the middle mouse button and rotate the view, but you can select the plane by selecting with the right mouse button (while holding the shift key) just to the left of the empty. Now both the plane and the empty are pink. Hit "Ctrl", "p" and enter to make the plane the parent of the empty.

 


 


Now we will create a Constitutive Law which defines the spring or viscoelastic damper. Select "Scripts"->"Misc"->"MBDynConstittiveLaws"

Change the Law type to "linear viscoelastic"


Hit "Save"


Now we will create the joints. Select "Scripts" -> "Misc"-> "MBDynJoint"

The first joint clamps the plane to the ground. The settings in the joint window should look as follows:


 

Select "New" to create the second joint. The second joint constrains the cube to move vertically and references the Constitutive Law. It should look as follows:

 



Now the model is built. We need to solve it, import the results back in and animate.



From the scripts menu select "Export"-> "MBDyn"

Change the end time to "5.0" and select "Start Solve"



 

From the "Scripts" menu select "Import"-> "MBDyn"

Set the import rate to 5, which brings in every 5th frame of animation then hit "Import File".



Click on the menu and select "Ipo Curve Editor".
 
Then select Play Animation in 3D view.  You can also drag the green line in the lower menu to scroll forward and back.?  To stop the animation hit "ESC"

That's it!