smesh/doc/gui/input/tui_creating_meshes.rst

129 lines
3.0 KiB
ReStructuredText
Raw Normal View History

2017-12-08 19:09:48 +05:00
.. _tui_creating_meshes_page:
***************
Creating Meshes
***************
.. contents:: `Table of contents`
First of all see :ref:`example_3d_mesh` which is an example of good python script style for Mesh module.
.. _construction_of_a_mesh:
Construction of a mesh
======================
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/creating_meshes_ex01.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/creating_meshes_ex01.py>`
2017-12-08 19:09:48 +05:00
.. _tui_construction_submesh:
Construction of a sub-mesh
==========================
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/creating_meshes_ex02.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/creating_meshes_ex02.py>`
2017-12-08 19:09:48 +05:00
.. _change_priority_of_submeshes_in_mesh:
Change priority of sub-meshes in mesh
=====================================
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/creating_meshes_ex03.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/creating_meshes_ex03.py>`
2017-12-08 19:09:48 +05:00
.. _tui_editing_while_meshing:
Intermediate edition while meshing
==================================
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/a3DmeshOnModified2Dmesh.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/a3DmeshOnModified2Dmesh.py>`
2017-12-08 19:09:48 +05:00
.. _tui_editing_mesh:
Editing a mesh (i.e. changing hypotheses)
=========================================
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/creating_meshes_ex04.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/creating_meshes_ex04.py>`
2017-12-08 19:09:48 +05:00
.. _tui_export_mesh:
Export of a Mesh
================
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/creating_meshes_ex05.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/creating_meshes_ex05.py>`
2017-12-08 19:09:48 +05:00
2022-10-10 12:34:15 +05:00
.. _how_to_mesh_a_cylinder_with_hexahedrons:
2017-12-08 19:09:48 +05:00
How to mesh a cylinder with hexahedrons?
========================================
2018-05-25 22:04:48 +05:00
The next script creates a hexahedral mesh on a cylinder. A picture below the script
2017-12-08 19:09:48 +05:00
demonstrates the resulting mesh.
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/creating_meshes_ex06.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/creating_meshes_ex06.py>`
2017-12-08 19:09:48 +05:00
.. image:: ../images/mesh_cylinder_hexa.png
2022-10-10 12:34:15 +05:00
:align: center
2017-12-08 19:09:48 +05:00
2022-10-10 12:34:15 +05:00
.. _tui_building_compound:
2017-12-08 19:09:48 +05:00
Building a compound of meshes
=============================
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/creating_meshes_ex07.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/creating_meshes_ex07.py>`
2017-12-08 19:09:48 +05:00
.. _tui_copy_mesh:
Mesh Copying
============
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/creating_meshes_ex08.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/creating_meshes_ex08.py>`
2017-12-08 19:09:48 +05:00
2022-10-10 12:34:15 +05:00
.. _tui_create_dual_mesh:
Creating Dual Mesh
==================
.. literalinclude:: ../../examples/create_dual_mesh.py
:language: python
:download:`Download this script <../../examples/create_dual_mesh.py>`
.. _tui_create_parallel_mesh:
Creating Parallel Mesh
======================
.. literalinclude:: ../../examples/creating_parallel_mesh.py
:language: python
:download:`Download this script <../../examples/creating_parallel_mesh.py>`