%--------------------------------------------------------------------------
% ELEM_TOPO
%--------------------------------------------------------------------------
% Creation of an ELEM_TOPO object.
%--------------------------------------------------------------------------
% Syntax
%--------------------------------------------------------------------------
ET1 = ELEM_TOPO(MO1)
%--------------------------------------------------------------------------
% Description
%--------------------------------------------------------------------------
% The ELEM_TOPO method is used to create an ELEM_TOPO object. This object
% is used to describe an elementary topology. It has the following
% properties:
% - model : MODEL object related to the
% - elem : struct object containing the ELEMENT objects by subdomains
% such that the type of the ELEMENT is the same in a given subdomain
% . elem_group : contains the set of ELEMENT objects.
%
% The length of the MODEL object should be equal to 1.
%--------------------------------------------------------------------------
% Input arguments
%--------------------------------------------------------------------------
% MO1 : MODEL object
%--------------------------------------------------------------------------
% Output arguments
%--------------------------------------------------------------------------
% ET1 : ELEM_TOPO object
%--------------------------------------------------------------------------
% Example
%--------------------------------------------------------------------------
% MODEL object already created
MO1
MO1 =
MODEL with properties:
group: [1x1 GROUP]
formulation: 'MECHANICS'
elasticity: 'ELASTICITY'
elasticity_type: 'ISOTROPIC'
law_type: 'PLASTICITY'
law_name: 'VONMISES'
elem_type: []
int_var_number: 8
int_rule_stif: [1x1 INT_RULE]
int_rule_mass: [1x1 INT_RULE]
section_topo: []
crack_path: []
% Creation of an ELEM_TOPO object and vizualisation of the corresponding
% fields
ET1 = ELEM_TOPO(MO1)
ET1 =
ELEM_TOPO with properties:
model: [1x1 MODEL]
elem: [1x1 struct]
ET1.elem
ans =
elem_group: [1x16 ELEMENT]
ET1.elem.elem_group
ans =
1x16 ELEMENT array with properties:
type
node
loc_dof
ET1.elem.elem_group(16)
ans =
ELEMENT with properties:
type: 'SEG2'
node: [1x2 NODE]
loc_dof: [1 2]