%--------------------------------------------------------------------------
% INDEX.ADD_DOF_AND_RELA
%--------------------------------------------------------------------------
% Add degrees of freedom in the system when a kinematic relationship is
% prescribed
%--------------------------------------------------------------------------
% Syntax
%--------------------------------------------------------------------------
[IN,new_num] = ADD_DOF_AND_RELA(IN,loc_dof,cur_node)
[IN,new_num] = INDEX.ADD_DOF_AND_RELA(IN,loc_dof,cur_node)
%--------------------------------------------------------------------------
% Description
%--------------------------------------------------------------------------
% INDEX.ADD_DOF_AND_RELA allows to update the indexation table when
% adding new degrees of freedom in the system. Ths method is used when a
% kinematic relationship is prescribed.
%--------------------------------------------------------------------------
% Input arguments
%--------------------------------------------------------------------------
% IN : INDEX object
% loc_dof : local number of degrees of freedom (type)
% cur_node : set of NODE objects
%--------------------------------------------------------------------------
% Output arguments
%--------------------------------------------------------------------------
% IN : INDEX object - updated object
% new_num : scalar - updated number of degrees of freedom
%--------------------------------------------------------------------------
% Example
%--------------------------------------------------------------------------
[IN,new_num] = ADD_DOF_AND_RELA(IN,loc_dof,cur_node)
IN =
INDEX with properties:
tab_index: [539x3 double]
dof_number: 476
lag_number1: 63
lag_number2: 0
idx_phys: []
idx_Lag1: []
idx_Lag2: []
dof_Rela: 539
new_num =
539