4 .. _tuiblockscylinderpipe:
6 ================================
7 Cylinders and Pipes Construction
8 ================================
15 .. _tuicylindersimple:
20 To make a simple cylinder grid in python mode, the following data are required:
22 - *nbR* : number of hexahedra on radial.
23 - *nbA* : number of hexahedra along the perimeter of the cylinder.
24 - *nbH* : number of hexahedra along the axis of the cylinder.
26 Use the function **makeCyinderTop**::
28 elts = doc.makeCylinderTop(nbR, nbA, nbH)
30 GUI command: :ref:`guicylindersimple`
33 .. _tuicylinderuniform:
38 The following data are required:
40 - *origin* : origin's coordinates of the cylinder (select a vertex).
41 - *vx* : the base of the cylinder (select a vector).
42 - *vz* : the axis of the cylinder (select a vector).
43 - *rint* : the radius of the hole in the cylinder .
44 - *rext* : the radius of the cylinder.
45 - *angle* : angle of the cylinder around the Z axis.
46 - *hauteur*: the height of the cylinder.
47 - *nbR* : number of hexahedra on radial.
48 - *nbA* : number of hexahedra along the perimeter of the cylinder.
49 - *nbH* : number of hexahedra along the axis of the cylinder.
51 Use the function **makeCylinderUni** to make a uniform cylinder::
53 elts = doc.makeCylinderUni(origin, vx, vz, rint, rext, angle, hauteur, nbR, nbA, nbH)
55 GUI command: :ref:`guicylinderuniform`
58 .. _tuicylindercustom:
63 The following data are required:
65 - *origin* : origin's coordinates of the cylinder (select a vertex).
66 - *vx* : the base of the cylinder (select a vector).
67 - *vz* : the axis of the cylinder (select a vector).
68 - *tr* : a list of radiuses in ascendant order.
69 - *ta* : a list of angles in ascendant order.
70 - *th* : a list of heights in ascendant order.
72 Use the function **makeCylinder** to make a custom cylinder::
74 elts = doc.makeCylinder(origin, vx, vz, tr, ta, th)
76 GUI command: :ref:`guicylindercustom`
78 Operations on *elts*: :ref:`tuielements2`
84 .. literalinclude:: test_doc/cylinder/cylinder.py
93 To make **two cylinders in T shape** the following data are required for each cylinder:
95 - *orig* : the origin of the cylinder (select a vertex).
96 - *vz* : the axis of the cylinder (select a vector).
97 - *rext* : the radius of the cylinder.
98 - *h* : the height of the cylinder.
100 *One of the two cylinders must be bigger than the other.*
102 Use the function **makeCylinders**::
104 elts = doc.makeCylinders (orig1, vz1, rext1, h1, orig2, vz2, rext2, h2)
106 GUI command: :ref:`guicylinders`
108 Operations on *elts*: :ref:`tuielements2`
114 .. literalinclude:: test_doc/cylinder/cylinders.py
128 To make a simple pipe grid in python mode, the following data are required:
130 - *nbR* : number of hexahedra on radial.
131 - *nbA* : number of hexahedra along the perimeter of the pipe.
132 - *nbH* : number of hexahedra along the axis of the pipe.
134 Use the function **makePipeTop**::
136 elts = doc.makePipeTop(nbR, nbA, nbH)
138 GUI command: :ref:`guipipesimple`
146 The following data are required:
149 - *origin* : the origin's coordinates of the pipe (select a vertex).
150 - *vx* : the base of the pipe (select a vector).
151 - *vz* : the axis of the pipe (select a vector).
152 - *rint* : the radius of the hole in the pipe .
153 - *rext* : the radius of the pipe.
154 - *angle* : angle of the pipe around the Z axis.
155 - *hauteur*: the height of the pipe.
156 - *nbR* : number of hexahedra on radial.
157 - *nbA* : number of hexahedra along the perimeter of the pipe.
158 - *nbH* : number of hexahedra along the axis of the pipe.
160 Use the function **makePipeUni** to make a uniform pipe::
162 elts = doc.makePipeUni(origin, vx, vz, rint, rext, angle, hauteur, nbR, nbA, nbH)
164 GUI command: :ref:`guipipeuniform`
172 The following data are required:
174 - *origin* : origin's coordinates of the pipe (select a vertex).
175 - *vx* : the base of the pipe (select a vector).
176 - *vz* : the axis of the pipe (select a vector).
177 - *tr* : a list of radiuses in ascendant order.
178 - *ta* : a list of angles in ascendant order.
179 - *th* : a list of heights in ascendant order.
181 Use the function **makePipe** to make a custom pipe::
183 elts = doc.makePipe(origin, vx, vz, tr, ta, th)
185 GUI command: :ref:`guipipecustom`
187 Operations on *elts*: :ref:`tuielements2`
193 .. literalinclude:: test_doc/pipe/pipe.py
203 To make **two pipes in T shape** the following data are required for each pipe:
205 - *orig* : the origin of the pipe (select a vertex).
206 - *vz* : the axis of the pipe (select a vector).
207 - *rint* : the internal radius of the pipe.
208 - *rext* : the radius of the pipe.
209 - *h* : the height of the pipe.
211 *One of the two pipes must be bigger than the other.*
213 Use the function **makepipes**::
215 elts = doc.makePipes(orig1, vz1, rint1, rext1, h1, orig2, vz2, rint2, rext2, h2)
217 GUI command: :ref:`guipipes`
219 Operations on *elts*: :ref:`tuielements2`
225 .. literalinclude:: test_doc/pipe/pipes.py