5 ====================================
6 Define groups on the model of blocks
7 ====================================
9 Three kinds of group of meshing elements:
15 - group of quadrangles:
23 Four kinds of group of nodes:
25 - group of nodes in hexahedra:
29 - group of nodes in quadrangles:
33 - group of nodes in edges:
37 - group of nodes on vertices:
43 Add a new group in the document::
45 grp = doc.addHexaGroup(name)
46 grp = doc.addQuadGroup(name)
47 grp = doc.addEdgeGroup(name)
48 grp = doc.addQuadNodeGroup(name)
49 grp = doc.addHexaNodeGroup(name)
50 grp = doc.addEdgeNodeGroup(name)
51 grp = doc.addVertexNodeGroup(name)
53 Remove a group from the document::
57 Get the number of groups of the document::
61 Get a group of the document::
63 grp = doc.getGroup(index)
66 Find a group by his name in the document::
68 g = doc.findGroup(name)
70 Get the name of a group::
74 Set the name of a group::
78 Get the kind of group among the 7 possibilities::
83 Add an element in a group::
85 grp.addElement(element)
87 Get the number of elements of a group::
89 nb = grp.countElement()
91 Get an element of a group::
93 el = grp.getElement(index)
95 Remove an element of a group::
97 grp.removeElement(index)
99 Clear all elements of a group::
104 GUI command: :ref:`guigroups`