Contents     Functions     Index     Previous Next     PDF

7.12  Element selection



feutil supports a number of element selection criteria that are used by many functions. An element selection command is specified by giving a string command (for example 'GroupAll') to be applied on a model (nodes, elements, possibly alternate element set).

Basic commands are : eltind is the selected elements indices in the element description matrix. selelt is the selected elements.

Accepted selectors are


EltId i finds elements with identificators i in FEelt. Operators accepted.
EltInd i finds elements with indices i in FEelt. Operators accepted.
EltName s finds elements with element name s. EltName flui will select all elements with name starting with flui. EltName  = flui will select all elements with name not starting with flui.
EGID i finds elements with element group identifier i. Operators accepted.
Facing > cos x y z finds topologically 2-D elements whose normal projected on the direction from the element CG to x y z has a value superior to cos. Inequality operations are accepted.
Group i finds elements in group(s) i. Operators accepted.
InNode i finds elements with all nodes in the set i. Nodes numbers in i can be replaced by a string between braces defining a node selection command. For example femesh('find elt withnode {y>-230 & NodeId>1000}').
MatId i finds elements with MatId equal to i. Relational operators are also accepted (MatId =1:3, ...).
ProId i finds elements with ProId equal to i. Operators accepted.
SelEdge type selects the external edges (lines) of the currently selected elements (any element selected before the SelEdge selector), any further selector is applied on the model resulting from the SelEdge command rather than on the original model.
  g retains inter-group edges. Type m retains inter-material edges. Type p retains inter-property edges. The MatId for the resulting model identifies the original properties of each side of the edge.
SelFace type selects the external faces (surfaces) of the currently selected elements (see more details under SelEdge).
WithNode i finds elements with at least one node in the set i. i can be a list of node numbers. Replacements for i are accepted as above.
WithoutNodei finds elements without any of the nodes in the set i. i can be a list of node numbers. Replacements for i are accepted as above.

Different selectors can be chained using the logical operations & (finds elements that verify both conditions), | (finds elements that verify one or both conditions). femesh('FindEltGroup 1:3 & with node 1 8') for example. Condition combinations are always evaluated from left to right (parentheses are not accepted).

Numeric values to the command can be given as additional femesh arguments. Thus the command above could also have been written femesh('findelt group & withnode',1:3,[1 8]).

©1991-2007 by SDTools
Previous Up Next