Salome HOME
updated copyright message
[modules/hexablock.git] / doc / tui_sphergrid.rst
1 :tocdepth: 3
2
3
4 .. _tuisphergrid:
5
6 ====================
7 Make spherical grids
8 ====================
9
10
11 To add a spherical grid, the following data are required:
12
13 - the center (vertex) of the central hexahedron: *c*
14 - the radius of the internal hexahedron: *r*
15 - the number of embedded hexahedra: *n*
16 - the coefficient of growth:*k*
17
18
19 Make a spherical grid::
20
21     elts = doc.makeSpherical(c, r, n, k)
22
23 Operations on *elts*: :ref:`tuielements2`
24
25
26 The result is an array of hexahedra starting with the central and
27 other hexahedral are arranged layer by layer from the center. Each
28 layer contains six hexahedral always in the following order: two along
29 the X axis, then 2 for the Y axis and 2 for the Z axis.
30
31
32 Example
33 -------
34
35 .. literalinclude:: test_doc/grid/spherical_grid.py
36    :linenos:
37
38
39 GUI command: :ref:`guisphergrid`