%--------------------------------------------------------------------------
% COMB
%--------------------------------------------------------------------------
% Creation of a COMB object.
%--------------------------------------------------------------------------
% Syntax
%--------------------------------------------------------------------------
CO1 = COMB(opt,coef1,label1,idx1,...
,coefn,labeln,idxn);
%--------------------------------------------------------------------------
% Description
%--------------------------------------------------------------------------
% COMB creates a COMB object. This type of object can be used to describe a
% combination between degrees of freedom. The COMB object has the following
% properties:
% - coef: scalar, vector representing the coefficients of the
% combination
% - geom_point: POINT object
% - geom_group: GROUP object
% - type: scalar, vector representing the local type of degrees of
% freedom included in the combination
%--------------------------------------------------------------------------
% Input arguments
%--------------------------------------------------------------------------
% opt : STING object describing the type of combination. varargin is
% defined according to the value of opt. opt can be:
% - LINEAR
% -- varargin{1}: FLOAT object describing coefficient coef1
% -- varargin{2}: STRING object describing the label of the part of
% the mesh considered label1
% -- varargin{3}: INTEGER object descring the local type of degree
% of freedom idx1. idx1 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
%--------------------------------------------------------------------------
% CO1 : COMB object
%--------------------------------------------------------------------------
% Example
%--------------------------------------------------------------------------
% co_pilo represent the linear combination 0 x Ux(P1) + 1 x Ux(P2) = 0
co_pilo = COMB('LINEAR',0,'P1',1,1,'P2',1)
co_pilo =
COMB with properties:
coef: [0 1]
geom_point: [1x2 struct]
geom_group: []
type: [1 1]