]> SALOME platform Git repositories - modules/homard.git/blob - doc/tui_create_boundary_en.rst
Salome HOME
insertion de la documentation en anglais - phase 1
[modules/homard.git] / doc / tui_create_boundary_en.rst
1 .. _tui_create_boundary_en:
2
3 The boundary
4 ============
5
6 .. index:: single: boundary
7 .. index:: single: cylindre
8 .. index:: single: sphere
9
10 The variables are described in :ref:`gui_create_boundary_en`.
11
12 Methods of the class homard
13 """""""""""""""""""""""""""
14 These methods returns an instance of the class boundary.
15
16 +----------------------------------------------------------------------------------------+
17 +----------------------------------------------------------------------------------------+
18 | .. module:: CreateBoundaryDi                                                           |
19 |                                                                                        |
20 | **CreateBoundaryDi(boundary_name, mesh_name, mesh_file)**                              |
21 |     Returns an instance of the class ``boundary``, type discrete after its creation    |
22 |                                                                                        |
23 |     - ``boundary_name``: the name of the discrete boundary                             |
24 |     - ``mesh_name``: the name of the mesh of the boundary                              |
25 |     - ``mesh_file``: the name of the file for this mesh                                |
26 +----------------------------------------------------------------------------------------+
27 | .. module:: CreateBoundaryCylinder                                                     |
28 |                                                                                        |
29 | **CreateBoundaryCylinder(boundary_name, Xcen, Ycen, Zcen, Xaxe, Yaxe, Zaxe, R)**       |
30 |     Returns an instance of the class ``boundary`` analytical type cylindrical          |
31 |     after its creation                                                                 |
32 |                                                                                        |
33 |     - ``boundary_name``: the name of the analytical boundary based on a cylinder       |
34 |     - ``Xcen``, ``Ycen``, ``Zcen``: coordinates of a point on the axis of the cylinder |
35 |     - ``Xaxe``, ``Yaxe``, ``Zaxe``: vector of the axis                                 |
36 |     - ``R``: radius of the cylinder                                                    |
37 +----------------------------------------------------------------------------------------+
38 | .. module:: CreateBoundarySphere                                                       |
39 |                                                                                        |
40 | **CreateBoundarySphere(boundary_name, Xcen, Ycen, Zcen, R)**                           |
41 |     Returns an instance of the class ``boundary`` analytical type spherical            |
42 |     after its creation                                                                 |
43 |                                                                                        |
44 |     - ``boundary_name``: the name of the boundary analytique based on a sphere         |
45 |     - ``Xcen``, ``Ycen``, ``Zcen``: coordinates of the centre of the sphere            |
46 |     - ``R``: radius of the sphere                                                      |
47 +----------------------------------------------------------------------------------------+
48 | .. module:: CreateBoundaryConeA                                                        |
49 |                                                                                        |
50 | **CreateBoundaryConeA(boundary_name, Xaxe, Yaxe, Zaxe, Angle, Xcen, Ycen, Zcen)**      |
51 |     Returns an instance of the class ``boundary`` analytical type conical              |
52 |     after its creation                                                                 |
53 |                                                                                        |
54 |     - ``boundary_name``: the name of the boundary analytique based on a cone           |
55 |     - ``Xaxe``, ``Yaxe``, ``Zaxe``: vector of the axis                                 |
56 |     - ``Angle``: opening angle of the cone in degree (between 0 and 90)                |
57 |     - ``Xcen``, ``Ycen``, ``Zcen``: coordinates of the centre of the cone              |
58 +----------------------------------------------------------------------------------------+
59 | .. module:: CreateBoundaryConeR                                                        |
60 |                                                                                        |
61 | **CreateBoundaryConeR(boundary_name, Xc1, Yc1, Zc1, R1, Xc2, Yc2, Zc2, R2)**           |
62 |     Returns an instance of the class ``boundary`` analytical type conical              |
63 |     after its creation                                                                 |
64 |                                                                                        |
65 |     - ``boundary_name``: the name of the boundary analytique based on a cone           |
66 |     - ``Xc1``, ``Yc1``, ``Zc1``: coordinates of the first centre of the cone           |
67 |     - ``R1``: radius of the cone at the first centre of the cone                       |
68 |     - ``Xc2``, ``Yc2``, ``Zc2``: coordinates of the second centre of the cone          |
69 |     - ``R2``: radius of the cone at the second centre of the cone                      |
70 +----------------------------------------------------------------------------------------+
71
72 +---------------------------------------------------------------+
73 +---------------------------------------------------------------+
74 | .. module:: GetBoundary                                       |
75 |                                                               |
76 | **GetBoundary(boundary_name)**                                |
77 |     Returns the instance of the class classe ``boundary``     |
78 |     known by its name                                         |
79 |                                                               |
80 |     - ``boundary_name``: the name of the boundary             |
81 +---------------------------------------------------------------+
82 | .. module:: GetAllBoundarysName                               |
83 |                                                               |
84 | **GetAllBoundarysName()**                                     |
85 |     Returns the list of the names of all the existing         |
86 |     boundaries                                                |
87 |                                                               |
88 +---------------------------------------------------------------+
89
90 Methods of the class cas
91 """""""""""""""""""""""""
92 See also in :ref:`tui_create_case_en`.
93
94 +---------------------------------------------------------------+
95 +---------------------------------------------------------------+
96 | .. module:: AddBoundaryGroup                                  |
97 |                                                               |
98 | **AddBoundaryGroup(boundary, group)**                         |
99 |     Add a boundary to the definition of a case                |
100 |                                                               |
101 |     - ``boundary``: nom d'une frontière courbe à suivre       |
102 |                                                               |
103 |     Pour une frontière discrete:                              |
104 |                                                               |
105 |     . si toutes les lignes courbes sont suivies, le second    |
106 |       argument est une chaîne vide.                           |
107 |     . si seulement certaines lignes courbes sont suivies,     |
108 |       ``group`` est the name d'un groupe de segments à suivre |
109 |                                                               |
110 |     Pour une frontière analytique:                            |
111 |                                                               |
112 |     - ``group``: nom d'un groupe de faces placées sur la      |
113 |       frontière                                               |
114 +---------------------------------------------------------------+
115
116 Methods of the class boundary
117 """"""""""""""""""""""""""""""
118
119 +---------------------------------------------------------------+
120 +---------------------------------------------------------------+
121 | .. module:: GetName                                           |
122 |                                                               |
123 | **GetName()**                                                 |
124 |     Retourne the name of the boundary                         |
125 +---------------------------------------------------------------+
126 | .. module:: GetType                                           |
127 |                                                               |
128 | **GetType()**                                                 |
129 |     Retourne le type de la frontière:                         |
130 |                                                               |
131 |         * 0: discrete                                         |
132 |         * 1: cylindre                                         |
133 |         * 2: sphere                                           |
134 |         * 3: cône défini par un axe et un angle               |
135 |         * 4: cône défini par deux rayons                      |
136 +---------------------------------------------------------------+
137 | .. module:: GetCoords                                         |
138 |                                                               |
139 | **GetCoords()**                                               |
140 |     Retourne un tableau contenant les coordinates de la       |
141 |     frontière dans l'ordre d'entrée dans le CreateBoundaryXXXX|
142 |     associé                                                   |
143 +---------------------------------------------------------------+
144 | .. module:: Delete                                            |
145 |                                                               |
146 | **Delete()**                                                  |
147 |     Detruit la frontière.                                     |
148 |     Pour une frontière discrete, le fichier du maillage       |
149 |     associé est conservé.                                     |
150 |                                                               |
151 |     Retourne un entier:                                       |
152 |         * 0: destruction réussie                              |
153 |         * autre valeur: problème                              |
154 +---------------------------------------------------------------+
155
156
157 Exemple
158 """""""
159 Création d'une frontière discrete, d'une frontière sphèrique, puis d'une frontière cylindrique: ::
160
161     inter = homard.CreateBoundaryDi("INTERSECTION", 'PIQUAGE', dircase+'/tutorial_4.fr.med')
162     fron_1 = homard.CreateBoundarySphere("FRON_1", 12.3, 3.4, .56, 6.5)
163     fron_2 = homard.CreateBoundaryCylinder('CYL_1', 0.0, 25., -25., 25., 50., 75., 100.)
164
165
166 Saisie graphique correspondante
167 """""""""""""""""""""""""""""""
168 Consulter :ref:`gui_create_boundary_en`