]> SALOME platform Git repositories - modules/hexablock.git/blob - doc/creategrids.rst
Salome HOME
Merge from V6_main 13/12/2012
[modules/hexablock.git] / doc / creategrids.rst
1 :tocdepth: 3
2
3 .. _creategrids:
4
5 ============
6 Create grids
7 ============
8
9 To create a **Grid** in the **Main Menu** select **Model -> Construction -> Make Grid**.
10
11 Three kinds of grid can be created:
12
13 - cartesian grid (see :ref:`guicartgrid`),
14 - cylindrical grid (see :ref:`guicylgrid`),
15 - spherical grid (see :ref:`guisphergrid`).
16
17 .. _guicartgrid:
18
19 Cartesian grid
20 ==============
21
22 To create a cartesian grid, select radio button **Cartesian**:
23
24 .. image:: _static/gui_make_cart_grid.png
25    :align: center
26
27 .. centered::
28       Dialogue Box for a Cartesian grid
29
30
31 The following data are required:
32
33 - the vertex of the initial hexahedron,
34 - the vector corresponding to the diametrically opposite vertex to the initial vertex,
35 - the number of repetition of this hexahedra along the three axes
36   (n(x), n(y) and n(z)).
37
38
39 The result of this action is:
40
41 .. image:: _static/cartgrid3.png
42    :align: center
43
44 .. centered::
45    Result Cartesian Grid
46
47 TUI command: :ref:`tuicartgrid`
48
49
50 .. _guicylgrid:
51
52 Cylindrical grid
53 ================
54
55 To create a cylindrical grid, select radio button **Cylindrical**:
56
57 .. image:: _static/gui_make_cyl_grid.png
58    :align: center
59
60 .. centered::
61    Dialogue Box for a Cylindrical grid (regular size)
62
63
64 The following data are required:
65
66 - Cylinder
67     - center: coordinates of the cylinder base center (select a vertex).
68     - axis: direction vector of the cylinder (select a vector).
69     - base: base vector of the cylinder (select a vector).
70
71 - Grid
72     - radius: size and number of elements from the center.
73     - angle: size and number of elements around the center.
74     - height: size and number of elements on height.
75     - fill: choose this option to fill the central part of the hexhahedra.
76
77
78 Elements size of the grid can be irregular (differents sizes). Select the adequate radio button:
79
80 .. image:: _static/gui_make_cyl_grid_irregular.png
81    :align: center
82
83 .. centered::
84    Dialogue Box for a Cylindrical grid (irregular size)
85    
86
87 The result:
88
89 .. image:: _static/cylgrid1.png
90    :align: center
91
92 .. image:: _static/cylgrid2.png
93    :align: center
94
95 .. image:: _static/cylgrid3.png
96    :align: center
97
98 .. image:: _static/cylgrid4.png
99    :align: center
100
101 .. image:: _static/cylgrid5.png
102    :align: center
103
104 .. image:: _static/cylgrid6.png
105    :align: center
106
107
108 .. centered::
109    Cylindrical grids with different filling cases
110
111 TUI command: :ref:`tuicylgrid`
112
113 .. _guisphergrid:
114
115 Spherical grid
116 ===============
117
118 To create a spherical grid, select radio button **Spherical**:
119
120 .. image:: _static/gui_make_spher_grid.png
121    :align: center
122
123 .. centered::
124    Dialogue Box for a Spherical grid
125
126
127 The following data are required:
128
129 - the center (vertex) of the central hexahedron,
130 - the radius of the internal hexahedron
131 - the number of embedded hexahedra (nb),
132 - the coefficient of growth (k).
133
134
135 The result is an array of hexahedra starting with the central and
136 other hexahedral are arranged layer by layer from the center. Each
137 layer contains six hexahedral always in the following order: two along
138 the X axis, then two for the Y axis and two for the Z axis.
139
140 The result of this action is:
141
142 .. image:: _static/sph_grid.png
143    :align: center
144
145 .. centered::
146    Resulting Spherical grid
147
148 TUI command: :ref:`tuisphergrid`