[MBDyn-users] Installing MBDyn on ubuntu

Waleed Mehrez miami_gangsta at hotmail.com
Wed Feb 23 13:56:37 CET 2011


Dear All,
            kindly find below the way I took to install MBDyn on ubuntu.
After these steps, you should be able to run any MBDyn script (hopefully).
 
Installing MBDyn on ubuntu
1-      Download (ubuntu) from http://www.ubuntu.com/desktop/get-ubuntu/download and install it.
2-      After installing it, go to (system) è(administration) è (Synaptic package manager) and reload the latest package information for (ubuntu) from (Edit) è(Reload package information).
3-      Install the latest updates for gfortran and C++.
4-      Download the MBDyn latest release from. http://www.aero.polimi.it/mbdyn/download/index.html 
5-      Untar the downloaded file.
6-      The following set of commands is written in the OS terminal, which can be reached from 
(Applications) è (Accessories) è (Terminal).
7-      In the directory of mbdyn[$version], configure the source code by writing the command 
./configure --prefix=/usr/local
8-      Make it by writing this command In the directory of mbdyn[$version] 
make
9-      Install it by writing this command In the directory of mbdyn[$version]
sudo make install
10-   Up till step no.7, the software is compiled and installed. Now, you need to run an MBDyn script. Put the following code in a file say (rigidpendulum)   
 
begin: data;
                problem: initial value;
end: data;
begin: initial value;
                initial time: 0.;
                final time: 1;
                time step: 1.e-3;
                max iterations: 10;
                tolerance: 1.e-6;
end: initial value;
begin: control data;
                structural nodes:
                1
                +1 ;
                rigid bodies:
                1 ;   
                joints:
                1 
                +1; 
                gravity;
end: control data;
                set: integer Pendulum = 1;
                set: integer Mass = 2;
                set: real M = 1.;
                set: real L = .5;
                set: real Omega0 = 1;
                set: real Node1 = 1;
                set: real Node2 = 2;
                set: real body = 1;
                set: real joint1 = 1;
                set: real joint2 = 2;
 
                reference: Pendulum,
                reference, global, null,
                reference, global, eye,
                reference, global, null,
                reference, global, 0., Omega0, 0.;
 
                reference: Mass,
                reference, Pendulum, 0., 0., -L,
                reference, Pendulum, eye,
                reference, Pendulum, null,
                reference, Pendulum, null;
 begin: nodes;
                structural: Node1, dynamic,
                reference, global, null,
                reference, global, eye,
                reference, global, null,
                reference, global, null;
 
                structural: Node2, dynamic,
                reference, Mass, null,
                reference, Mass, eye,
                reference, Mass, null,
                reference, Mass, null;
end: nodes;
begin: elements;
                body: body , Node2,
                M,
                reference, Mass, null,
                null;       
 
                joint: joint1, clamp,
                Node1, node, node;
                joint: joint2 , revolute hinge,
                Node1,
                reference, Pendulum, null,
                hinge, reference, Pendulum,
                1, 1.,0.,0., 3, 0.,1.,0.,
                Node2,
                reference, Pendulum, null,
                hinge, reference, Pendulum,
                1, 1.,0.,0., 3, 0.,1.,0.;
gravity: 0., 0., -1., const, 9.81;
end: elements;
 
11-   In the terminal, invoke MBDyn to run the code by writing the following command 
mbdyn –f rigidpendulum
 
12-   After MBDyn complete running, the output files with different extensions will be generated.
 
 
Best Regards,
Mohamed Waleed Mehrez
  		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mbdyn.org/pipermail/mbdyn-users/attachments/20110223/7e6427f2/attachment-0001.htm>


More information about the MBDyn-users mailing list