%--------------------------------------------------------------------------
% CHAMELEM
%--------------------------------------------------------------------------
% Creation of a CHAMELEM object.
%--------------------------------------------------------------------------
% Syntax
%--------------------------------------------------------------------------
CHAM1 = CHAMELEM(MO1,label1,val1,...
,labeln,valn);
%--------------------------------------------------------------------------
% Description
%--------------------------------------------------------------------------
% CHAMELEM creates a CHAMELEM object. This type of object can be used to
% describe a field defined at the integration points. The field is
% supported by a MODEL object. A CHAMELEM object has the following
% properties:
% - model: MODEL object which is the support of the CHAMELEM
% - cham_val: struct whose the length is equal to the number of
% subdomains. Each subdomain contains the same type of
% finite elements. cham_val has the following fields:
%
% - val_elem: struct object whch contains the data related to the
% finite elements included in the subdomain. The length of
% val_elem is equal to the total numnber of finite elements
% included in the subdomain.
%
% - label1: cell object containing val1. The length of the
% cell is equal to the number of integration.
% .
% .
% .
% - labeln: cell object containing valn. The length of the
% cell is equal to the number of integration.
%
%--------------------------------------------------------------------------
% Input arguments
%--------------------------------------------------------------------------
% MO1 : MODEL object describing the support of the CHAMELEM
% label1 : STRING object describing the name of the component 1
% val1 : scalar, vector object describing the value 1 of componenent 1 of
% the CHAMELEM
% labeln : STRING object describing the name of the component n
% valn : scalar, vector object describing the value n of componenent n of
% the CHAMELEM
%
%--------------------------------------------------------------------------
% Output arguments
%--------------------------------------------------------------------------
% CHAM1 : CHAMELEM object
%--------------------------------------------------------------------------
% Example
%--------------------------------------------------------------------------
CHAM = CHAMELEM(MO1,'d',0.75,'p',0.0012)
CHAM =
CHAMELEM with properties:
model: [1x1 MODEL]
cham_val: [1x2 struct]
CHAM.cham_val(1).val_elem(1)
ans =
d: {[0.7500]}
p: {[0.0012]}
CHAM.cham_val(2).val_elem(1)
ans =
d: {[0.7500] [0.7500] [0.7500] [0.7500]}
p: {[0.0012] [0.0012] [0.0012] [0.0012]}