%--------------------------------------------------------------------------
% CHAMELEM.NLOC
%--------------------------------------------------------------------------
% Creation of a CHAMELEM describing a field of averaged variables.
%--------------------------------------------------------------------------
% Syntax
%--------------------------------------------------------------------------
CHAM2 = CHAMELEM.NLOC(MO1,CHAM1,CON0,var_av0)
%--------------------------------------------------------------------------
% Description
%--------------------------------------------------------------------------
% CHAMELEM.NLOC allows to average variables. This static method is used
% when the non local regularization technique is used. The connectivity
% field can be computed by means of the CHAMELEM.CONNEC method.
%--------------------------------------------------------------------------
% Input arguments
%--------------------------------------------------------------------------
% MO1 : MODEL object
% CHAM1 : CHAMELEM describing the field of variables before averaging
% CON0 : CHAMELEM describing a connectivity field
% var_av0 : scalar, vector - variables to be averaged
%--------------------------------------------------------------------------
% Output arguments
%--------------------------------------------------------------------------
% CHAM2 : CHAMELEM object describing the averaged field
%--------------------------------------------------------------------------
% Example
%--------------------------------------------------------------------------
% Computation of the connectivity field, given the MODEL MOT and the
% internal length of 0.25 m
CON0 = CHAMELEM.CONNEC(MOT,0.25)
CON0 =
1x3 CHAMELEM array with properties:
model
cham_val
% Computation of the averaged CHALEMEM, given the MODEL MOT, the local
% CHAMELEM and the connectivity field. The internal variable to be averaged
% is the #2
CHAM1 = CHAMELEM.NLOC(MOT,CHA_VAR,CON0,2);