imat_elem/add


Purpose

Add elements.

Syntax

elem=add(elem,id,type,conn,color,prop,beamdata,extra)
elem=elem.add(id,type,conn)
elem=elem.add(id,type,conn,color)
elem=elem.add(id,type,conn,color,prop)
elem=elem.add(newelem)

Description

ADD will add an element or elements to the IMAT_ELEM object.

ID is a vector containing the element IDs. They must be unique.

TYPE is a vector containing the element type(s).

CONN is a cell array of vectors containing the element node connectivity.

COLOR is a numeric vector containing the element colors. If not supplied, or it is empty, the default color of 7 is used.

PROP is an Nx2 matrix containing the material and physical property IDs. If not supplied, they will be set to 0.

BEAMDATA is an Nx3 matrix containing the beam cross-section references. If not supplied, they will be set to 0.

An alternate calling sequence is to supply an IMAT_ELEM object NEWELEM to add.

EXTRA is an Nx1 cell array containing the extra element-specific data. The contents of this data are not checked for content or consistency.

See Also

imat_elem/keep, imat_elem/remove