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 * :ref:`tui_projection`
38 * :ref:`Extrusion 3D <tui_prism_3d_algo>` algorithm
39 * :ref:`Radial Prism <tui_radial_prism>` algorithm
40 * :ref:`Body Fitting <tui_cartesian_algo>` algorithm
41 * :ref:`Import 1D-2D Elements from Another Mesh <tui_import>` algorithm
42 * :ref:`Use Faces to be Created Manually <tui_use_existing_faces>` algorithm
43 * :ref:`Segments around Vertex <tui_segments_around_vertex>` algorithm
47 Defining 1D Hypotheses
48 ######################
50 .. _tui_1d_arithmetic:
52 Arithmetic Progression and Geometric Progression
53 ================================================
55 .. literalinclude:: ../../../examples/defining_hypotheses_ex01.py
59 :download:`Download this script <../../../examples/defining_hypotheses_ex01.py>`
66 .. literalinclude:: ../../../examples/defining_hypotheses_adaptive1d.py
70 :download:`Download this script <../../../examples/defining_hypotheses_adaptive1d.py>`
73 .. _tui_deflection_1d:
75 Deflection and Number of Segments
76 =================================
78 .. literalinclude:: ../../../examples/defining_hypotheses_ex02.py
82 :download:`Download this script <../../../examples/defining_hypotheses_ex02.py>`
85 .. _tui_start_and_end_length:
90 .. 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
106 :download:`Download this script <../../../examples/defining_hypotheses_ex04.py>`
108 Defining 2D and 3D hypotheses
109 #############################
112 .. _tui_max_element_area:
117 .. literalinclude:: ../../../examples/defining_hypotheses_ex05.py
121 :download:`Download this script <../../../examples/defining_hypotheses_ex05.py>`
124 .. _tui_max_element_volume:
126 Maximum Element Volume
127 ======================
129 .. literalinclude:: ../../../examples/defining_hypotheses_ex06.py
133 :download:`Download this script <../../../examples/defining_hypotheses_ex06.py>`
136 .. _tui_length_from_edges:
141 .. literalinclude:: ../../../examples/defining_hypotheses_ex07.py
145 :download:`Download this script <../../../examples/defining_hypotheses_ex07.py>`
147 Defining Additional Hypotheses
148 ##############################
155 .. literalinclude:: ../../../examples/defining_hypotheses_ex08.py
159 :download:`Download this script <../../../examples/defining_hypotheses_ex08.py>`
162 .. _tui_defining_meshing_algos:
164 Defining Meshing Algorithms
165 ###########################
167 .. literalinclude:: ../../../examples/defining_hypotheses_ex09.py
171 :download:`Download this script <../../../examples/defining_hypotheses_ex09.py>`
176 Projection Algorithms
177 =====================
179 .. literalinclude:: ../../../examples/defining_hypotheses_ex10.py
183 :download:`Download this script <../../../examples/defining_hypotheses_ex10.py>`
188 .. literalinclude:: ../../../examples/defining_hypotheses_ex11.py
192 :download:`Download this script <../../../examples/defining_hypotheses_ex11.py>`
194 .. _tui_fixed_points:
196 1D Mesh with Fixed Points example
197 #################################
199 .. literalinclude:: ../../../examples/defining_hypotheses_ex12.py
203 :download:`Download this script <../../../examples/defining_hypotheses_ex12.py>`
205 .. _tui_radial_quadrangle:
207 Radial Quadrangle 1D-2D example
208 ###############################
210 .. 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
225 :download:`Download this script <../../../examples/defining_hypotheses_ex14.py>`
227 Quadrangle Parameters example 2 (using different types)
228 #######################################################
230 .. literalinclude:: ../../../examples/defining_hypotheses_ex15.py
234 :download:`Download this script <../../../examples/defining_hypotheses_ex15.py>`
238 "Import 1D-2D Elements from Another Mesh" example
239 #################################################
241 .. literalinclude:: ../../../examples/defining_hypotheses_ex16.py
245 :download:`Download this script <../../../examples/defining_hypotheses_ex16.py>`
247 .. _tui_viscous_layers:
249 Viscous layers construction
250 ###########################
252 .. literalinclude:: ../../../examples/defining_hypotheses_ex17.py
256 :download:`Download this script <../../../examples/defining_hypotheses_ex17.py>`
258 .. _tui_radial_prism:
263 .. literalinclude:: ../../../examples/radial_prism_3d_algo.py
267 :download:`Download this script <../../../examples/radial_prism_3d_algo.py>`
269 .. _tui_cartesian_algo:
271 Usage of Body Fitting algorithm
272 ###############################
274 .. literalinclude:: ../../../examples/cartesian_algo.py
278 :download:`Download this script <../../../examples/cartesian_algo.py>`
280 .. _tui_use_existing_faces:
282 Usage of "Use Faces to be Created Manually" algorithm
283 #####################################################
285 This sample demonstrates how to use **Use Faces to be Created Manually** algorithm,
286 which is actually just a stub allowing to use your own 2D algorithm
287 implemented in Python.
289 .. literalinclude:: ../../../examples/use_existing_faces.py
293 :download:`Download this script <../../../examples/use_existing_faces.py>`
297 .. image:: ../images/use_existing_face_sample_mesh.png
301 .. _tui_prism_3d_algo:
303 Usage of Extrusion 3D meshing algorithm
304 ########################################
306 .. literalinclude:: ../../../examples/prism_3d_algo.py
310 :download:`Download this script <../../../examples/prism_3d_algo.py>`
312 The result geometry and mesh is shown below
314 .. image:: ../images/prism_tui_sample.png
318 .. _tui_quad_ma_proj_algo:
320 Usage of Medial Axis Projection algorithm
321 #########################################
323 .. literalinclude:: ../../../examples/quad_medial_axis_algo.py
327 :download:`Download this script <../../../examples/quad_medial_axis_algo.py>`
330 .. _tui_segments_around_vertex:
332 Usage of Segments around Vertex algorithm
333 #########################################
335 .. literalinclude:: ../../../examples/defining_hypotheses_len_near_vertex.py
339 :download:`Download this script <../../../examples/defining_hypotheses_len_near_vertex.py>`