smesh/doc/gui/input/tui_defining_hypotheses.rst

341 lines
8.6 KiB
ReStructuredText
Raw Normal View History

2017-12-08 19:09:48 +05:00
.. _tui_defining_hypotheses_page:
**********************************
Defining Hypotheses and Algorithms
**********************************
2018-05-25 22:04:48 +05:00
This page provides example codes of :ref:`defining algorithms <tui_defining_meshing_algos>`
and hypotheses.
2017-12-08 19:09:48 +05:00
* Wire discretisation 1D algorithm
* :ref:`tui_1d_adaptive` hypothesis
* :ref:`Arithmetic Progression <tui_1d_arithmetic>` hypothesis
2018-05-25 22:04:48 +05:00
* :ref:`Geometric Progression <tui_1d_arithmetic>` hypothesis
* :ref:`Deflection and Number of Segments <tui_deflection_1d>` hypotheses
* :ref:`Start and End Length <tui_start_and_end_length>` hypothesis
* :ref:`tui_average_length` hypothesis
* :ref:`tui_propagation` additional hypotheses
* :ref:`Fixed Points 1D <tui_fixed_points>` hypothesis
2017-12-08 19:09:48 +05:00
2022-04-15 20:49:22 +05:00
* Triangle: NETGEN 2D algorithm
2017-12-08 19:09:48 +05:00
* :ref:`tui_max_element_area` hypothesis
* :ref:`tui_length_from_edges` hypothesis
* Quadrangle: Mapping 2D algorithm
* :ref:`Quadrangle Parameters <tui_quadrangle_parameters>` hypothesis
2017-12-08 19:09:48 +05:00
* :ref:`Radial Quadrangle 1D-2D <tui_radial_quadrangle>` algorithm
2017-12-08 19:09:48 +05:00
* NETGEN 3D algorithm
* :ref:`tui_max_element_volume` hypothesis
2018-05-25 22:04:48 +05:00
* :ref:`Viscous layers <tui_viscous_layers>` hypotheses
2017-12-08 19:09:48 +05:00
2020-10-09 13:44:21 +05:00
* Hexahedron (i,j,k) 3D algorithm
* :ref:`tui_block_renumber`
2017-12-08 19:09:48 +05:00
* :ref:`tui_projection`
* :ref:`Extrusion 3D <tui_prism_3d_algo>` algorithm
* :ref:`Radial Prism <tui_radial_prism>` algorithm
* :ref:`Body Fitting <tui_cartesian_algo>` algorithm
2018-05-25 22:04:48 +05:00
* :ref:`Import 1D-2D Elements from Another Mesh <tui_import>` algorithm
* :ref:`Use Faces to be Created Manually <tui_use_existing_faces>` algorithm
* :ref:`Segments around Vertex <tui_segments_around_vertex>` algorithm
2017-12-08 19:09:48 +05:00
Defining 1D Hypotheses
######################
.. _tui_1d_arithmetic:
Arithmetic Progression and Geometric Progression
================================================
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_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/defining_hypotheses_ex01.py>`
2017-12-08 19:09:48 +05:00
.. _tui_1d_adaptive:
Adaptive
========
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_adaptive1d.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/defining_hypotheses_adaptive1d.py>`
2017-12-08 19:09:48 +05:00
.. _tui_deflection_1d:
Deflection and Number of Segments
=================================
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_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/defining_hypotheses_ex02.py>`
2017-12-08 19:09:48 +05:00
.. _tui_start_and_end_length:
Start and End Length
====================
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_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/defining_hypotheses_ex03.py>`
2017-12-08 19:09:48 +05:00
.. _tui_average_length:
Local Length
============
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_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/defining_hypotheses_ex04.py>`
2017-12-08 19:09:48 +05:00
Defining 2D and 3D hypotheses
#############################
.. _tui_max_element_area:
Maximum Element Area
====================
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_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/defining_hypotheses_ex05.py>`
2017-12-08 19:09:48 +05:00
.. _tui_max_element_volume:
Maximum Element Volume
======================
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_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/defining_hypotheses_ex06.py>`
2017-12-08 19:09:48 +05:00
.. _tui_length_from_edges:
Length from Edges
=================
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_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/defining_hypotheses_ex07.py>`
2017-12-08 19:09:48 +05:00
2020-10-09 13:44:21 +05:00
.. _tui_block_renumber:
Renumber 3D hypothesis
======================
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/filters_ex39.py
2020-10-09 13:44:21 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/filters_ex39.py>`
2020-10-09 13:44:21 +05:00
2017-12-08 19:09:48 +05:00
Defining Additional Hypotheses
##############################
.. _tui_propagation:
Propagation
===========
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_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/defining_hypotheses_ex08.py>`
2017-12-08 19:09:48 +05:00
.. _tui_defining_meshing_algos:
Defining Meshing Algorithms
###########################
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_ex09.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/defining_hypotheses_ex09.py>`
2017-12-08 19:09:48 +05:00
.. _tui_projection:
Projection Algorithms
=====================
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_ex10.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/defining_hypotheses_ex10.py>`
2017-12-08 19:09:48 +05:00
Projection 1D2D
===============
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_ex11.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/defining_hypotheses_ex11.py>`
2017-12-08 19:09:48 +05:00
.. _tui_fixed_points:
1D Mesh with Fixed Points example
#################################
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_ex12.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/defining_hypotheses_ex12.py>`
2017-12-08 19:09:48 +05:00
.. _tui_radial_quadrangle:
Radial Quadrangle 1D-2D example
###############################
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_ex13.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/defining_hypotheses_ex13.py>`
2017-12-08 19:09:48 +05:00
.. _tui_quadrangle_parameters:
Quadrangle Parameters example 1 (meshing a face with 3 edges)
##############################################################
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_ex14.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/defining_hypotheses_ex14.py>`
2017-12-08 19:09:48 +05:00
Quadrangle Parameters example 2 (using different types)
#######################################################
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_ex15.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/defining_hypotheses_ex15.py>`
2017-12-08 19:09:48 +05:00
.. _tui_import:
"Import 1D-2D Elements from Another Mesh" example
#################################################
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_ex16.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/defining_hypotheses_ex16.py>`
2017-12-08 19:09:48 +05:00
.. _tui_viscous_layers:
Viscous layers construction
###########################
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_ex17.py
2017-12-08 19:09:48 +05:00
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/defining_hypotheses_ex17.py>`
2018-05-25 22:04:48 +05:00
.. _tui_viscous_layers_api:
Viscous layers API construction
###########################
.. literalinclude:: ../../examples/defining_hypotheses_vlapi_ex17.py
:language: python
:download:`Download this script <../../examples/defining_hypotheses_vlapi_ex17.py>`
2018-05-25 22:04:48 +05:00
.. _tui_radial_prism:
Radial Prism example
####################
2017-12-08 19:09:48 +05:00
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/radial_prism_3d_algo.py
2018-05-25 22:04:48 +05:00
:language: python
2017-12-08 19:09:48 +05:00
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/radial_prism_3d_algo.py>`
.. _tui_cartesian_algo:
Usage of Body Fitting algorithm
###############################
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/cartesian_algo.py
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/cartesian_algo.py>`
.. _tui_use_existing_faces:
Usage of "Use Faces to be Created Manually" algorithm
#####################################################
This sample demonstrates how to use **Use Faces to be Created Manually** algorithm,
which is actually just a stub allowing to use your own 2D algorithm
implemented in Python.
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/use_existing_faces.py
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/use_existing_faces.py>`
Resulting mesh:
.. image:: ../images/use_existing_face_sample_mesh.png
:align: center
.. _tui_prism_3d_algo:
Usage of Extrusion 3D meshing algorithm
########################################
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/prism_3d_algo.py
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/prism_3d_algo.py>`
The result geometry and mesh is shown below
.. image:: ../images/prism_tui_sample.png
:align: center
.. _tui_quad_ma_proj_algo:
Usage of Medial Axis Projection algorithm
#########################################
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/quad_medial_axis_algo.py
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/quad_medial_axis_algo.py>`
.. _tui_segments_around_vertex:
Usage of Segments around Vertex algorithm
#########################################
2022-04-11 18:28:01 +05:00
.. literalinclude:: ../../examples/defining_hypotheses_len_near_vertex.py
:language: python
2022-04-11 18:28:01 +05:00
:download:`Download this script <../../examples/defining_hypotheses_len_near_vertex.py>`