%--------------------------------------------------------------------------
% EVOL.TIME
%--------------------------------------------------------------------------
% Computation a time evolution of a given quantity in case of a DYNAMIC
% analysis
%--------------------------------------------------------------------------
% Syntax
%--------------------------------------------------------------------------
EV2 = EVOL.TIME(SOL1,type,label,idx)
%--------------------------------------------------------------------------
% Description
%--------------------------------------------------------------------------
% The method TIME of the EVOL class allows for computing the time evolution
% of the quantity 'type' in case of a DYNAMIC analysis.
%--------------------------------------------------------------------------
% Input arguments
%--------------------------------------------------------------------------
% SOL1 : SOLUTION object coming fom the SOLVE method
% type : STING object describing the type of quantity to represent. Type
% can be :
% - displacement
% - velocity
% - acceleration
% - reaction
% - internal_forces
% label : STING object describing the label of the node whose the
% displacement should be plotted on the abscissa axis
% idx : INTEGER object describing the local type of the degrees of
% freedom. It is used to to select the appropriate abscissa axis.
% idx can be :
% - 1 : Direction 1 (displacement)
% - 2 : Direction 2 (displacement)
% - 3 : Direction 3 (displacement)
% - 4 : Direction 1 (rotation)
% - 5 : Direction 2 (rotation)
% - 6 : Direction 3 (rotation)
%
%--------------------------------------------------------------------------
% Output arguments
%--------------------------------------------------------------------------
% EV2 : EVOL object describing the required time evolution.
%--------------------------------------------------------------------------
% Example
%--------------------------------------------------------------------------
PB1 = PROBLEM('model',MOT,'mater',MAT,'diric',CLT,'loadt',CHT,'comp_time',0:0.01:20,...
'solve_type','DYNAMIC','lumped_mass',MAD1);
SOL = SOLVE(PB1);
EV_OUT_D = EVOL.TIME(SOL,'displacement','P3',1);
EV_OUT_V = EVOL.TIME(SOL,'velocity','P3',1);
EV_OUT_A = EVOL.TIME(SOL,'acceleration','P3',1);
plot(EV_OUT_D);
plot(EV_OUT_V);
plot(EV_OUT_A);