%--------------------------------------------------------------------------
% CHAMELEM.CHAM_INIT
%--------------------------------------------------------------------------
% Initialization of a CHAMELEM.
%--------------------------------------------------------------------------
% Syntax
%--------------------------------------------------------------------------
CHAM2 = CHAMELEM.CHAM_INIT(MO1)
CHAM2 = CHAMELEM.CHAM_INIT(MO1,CHAM1)
%--------------------------------------------------------------------------
% Description
%--------------------------------------------------------------------------
% CHAMELEM.CHAM_INIT allows to initialize a CHAMELEM object for a given
% MODEL. All the components are set up to zero. For a non multifiber based
% model, the components initialized are:
% - sig0: stress at the beginning of the step
% - sigf: stress at the end of the step
% - eps0: strain at the beginning of the step
% - epsf: strain at the end of the step
% - var0: internal variables at the beginning of the step
% - varf: internal variables at the end of the step
%
% For a multifiber based model, the components initialized are:
% - strs: CHAMELEM object describing the stress in all the cross
% sections
% - epss: CHAMELEM object describing the strain in all the cross
% sections
% - ints: CHAMELEM object describing the internal variables in all the
% cross sections
% CHAM1 is mandatory when a finite element with specific kinematcs is used
%--------------------------------------------------------------------------
% Input arguments
%--------------------------------------------------------------------------
% MO1 : MODEL object
% CHAM1 : CHAMELEM describing the field of material parameters
%--------------------------------------------------------------------------
% Output arguments
%--------------------------------------------------------------------------
% CHAM2 : CHAMELEM object
%--------------------------------------------------------------------------
% Example
%--------------------------------------------------------------------------
% Given a set of MODEL
MOT
MOT =
1x3 MODEL array with properties:
group
formulation
elasticity
elasticity_type
law_type
law_name
elem_type
int_var_number
int_rule_stif
int_rule_mass
section_topo
crack_path
% Given the corresponding material parameters
MAT
MAT =
1x3 CHAMELEM array with properties:
model
cham_val
% The set of CHAMELEM is initialized
CHAM2 = CHAMELEM.CHAM_INIT(MOT,MAT)
CHAM2 =
1x3 CHAMELEM array with properties:
model
cham_val