1 .. _tui_defining_hypotheses_page:
3 **********************************
4 Defining Hypotheses and Algorithms
5 **********************************
7 This page provides example codes of :ref:`defining algorithms <tui_defining_meshing_algos>`
10 * Wire discretisation 1D algorithm
12 * :ref:`tui_1d_adaptive` hypothesis
13 * :ref:`Arithmetic Progression <tui_1d_arithmetic>` hypothesis
14 * :ref:`Geometric Progression <tui_1d_arithmetic>` hypothesis
15 * :ref:`Deflection and Number of Segments <tui_deflection_1d>` hypotheses
16 * :ref:`Start and End Length <tui_start_and_end_length>` hypothesis
17 * :ref:`tui_average_length` hypothesis
18 * :ref:`tui_propagation` additional hypotheses
19 * :ref:`Fixed Points 1D <tui_fixed_points>` hypothesis
22 * Triangle: Mefisto 2D algorithm
24 * :ref:`tui_max_element_area` hypothesis
25 * :ref:`tui_length_from_edges` hypothesis
27 * Quadrangle: Mapping 2D algorithm
29 * :ref:`Quadrangle Parameters <tui_quadrangle_parameters>` hypothesis
31 * :ref:`Radial Quadrangle 1D-2D <tui_radial_quadrangle>` algorithm
34 * :ref:`tui_max_element_volume` hypothesis
35 * :ref:`Viscous layers <tui_viscous_layers>` hypotheses
37 * Hexahedron (i,j,k) 3D algorithm
39 * :ref:`tui_block_renumber`
41 * :ref:`tui_projection`
42 * :ref:`Extrusion 3D <tui_prism_3d_algo>` algorithm
43 * :ref:`Radial Prism <tui_radial_prism>` algorithm
44 * :ref:`Body Fitting <tui_cartesian_algo>` algorithm
45 * :ref:`Import 1D-2D Elements from Another Mesh <tui_import>` algorithm
46 * :ref:`Use Faces to be Created Manually <tui_use_existing_faces>` algorithm
47 * :ref:`Segments around Vertex <tui_segments_around_vertex>` algorithm
51 Defining 1D Hypotheses
52 ######################
54 .. _tui_1d_arithmetic:
56 Arithmetic Progression and Geometric Progression
57 ================================================
59 .. literalinclude:: ../../../examples/defining_hypotheses_ex01.py
62 :download:`Download this script <../../../examples/defining_hypotheses_ex01.py>`
69 .. literalinclude:: ../../../examples/defining_hypotheses_adaptive1d.py
72 :download:`Download this script <../../../examples/defining_hypotheses_adaptive1d.py>`
75 .. _tui_deflection_1d:
77 Deflection and Number of Segments
78 =================================
80 .. literalinclude:: ../../../examples/defining_hypotheses_ex02.py
83 :download:`Download this script <../../../examples/defining_hypotheses_ex02.py>`
86 .. _tui_start_and_end_length:
91 .. literalinclude:: ../../../examples/defining_hypotheses_ex03.py
94 :download:`Download this script <../../../examples/defining_hypotheses_ex03.py>`
97 .. _tui_average_length:
102 .. literalinclude:: ../../../examples/defining_hypotheses_ex04.py
105 :download:`Download this script <../../../examples/defining_hypotheses_ex04.py>`
107 Defining 2D and 3D hypotheses
108 #############################
111 .. _tui_max_element_area:
116 .. literalinclude:: ../../../examples/defining_hypotheses_ex05.py
119 :download:`Download this script <../../../examples/defining_hypotheses_ex05.py>`
122 .. _tui_max_element_volume:
124 Maximum Element Volume
125 ======================
127 .. literalinclude:: ../../../examples/defining_hypotheses_ex06.py
130 :download:`Download this script <../../../examples/defining_hypotheses_ex06.py>`
133 .. _tui_length_from_edges:
138 .. literalinclude:: ../../../examples/defining_hypotheses_ex07.py
141 :download:`Download this script <../../../examples/defining_hypotheses_ex07.py>`
143 .. _tui_block_renumber:
145 Renumber 3D hypothesis
146 ======================
148 .. literalinclude:: ../../../examples/filters_ex39.py
151 :download:`Download this script <../../../examples/filters_ex39.py>`
153 Defining Additional Hypotheses
154 ##############################
161 .. literalinclude:: ../../../examples/defining_hypotheses_ex08.py
164 :download:`Download this script <../../../examples/defining_hypotheses_ex08.py>`
167 .. _tui_defining_meshing_algos:
169 Defining Meshing Algorithms
170 ###########################
172 .. literalinclude:: ../../../examples/defining_hypotheses_ex09.py
175 :download:`Download this script <../../../examples/defining_hypotheses_ex09.py>`
180 Projection Algorithms
181 =====================
183 .. literalinclude:: ../../../examples/defining_hypotheses_ex10.py
186 :download:`Download this script <../../../examples/defining_hypotheses_ex10.py>`
191 .. literalinclude:: ../../../examples/defining_hypotheses_ex11.py
194 :download:`Download this script <../../../examples/defining_hypotheses_ex11.py>`
196 .. _tui_fixed_points:
198 1D Mesh with Fixed Points example
199 #################################
201 .. literalinclude:: ../../../examples/defining_hypotheses_ex12.py
204 :download:`Download this script <../../../examples/defining_hypotheses_ex12.py>`
206 .. _tui_radial_quadrangle:
208 Radial Quadrangle 1D-2D example
209 ###############################
211 .. literalinclude:: ../../../examples/defining_hypotheses_ex13.py
214 :download:`Download this script <../../../examples/defining_hypotheses_ex13.py>`
216 .. _tui_quadrangle_parameters:
218 Quadrangle Parameters example 1 (meshing a face with 3 edges)
219 ##############################################################
221 .. literalinclude:: ../../../examples/defining_hypotheses_ex14.py
224 :download:`Download this script <../../../examples/defining_hypotheses_ex14.py>`
226 Quadrangle Parameters example 2 (using different types)
227 #######################################################
229 .. literalinclude:: ../../../examples/defining_hypotheses_ex15.py
232 :download:`Download this script <../../../examples/defining_hypotheses_ex15.py>`
236 "Import 1D-2D Elements from Another Mesh" example
237 #################################################
239 .. literalinclude:: ../../../examples/defining_hypotheses_ex16.py
242 :download:`Download this script <../../../examples/defining_hypotheses_ex16.py>`
244 .. _tui_viscous_layers:
246 Viscous layers construction
247 ###########################
249 .. literalinclude:: ../../../examples/defining_hypotheses_ex17.py
252 :download:`Download this script <../../../examples/defining_hypotheses_ex17.py>`
254 .. _tui_radial_prism:
259 .. literalinclude:: ../../../examples/radial_prism_3d_algo.py
262 :download:`Download this script <../../../examples/radial_prism_3d_algo.py>`
264 .. _tui_cartesian_algo:
266 Usage of Body Fitting algorithm
267 ###############################
269 .. literalinclude:: ../../../examples/cartesian_algo.py
272 :download:`Download this script <../../../examples/cartesian_algo.py>`
274 .. _tui_use_existing_faces:
276 Usage of "Use Faces to be Created Manually" algorithm
277 #####################################################
279 This sample demonstrates how to use **Use Faces to be Created Manually** algorithm,
280 which is actually just a stub allowing to use your own 2D algorithm
281 implemented in Python.
283 .. literalinclude:: ../../../examples/use_existing_faces.py
286 :download:`Download this script <../../../examples/use_existing_faces.py>`
290 .. image:: ../images/use_existing_face_sample_mesh.png
294 .. _tui_prism_3d_algo:
296 Usage of Extrusion 3D meshing algorithm
297 ########################################
299 .. literalinclude:: ../../../examples/prism_3d_algo.py
302 :download:`Download this script <../../../examples/prism_3d_algo.py>`
304 The result geometry and mesh is shown below
306 .. image:: ../images/prism_tui_sample.png
310 .. _tui_quad_ma_proj_algo:
312 Usage of Medial Axis Projection algorithm
313 #########################################
315 .. literalinclude:: ../../../examples/quad_medial_axis_algo.py
318 :download:`Download this script <../../../examples/quad_medial_axis_algo.py>`
321 .. _tui_segments_around_vertex:
323 Usage of Segments around Vertex algorithm
324 #########################################
326 .. literalinclude:: ../../../examples/defining_hypotheses_len_near_vertex.py
329 :download:`Download this script <../../../examples/defining_hypotheses_len_near_vertex.py>`