Set the components for Data At Nodes On Elements result.
d=setComponents(d,element,node,npere,comp,layer,lpern,seid,eltype)
d=setComponents(d,element,node,npere,comp,layer,lpern,seid,eltype,compressed,data)
SETCOMPONENTS sets the component vectors and optionally data for the Data At Nodes On Elements result object. The individual components can be in compressed or uncompressed format. If uncompressed, SETCOMPONENTS will attempt to compress them.
ELEMENT contains the element IDs, which are stored once per element if the vectors are compressed.
NODE contains the node IDs which are stored explicitly, once per element (compressed). So for example, if an element has 4 nodes, the IDs 1-4 are all stored. The companion property NPERE stores the number of nodes per element. As such, the length of NPERE must be the same as ELEMENT, and the length of NODE must be the same as the sum of the values in NPERE.
COMP stores the components just once. This means that to be compressed, all of the results in this object must have the same component list.
LAYER will be compressed in one of two ways. If the layers are repeated for all component lists and nodes, LAYER is a vector containing the layer list that is repeated, and LPERN is empty. Otherwise, LPERN is a vector of the same length as the number of nodes, and it contains the number of layers per node. LAYER is a list the same length as the sum of the contents of LPERN, containing the layer numbers.
SEID is on an element basis. If more than one SEID is stored, it must be the same length as the number of elements.
ELTYPE contains the element types, and must be the same length as ELEM.
COMPRESSED is an optional input logical specifying whether the component vectors are compressed. The default is FALSE.
DATA is an optional input vector containing the data values for this result.
>> d = setComponents(d,11:12,[1 2 101 102],[2 2],[11 12 22 13 23 33],1:2,[],0,[34;34],true,1:48);
imat_result_danoe/getComponents