]> SALOME platform Git repositories - plugins/hexoticplugin.git/blob - doc/salome/gui/HexoticPLUGIN/input/hexoticplugin_python_interface.doc
Salome HOME
COTECH: Update names of DISTENE products
[plugins/hexoticplugin.git] / doc / salome / gui / HexoticPLUGIN / input / hexoticplugin_python_interface.doc
1 /*!
2
3 \page hexoticplugin_python_interface_page Python Interface
4
5 \note The former name of MG-Hexa mesher is \a Hexotic and names
6 of the corresponding classes and modules still include \a "Hexotic".
7
8 Python package HexoticPLUGINBuilder defines
9 HexoticPLUGINBuilder.Hexotic_Algorithm class providing access
10 to the MG-Hexa meshing algorithm and its parameters.
11
12 You can get an instance of this class by calling
13 smeshBuilder.Mesh.Hexahedron(algo=smeshBuilder.MG_Hexa) or 
14 smeshBuilder.Mesh.Hexahedron(algo=smeshBuilder.Hexotic). This call
15 creates an algorithm (if not yet exist), assigns it to the mesh and
16 returns an instance of HexoticPLUGINBuilder.Hexotic_Algorithm to the caller.
17
18 The class of algorithm has methods to set up meshing parameters.
19
20 Below you can see examples of usage of this class for hexahedral mesh generation.
21
22 \anchor tui_hexotic
23
24 -# \ref tui_hexotic_basic
25 -# \ref tui_hexotic_sd_mode
26   -# \ref tui_hexotic_sd_mode1
27   -# \ref tui_hexotic_sd_mode2
28   -# \ref tui_hexotic_sd_mode3
29   -# \ref tui_hexotic_sd_mode4
30
31 \section tui_hexotic_basic Construction of Mesh using MG-Hexa algorithm
32
33 <h2>Example of mesh generation with MG-Hexa algorithm:</h2>
34 \tui_script{hexoticdemo.py}
35
36 \image html hexotic_basic_subdivisions_4_8.png Left: MG-Hexa mesh without hypothesis, right: MG-Hexa mesh with an hypothesis defined by minl=4 and maxl=8
37
38 \subsection tui_local_size Local size
39
40 \image html hexotic_local_size_example.png Example of use of a local size on the skin of a sphere
41
42
43 \ref tui_hexotic "Back to top"
44
45 \section tui_hexotic_sd_mode Effect of the sub-domain mode
46
47 This example illustrates the sub-domain mode of MG-Hexa.
48
49 \subsection tui_hexotic_sd_mode1 Sub-domain mode = 1
50
51 <h2>Example of sub-domain mode 1 with MG-Hexa algorithm:</h2>
52 \tui_script{hexoticsubdom1.py}
53
54 \image html hexotic_sd_mode_1.png MG-Hexa mesh of a box cut by a holed sphere ( sd = 1 )
55
56 \ref tui_hexotic "Back to top"
57
58 \subsection tui_hexotic_sd_mode2 Sub-domain mode = 2
59
60 <h2>Example of sub-domain mode 2 with MG-Hexa algorithm:</h2>
61 \tui_script{hexoticsubdom2.py}
62
63 \image html hexotic_sd_mode_2.png MG-Hexa mesh of a box cut by a holed sphere ( sd = 2 )
64
65 \ref tui_hexotic "Back to top"
66
67 \subsection tui_hexotic_sd_mode3 Sub-domain mode = 3
68
69 <h2>Example of sub-domain mode 3 with MG-Hexa algorithm:</h2>
70 \tui_script{hexoticsubdom3.py}
71
72 \image html hexotic_sd_mode_3.png MG-Hexa mesh of a box cut by a holed sphere ( sd = 3 )
73
74 \ref tui_hexotic "Back to top"
75
76 \subsection tui_hexotic_sd_mode4 Sub-domain mode = 4
77
78 <h2>Example of sub-domain mode 4 with MG-Hexa algorithm:</h2>
79 \tui_script{hexoticsubdom4.py}
80
81 \image html hexotic_sd_mode_4.png MG-Hexa mesh of a box cut by a plane ( On the left, sd = 3: the internal surface is ignored ; on the right sd = 4: all sub-domains are meshed )
82
83 \ref tui_hexotic "Back to top"
84
85 */