1 .. _tui_create_boundary:
6 .. index:: single: boundary
7 .. index:: single: frontière
8 .. index:: single: cylindre
9 .. index:: single: sphere
11 Les variables sont décrites dans :ref:`gui_create_boundary`.
13 Méthodes de la classe homard
14 """"""""""""""""""""""""""""
16 +----------------------------------------------------------------+
17 +================================================================+
18 | .. module:: CreateBoundary |
20 | **CreateBoundary(boundary_name, boundary_type)** |
22 | - ``boundary_name`` : le nom de la zone |
23 | - ``boundary_type`` : entier précisant le type de frontière|
27 +----------------------------------------------------------------+
29 Méthodes de la classe boundary
30 """"""""""""""""""""""""""""""
32 +---------------------------------------------------------------+
33 +===============================================================+
34 | .. module:: GetName |
37 | Retourne le nom de la frontière |
38 +---------------------------------------------------------------+
39 | .. module:: GetBoundaryType |
41 | **GetBoundaryType()** |
42 | Retourne le type de la frontière |
43 +---------------------------------------------------------------+
44 | .. module:: SetCylinder |
46 | **SetCylinder(Xcen, Ycen, Zcen, Xaxe, Yaxe, Zaxe, R)** |
48 | - ``Xcen``, ``Ycen``, ``Zcen`` : coordonnées d'un point |
49 | sur l'axe du cylindre |
50 | - ``Xaxe``, ``Yaxe``, ``Zaxe`` : vecteur de l'axe |
51 | - ``R`` : rayon du cylindre |
52 +---------------------------------------------------------------+
53 | .. module:: SetSphere |
55 | **SetSphere(Xcen, Ycen, Zcen, R)** |
57 | - ``Xcen`` : X du centre |
58 | - ``Ycen`` : Y du centre |
59 | - ``Zcen`` : Z du centre |
60 | - ``R`` : rayon de la sphère |
61 +---------------------------------------------------------------+
66 Création d'une frontière sphérique, puis d'une frontière cylindrique : ::
68 fron_1 = homard.CreateBoundary("FRON_1", 2)
69 fron_1.SetSphere(12.3, 3.4, .56, 6.5)
70 fron_2 = homard.CreateBoundary('CYL_1', 1)
71 fron_2.SetCylinder(0.0, 25., -25., 25., 50., 75., 100.)