Direct dynamics
Time integration of the system direct dynamics.
For more information, see Robotran theoritical framework.
Code sample
For running the direct dynamics, insert the following code in your main script and adapt it to your need :
%--------------------------------------------------------------------------
MBS_user.process = 'dirdyn';
mbs_data =
mbs_set_qu(mbs_data,mbs_data_ini.qu); % Retrieving of the initial set of independent variables
opt.dirdyn = {
'time',0:0.01:5,
'motion',
'simulation',...
'odemethod','ode45','save2file','yes','framerate',1000,...
'renamefile','no','verbose','yes'};
% other options : 'visualize', 'save2file', 'depinteg', 'dtmax', 'dtinit',
% 'reltol', 'abstol', 'clearmbsglobal' % Help about options on www.robotran.be
% Graphical Results
figure(1);
pause;
close(1);
Use
The direct dynamics is performed by the function mbs_exe_dirdyn().
The user specifies the desired options of the direct dynamics in MBS_dirdyn_opt structure. The results are provided in the MBS_dirdyn structure.
The function calls successively :
See diagram below for more details :
direct dynamics function diagram