%--------------------------------------------------------------------------
% CHPOINT.EXTR
%--------------------------------------------------------------------------
% Extraction of a value from a CHPOINT object.
%--------------------------------------------------------------------------
% Syntax
%--------------------------------------------------------------------------
val1 = EXTR(CHP1,label1,loc1)
val1 = CHPOINT.EXTR(CHP1,label1,loc1)
%--------------------------------------------------------------------------
% Description
%--------------------------------------------------------------------------
% The EXTR public method of the CHPOINT class is used to extract the value
% of a CHPOINT given the label of the physical group of finite elements and
% the local number of the dof.
% The label must correspond to a POINT object.
%--------------------------------------------------------------------------
% Input arguments
%--------------------------------------------------------------------------
% CHP1 : CHPOINT object
% label1 : STRING object describing the name of the physical group of
% finite elements which support the CHPOINT
% loc1 : scalar, array - local number of the dofs
%--------------------------------------------------------------------------
% Output arguments
%--------------------------------------------------------------------------
% val1 : scalar, array - values of the dofs
%--------------------------------------------------------------------------
% Example
%--------------------------------------------------------------------------
SOL
SOL =
SOLUTION with properties:
problem: [1x1 PROBLEM]
mesh: [1x1 MESH]
topology: [1x1 TOPOLOGY]
displacement: [1x100 CHPOINT]
velocity: []
acceleration: []
cham_element: [1x100 struct]
reaction: [1x100 CHPOINT]
internal_forces: [1x100 CHPOINT]
eigenfrequency: []
modeshape: []
UP4 = EXTR(SOL.displacement(end),'P4',[1 2])
UP4 =
(1,1) 0.0116
(1,2) -0.0150