10 You must be careful with the signification of the word "element", when it is used with singular or plural form :
12 - The class "Element" is a basic class. The classes Vertex, Edge, Quad an Hexa inherit from the Element Class. This class is used to call common function like getName(), setName() ...
14 - The class "Elements" (plural) represents a set of Elements (vertices, edges, quads an hexaedras). This class is used to implements grids or result of ome complex operations (join, prism, ...)
23 Set a name of an element::
27 Get a name of an element::
31 Print the name of an element::
45 Remove a set of elements from a document::
47 doc.removeElements(elts)
49 Number of vertices in a set of elements::
51 nb_vertices = elts.countVertex()
53 Number of edges in a set of elements::
55 nb_edges = elts.countEdge()
57 Number of quads in a set of elements::
59 nb_quads = elts.countQuad()
61 Number of hexahedrons in a set of elements::
63 nb_hexas = elts.countHexa()
65 Get the vertex number *i*::
67 vertex_i = elts.getVertex(i)
69 Get the edge number *i*::
71 edge_i = elts.getEdge(i)
73 Get the quad number *i*::
75 quad_i = elts.getQuad(i)
77 Get the hexahedron number *i*::
79 hexa_i = elts.getHexa(i)
81 Specialized access to all vertices of a set of elements::
83 ve_xyz = elts.getVertexIJK(i, j, k)
86 0 <= i < ni+1, 0 <= j < nj+1, 0 <= k < nk+1
88 Specialized access to all edges // Vx axis::
90 ed_a = elts.getEdgeI(i, j, k)
93 0 <= i < ni, 0 <= j < nj+1, 0 <= k < nk+1
95 Specialized access to all edges // Vy axis::
97 ed_b = elts.getEdgeJ(i, j, k)
100 0 <= i < ni+1, 0 <= j < nj, 0 <= k < nk+1
102 Specialized access to all edges // Vz axis::
104 ed_c = elts.getEdgeK(i, j, k)
107 0 <= i < ni+1, 0 <= j < nj+1, 0 <= k < nk
109 Specialized access to all quadrangles // on plane Vx, Vy::
111 qu_a = elts.getQuadIJ(i, j, k)
114 0 <= i < ni, 0 <= j < nj, 0 <= k < nk+1
116 Specialized access to all quadrangles // on plane Vx, Vz::
118 qu_b = elts.getQuadIK(i, j, k)
121 0 <= i < ni, 0 <= j < nj+1, 0 <= k < nk
123 Specialized access to all quadrangles // on plane Vy, Vz::
125 qu_c = elts.getQuadJK(i, j, k)
128 0 <= i < ni+1, 0 <= j < nj, 0 <= k < nk
130 Specialized access to all hexahedra::
132 he_xyz = elts.getHexaIJK(i, j, k)
135 0 <= i < ni, 0 <= j < nj, 0 <= k < nk
138 .. _tuicrosselements:
144 *CrossElements* inherits *Elements*. So you have all *Elements* functions available to *CrossElements*,
145 plus the following functions:
148 *part* argument specifies the block of the *cross elements* where to search the vertex, the edge, the quad or the hexa.
150 Specialized access to all vertices of a set of elements::
152 ve_xyz = elts.getVertexIJK(part, i, j, k)
155 0 <= i < ni+1, 0 <= j < nj+1, 0 <= k < nk+1
158 Specialized access to all edges // Vx axis::
160 ed_a = elts.getEdgeI(part, i, j, k)
163 0 <= i < ni, 0 <= j < nj+1, 0 <= k < nk+1
166 Specialized access to all edges // Vy axis::
168 ed_b = elts.getEdgeJ(part, i, j, k)
171 0 <= i < ni+1, 0 <= j < nj, 0 <= k < nk+1
174 Specialized access to all edges // Vz axis::
176 ed_c = elts.getEdgeK(part, i, j, k)
179 0 <= i < ni+1, 0 <= j < nj+1, 0 <= k < nk
182 Specialized access to all quadrangles // on plane Vx, Vy::
184 qu_a = elts.getQuadIJ(part, i, j, k)
187 0 <= i < ni, 0 <= j < nj, 0 <= k < nk+1
190 Specialized access to all quadrangles // on plane Vx, Vz::
192 qu_b = elts.getQuadIK(part, i, j, k)
195 0 <= i < ni, 0 <= j < nj+1, 0 <= k < nk
198 Specialized access to all quadrangles // on plane Vy, Vz::
200 qu_c = elts.getQuadJK(part, i, j, k)
203 0 <= i < ni+1, 0 <= j < nj, 0 <= k < nk
206 Specialized access to all hexahedra::
208 he_xyz = elts.getHexaIJK(part, i, j, k)
211 0 <= i < ni, 0 <= j < nj, 0 <= k < nk