1 .. _tui_creating_meshes_page:
7 .. contents:: `Table of contents`
10 First of all see :ref:`example_3d_mesh` which is an example of good python script style for Mesh module.
13 .. _construction_of_a_mesh:
15 Construction of a mesh
16 ======================
19 .. _creating_meshes_ex01.py:
21 ``creating_meshes_ex01.py``
23 .. literalinclude:: ../../../examples/creating_meshes_ex01.py
27 :download:`../../../examples/creating_meshes_ex01.py`
29 .. _tui_construction_submesh:
31 Construction of a sub-mesh
32 ==========================
34 .. _creating_meshes_ex02.py:
36 ``creating_meshes_ex02.py``
38 .. literalinclude:: ../../../examples/creating_meshes_ex02.py
42 :download:`../../../examples/creating_meshes_ex02.py`
44 .. _change_priority_of_submeshes_in_mesh:
46 Change priority of sub-meshes in mesh
47 =====================================
49 .. _creating_meshes_ex03.py:
51 ``creating_meshes_ex03.py``
53 .. literalinclude:: ../../../examples/creating_meshes_ex03.py
57 :download:`../../../examples/creating_meshes_ex03.py`
59 .. _tui_editing_while_meshing:
61 Intermediate edition while meshing
62 ==================================
64 .. _a3DmeshOnModified2Dmesh.py:
66 ``a3DmeshOnModified2Dmesh.py``
68 .. literalinclude:: ../../../examples/a3DmeshOnModified2Dmesh.py
72 :download:`../../../examples/a3DmeshOnModified2Dmesh.py`
76 Editing a mesh (i.e. changing hypotheses)
77 =========================================
79 .. _creating_meshes_ex04.py:
81 ``creating_meshes_ex04.py``
83 .. literalinclude:: ../../../examples/creating_meshes_ex04.py
87 :download:`../../../examples/creating_meshes_ex04.py`
94 .. _creating_meshes_ex05.py:
96 ``creating_meshes_ex05.py``
98 .. literalinclude:: ../../../examples/creating_meshes_ex05.py
102 :download:`../../../examples/creating_meshes_ex05.py`
104 .. _how_to_mesh_a_cylinder_with_hexahedrons:
106 How to mesh a cylinder with hexahedrons?
107 ========================================
109 Here you can see an example of python script, creating a hexahedral
110 mesh on a cylinder. A picture below the source code of the script
111 demonstrates the resulting mesh.
113 .. _creating_meshes_ex06.py:
115 ``creating_meshes_ex06.py``
117 .. literalinclude:: ../../../examples/creating_meshes_ex06.py
121 :download:`../../../examples/creating_meshes_ex06.py`
123 .. image:: ../images/mesh_cylinder_hexa.png
127 .. _tui_building_compound:
129 Building a compound of meshes
130 =============================
132 .. _creating_meshes_ex07.py:
134 ``creating_meshes_ex07.py``
136 .. literalinclude:: ../../../examples/creating_meshes_ex07.py
140 :download:`../../../examples/creating_meshes_ex07.py`
147 .. _creating_meshes_ex08.py:
149 ``creating_meshes_ex08.py``
151 .. literalinclude:: ../../../examples/creating_meshes_ex08.py
155 :download:`../../../examples/creating_meshes_ex08.py`