5 ============================
6 Hemisphere Grid Construction
7 ============================
19 To create a Simple Sphere Grid in python mode, you need the following arguments:
21 - *nbR* : number of hexahedra on radial.
22 - *nbA* : number of hexahedra along the perimeter of the sphere.
23 - *nbH* : number of hexahedra along the axis of the sphere.
25 Use the function **makeSphereTop**::
27 elts = doc.makeSphereTop(nbR, nbA, nbH)
29 GUI command: :ref:`guisphereandrindsimple`
37 The following data are required:
39 - *center*: center coordinates of the sphere (a vertex).
40 - *vx* : the base of the sphere (a vector).
41 - *vz* : the axis of the hole (a vector).
42 - *rtrou* : the radius of the hole in the sphere.
43 - *rext* : the radius of the sphere.
44 - *angle* : angle of the sphere around the Z axis.
45 - *vplan* : the vertex along the vertical axis where the rind will be cut.
46 - *nr* : number of hexahedra on radial.
47 - *na* : number of hexahedra along the perimeter of the sphere.
48 - *nh* : number of hexahedra along the axis of the sphere.
50 Use the function **makeSphereUni** to make a uniform sphere grid::
52 elts = doc.makeSphereUni (center, vx, vz, rtrou, rext, angle, vplan, nr, na, nh)
54 GUI command: :ref:`guisphereuniform`
61 The following data are required:
63 - *center*: center coordinates of the sphere (a vertex).
64 - *vx* : the base of the sphere (a vector).
65 - *vz* : the axis of the sphere (a vector).
66 - *trad* : a list of radiuses in ascendant order.
67 - *tang* : a list of angles in ascendant order.
68 - *tphi* : a list of heights in ascendant order.
70 Use the function **makeSphere** to make a custom sphere::
72 elts = doc.makeSphere(center, vx, vz, trad, tang, tphi)
74 GUI command: :ref:`guispherecustom`
76 Operations on *elts*: :ref:`tuielements2`
82 .. literalinclude:: test_doc/hemisphere/sphere.py
97 To create a Simple Rind Grid in python mode, you need the following arguments:
99 - *nbR* : number of hexahedra on radial.
100 - *nbA* : number of hexahedra along the perimeter of the rind.
101 - *nbH* : number of hexahedra along the axis of the rind.
103 Use the function **makeRindTop**::
105 elts = doc.makeRindTop(nbR, nbA, nbH)
107 GUI command: :ref:`guisphereandrindsimple`
115 The following data are required:
117 - *center*: center coordinates of the rind (a vertex).
118 - *vx* : the base of the rind (a vector).
119 - *vz* : the axis of the hole (a vector).
120 - *rtrou* : the radius of the hole in the rind.
121 - *rint* : the internal radius.
122 - *rext* : the radius of the rind.
123 - *angle* : angle of the rind around the Z axis.
124 - *vplan* : the vertex along the vertical axis where the rind will be cut.
125 - *nr* : number of hexahedra on radial.
126 - *na* : number of hexahedra along the perimeter of the rind.
127 - *nh* : number of hexahedra along the axis of the rind.
129 Use the function **makeRindUni** to make a uniform rind grid::
131 elts = doc.makeRindUni(center, vx, vz, rtrou, rint, rext, angle, vplan, nr, na, nh)
133 GUI command: :ref:`guirinduniform`
140 The following data are required:
142 - *center*: center coordinates of the rind grid (a vertex).
143 - *vx* : the base of the rind grid (a vector).
144 - *vz* : the axis of the rind (a vector).
145 - *trad* : a list of radiuses in ascendant order.
146 - *tang* : a list of angles in ascendant order.
147 - *tphi* : a list of heights in ascendant order.
149 Use the function **makeRind** to make a custom rind grid::
151 elts = doc.makeRind(center, vx, vz, trad, tang, tphi)
153 GUI command: :ref:`guirindcustom`
155 Operations on *elts*: :ref:`tuielements2`
161 .. literalinclude:: test_doc/hemisphere/rind.py
168 Concentric (Spherical) Grid
169 ===========================
171 .. _tuiconcentricsimple:
176 To create a Simple Concentric Grid in python mode, you need the following arguments:
178 - *nbLayers*: the number of nested hexahedra.
179 - *crit* : the criteria.
181 Use the function **makeSphericalTop**::
183 elts = doc.makeSphericalTop(nbLayers, crit)
185 GUI command: :ref:`guiconcentricsimple`
188 .. _tuiconcentricuniform:
193 The following data are required:
195 - *center* : center coordinates of the concentric.
196 - *vx* : the base of the concentric (a vector).
197 - *vz* : the axis of the concentric (a vector).
198 - *rayon* : the radius.
199 - *nbLayers*: the number of nested hexahedra.
200 - *crit* : the criteria.
202 Use the function **makeSphericalUni** to make a uniform concentric::
204 elts = doc.makeSphericalUni(center, vx, vz, rayon, nbLayers, crit)
206 GUI command: :ref:`guiconcentricuniform`
208 .. _tuiconcentriccustom:
213 The following data are required:
215 - *center* : center coordinates of the concentric.
216 - *vx* : the base of the concentric (a vector).
217 - *vz* : the axis of the concentric (a vector).
218 - *tr* : a list of radiuses in ascendant order.
219 - *crit* : the criteria.
221 Use the function **makeSpherical** to make a custom concentric grid::
223 elts = doc.makeSpherical (center, vx, vz, tr, crit)
225 GUI command: :ref:`guiconcentriccustom`
227 Operations on *elts*: :ref:`tuielements2`
233 .. literalinclude:: test_doc/hemisphere/concentric.py