%--------------------------------------------------------------------------
% CHAMELEM.GET_CHAM
%--------------------------------------------------------------------------
% Get a CHAMELEM object corresponding to a given MODEL from a set of
% CHAMELEM.
%--------------------------------------------------------------------------
% Syntax
%--------------------------------------------------------------------------
CHAM2 = CHAMELEM.GET_CHAM(CHAM,MO1)
CHAM2 = GET_CHAM(CHAM,MO1)
%--------------------------------------------------------------------------
% Description
%--------------------------------------------------------------------------
% CHAMELEM.GET_CHAM allows for getting a CHAMELEM from a set of CHAMELEM
% corresponding to a given MODEL object (support).
%--------------------------------------------------------------------------
% Input arguments
%--------------------------------------------------------------------------
% CHAM : Set of CHAMELEM object
% MO1 : MODEL object which is the support of the CHAMELEM object to be
% selected
%
%--------------------------------------------------------------------------
% Output arguments
%--------------------------------------------------------------------------
% CHAM2 : CHAMELEM object whose the support is the MO1 object
%--------------------------------------------------------------------------
% Example
%--------------------------------------------------------------------------
MA1 = CHAMELEM.MATE(MO1,'youn',36e9,'nu',0.2,'rho',2200);
MA2 = CHAMELEM.MATE(MO2,'youn',200e9,'nu',0.3,'rho',7800,'sect',4.0e-2);
MA3 = CHAMELEM.MATE(MO3,'youn',200e9,'nu',0.3,'rho',7800,'sect',4.0e-2);
MAT = [MA1 [MA2 MA3]];
MAT =
1x3 CHAMELEM array with properties:
model
cham_val
CHAM2 = GET_CHAM(MAT,MO1)
CHAM2 =
CHAMELEM with properties:
model: [1x1 MODEL]
cham_val: [1x2 struct]