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
58 :download:`Download this script <../../../examples/defining_hypotheses_ex01.py>`
65 .. literalinclude:: ../../../examples/defining_hypotheses_adaptive1d.py
68 :download:`Download this script <../../../examples/defining_hypotheses_adaptive1d.py>`
71 .. _tui_deflection_1d:
73 Deflection and Number of Segments
74 =================================
76 .. literalinclude:: ../../../examples/defining_hypotheses_ex02.py
79 :download:`Download this script <../../../examples/defining_hypotheses_ex02.py>`
82 .. _tui_start_and_end_length:
87 .. literalinclude:: ../../../examples/defining_hypotheses_ex03.py
90 :download:`Download this script <../../../examples/defining_hypotheses_ex03.py>`
93 .. _tui_average_length:
98 .. literalinclude:: ../../../examples/defining_hypotheses_ex04.py
101 :download:`Download this script <../../../examples/defining_hypotheses_ex04.py>`
103 Defining 2D and 3D hypotheses
104 #############################
107 .. _tui_max_element_area:
112 .. literalinclude:: ../../../examples/defining_hypotheses_ex05.py
115 :download:`Download this script <../../../examples/defining_hypotheses_ex05.py>`
118 .. _tui_max_element_volume:
120 Maximum Element Volume
121 ======================
123 .. literalinclude:: ../../../examples/defining_hypotheses_ex06.py
126 :download:`Download this script <../../../examples/defining_hypotheses_ex06.py>`
129 .. _tui_length_from_edges:
134 .. literalinclude:: ../../../examples/defining_hypotheses_ex07.py
137 :download:`Download this script <../../../examples/defining_hypotheses_ex07.py>`
139 Defining Additional Hypotheses
140 ##############################
147 .. literalinclude:: ../../../examples/defining_hypotheses_ex08.py
150 :download:`Download this script <../../../examples/defining_hypotheses_ex08.py>`
153 .. _tui_defining_meshing_algos:
155 Defining Meshing Algorithms
156 ###########################
158 .. literalinclude:: ../../../examples/defining_hypotheses_ex09.py
161 :download:`Download this script <../../../examples/defining_hypotheses_ex09.py>`
166 Projection Algorithms
167 =====================
169 .. literalinclude:: ../../../examples/defining_hypotheses_ex10.py
172 :download:`Download this script <../../../examples/defining_hypotheses_ex10.py>`
177 .. literalinclude:: ../../../examples/defining_hypotheses_ex11.py
180 :download:`Download this script <../../../examples/defining_hypotheses_ex11.py>`
182 .. _tui_fixed_points:
184 1D Mesh with Fixed Points example
185 #################################
187 .. literalinclude:: ../../../examples/defining_hypotheses_ex12.py
190 :download:`Download this script <../../../examples/defining_hypotheses_ex12.py>`
192 .. _tui_radial_quadrangle:
194 Radial Quadrangle 1D-2D example
195 ###############################
197 .. literalinclude:: ../../../examples/defining_hypotheses_ex13.py
200 :download:`Download this script <../../../examples/defining_hypotheses_ex13.py>`
202 .. _tui_quadrangle_parameters:
204 Quadrangle Parameters example 1 (meshing a face with 3 edges)
205 ##############################################################
207 .. literalinclude:: ../../../examples/defining_hypotheses_ex14.py
210 :download:`Download this script <../../../examples/defining_hypotheses_ex14.py>`
212 Quadrangle Parameters example 2 (using different types)
213 #######################################################
215 .. literalinclude:: ../../../examples/defining_hypotheses_ex15.py
218 :download:`Download this script <../../../examples/defining_hypotheses_ex15.py>`
222 "Import 1D-2D Elements from Another Mesh" example
223 #################################################
225 .. literalinclude:: ../../../examples/defining_hypotheses_ex16.py
228 :download:`Download this script <../../../examples/defining_hypotheses_ex16.py>`
230 .. _tui_viscous_layers:
232 Viscous layers construction
233 ###########################
235 .. literalinclude:: ../../../examples/defining_hypotheses_ex17.py
238 :download:`Download this script <../../../examples/defining_hypotheses_ex17.py>`
240 .. _tui_radial_prism:
245 .. literalinclude:: ../../../examples/radial_prism_3d_algo.py
248 :download:`Download this script <../../../examples/radial_prism_3d_algo.py>`
250 .. _tui_cartesian_algo:
252 Usage of Body Fitting algorithm
253 ###############################
255 .. literalinclude:: ../../../examples/cartesian_algo.py
258 :download:`Download this script <../../../examples/cartesian_algo.py>`
260 .. _tui_use_existing_faces:
262 Usage of "Use Faces to be Created Manually" algorithm
263 #####################################################
265 This sample demonstrates how to use **Use Faces to be Created Manually** algorithm,
266 which is actually just a stub allowing to use your own 2D algorithm
267 implemented in Python.
269 .. literalinclude:: ../../../examples/use_existing_faces.py
272 :download:`Download this script <../../../examples/use_existing_faces.py>`
276 .. image:: ../images/use_existing_face_sample_mesh.png
280 .. _tui_prism_3d_algo:
282 Usage of Extrusion 3D meshing algorithm
283 ########################################
285 .. literalinclude:: ../../../examples/prism_3d_algo.py
288 :download:`Download this script <../../../examples/prism_3d_algo.py>`
290 The result geometry and mesh is shown below
292 .. image:: ../images/prism_tui_sample.png
296 .. _tui_quad_ma_proj_algo:
298 Usage of Medial Axis Projection algorithm
299 #########################################
301 .. literalinclude:: ../../../examples/quad_medial_axis_algo.py
304 :download:`Download this script <../../../examples/quad_medial_axis_algo.py>`
307 .. _tui_segments_around_vertex:
309 Usage of Segments around Vertex algorithm
310 #########################################
312 .. literalinclude:: ../../../examples/defining_hypotheses_len_near_vertex.py
315 :download:`Download this script <../../../examples/defining_hypotheses_len_near_vertex.py>`