Salome HOME
appying 2to3
[modules/hydro.git] / doc / salome / tutorial / english / english_geometrie.rst
1 ..
2    Copyright (C) 2015-2016 EDF
3
4    This file is part of SALOME HYDRO module.
5
6    SALOME HYDRO module is free software: you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation, either version 3 of the License, or
9    (at your option) any later version.
10
11    SALOME HYDRO module is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with SALOME HYDRO module.  If not, see <http://www.gnu.org/licenses/>.
18
19 #########################################
20 Geometry step
21 #########################################
22
23 .. |publieGeom| image:: /../_static/publieGeom.png
24    :align: middle
25
26 .. |activeGeom| image:: /../_static/activeGeom.png
27    :align: middle
28
29 .. |facesGeom| image:: /../_static/facesGeom.png
30    :align: middle
31
32 .. |contoursGeomLitMineurDomaine| image:: /../_static/contoursGeomLitMineurDomaine.png
33    :align: middle
34
35 .. |creeGroupeGeom| image:: /../_static/creeGroupeGeom.png
36    :align: middle
37
38 When the calculation case is ready, it must be exported to the geometry module, GEOM, 
39 using the context menu on the name of the calculation case: *Export Calculation Case*.
40  
41 The *HYDRO_Garonne_1* entry appears in the study tree, under *Geometry*.
42
43   |publieGeom|
44
45 The GEOM module can be activated either in the drop-down list under the menu bar, 
46 through the icon in the module bar or via the *Activate Geometry Module* context menu under 
47 the object name *HYDRO_Garonne_1* in the tree.
48
49   |activeGeom|
50
51 Expanding the *HYDRO_Garonne_1* object reveals several groups created automatically 
52 when the calculation case was created:
53 the three faces corresponding to *regions*, with the same names, and group of edges, 
54 *garonne_1_litMineur_Outer* and *garonne_1_domaineEtendu_Outer*. 
55
56 To see the group of faces, select them and click on *show only* in the pop-up menu.
57 The *auto color* context menu under the object name *HYDRO_Garonne_1* allows a better identification
58 of the faces.
59
60   |facesGeom|
61
62 The two groups of edges represent the banks of the minor bed and the outline contour of the domain. 
63 To see them, select them and click on show only in the pop-up menu.
64
65   |contoursGeomLitMineurDomaine|
66
67 The upstream and downstream cross-sections of the minor bed still need to be identified, in order to create the mesh. 
68
69 To create groups in an object, it is best to start by displaying the object alone (*show only*).
70
71 Create an *edges* group type, called *SectionsGaronne* ("GaronneSections"), 
72 containing both ends of the Minor bed.
73
74 This is done using the Create Group command in the context menu. 
75 The dialog box allows the creation of four types of group: points, edges, faces and volumes. 
76 Select the *edges* type – second radio button in the section Shape Type. 
77
78 In the name field, type the group name: *SectionsGaronne* ("GaronneSections"). 
79
80 Select the the two sections in the graphic view. 
81 Several elements can be selected by holding down the "Shift" key. 
82 When the add button is pressed, the number of the SubGeometry appears in the Sub-shape list. 
83
84 Confirm by clicking *Apply and Close*. 
85
86   |creeGroupeGeom|
87
88 Two groups of the *edges* type, *amont* ("upstream") and *aval* ("downstream"), 
89 are also created to distinguish between the two types of boundary conditions. 
90
91 Another two edge groups must likewise be created to close the contour; 
92 named *bordDroiteDomaine* ("domainRightBoundary") and *bordGaucheDomaine* ("domainLeftBoundary"), 
93 they contain the continuous boundaries on the right and left bank sides of the domain.
94
95 The mesh of this geometry can now be created. 
96
97 .. only:: html
98
99    :ref:`ref_exempleInondation`