Back to index

salome-smesh  6.5.0
Variables
ex18_dome2 Namespace Reference

Variables

int g_ox = 0
int g_oy = 0
int g_oz = 0
int g_cyl_rayon = 1000
int g_cyl_demiHauteur = 3000
int g_trou_rayon = 5
int g_trou_centre = 300
int g_sphere_rayon = 3500
int g_trim = 15000
tuple c_point = MakeVertex(g_ox, g_oy, g_oz-g_cyl_demiHauteur)
tuple c_dir = MakeVectorDXDYDZ(0, 0, 1)
int c_hauteur = 2
tuple c_cylindre = MakeCylinder(c_point, c_dir, g_cyl_rayon, c_hauteur)
tuple s_hauteur = math.sqrt(g_sphere_rayon*g_sphere_rayon - g_cyl_rayon*g_cyl_rayon)
tuple s_sphere = MakeSphere(g_ox, g_oy, g_oz-s_hauteur, g_sphere_rayon)
list c_outils = []
tuple c_cpd = MakePartition([s_sphere], c_outils, [], [], ShapeType["SOLID"])
tuple c_plan = MakePlane(MakeVertex(g_ox, g_oy, g_oz), MakeVectorDXDYDZ(0, 0, 1), g_trim)
tuple c_calotte_bas = MakeMirrorByPlane(c_calotte_haut, c_plan)
tuple f_piece1 = MakeFuse(c_cylindre, c_calotte_haut)
tuple f_piece = MakeFuse(f_piece1, c_calotte_bas)
 t_hauteur = g_sphere_rayon
tuple t_point = MakeVertex(g_ox-g_trou_centre, g_oy, g_oz-t_hauteur)
tuple t_trou = MakeCylinder(t_point, c_dir, g_trou_rayon, 2*t_hauteur)
tuple t_piece = MakeCut(f_piece, t_trou)
list h_outils = []
tuple h_piece = MakePartition([t_piece], h_outils, [], [], ShapeType["SOLID"])
tuple piece = RemoveExtraEdges(h_piece)
tuple piece_id = addToStudy(piece, "ex18_dome2")
tuple hexa = smesh.Mesh(piece, "ex18_dome2:hexa")
tuple algo = hexa.Segment()

Variable Documentation

tuple ex18_dome2.algo = hexa.Segment()

Definition at line 129 of file ex18_dome2.py.

tuple ex18_dome2.c_calotte_bas = MakeMirrorByPlane(c_calotte_haut, c_plan)

Definition at line 83 of file ex18_dome2.py.

tuple ex18_dome2.c_cpd = MakePartition([s_sphere], c_outils, [], [], ShapeType["SOLID"])

Definition at line 79 of file ex18_dome2.py.

Definition at line 64 of file ex18_dome2.py.

tuple ex18_dome2.c_dir = MakeVectorDXDYDZ(0, 0, 1)

Definition at line 61 of file ex18_dome2.py.

Definition at line 62 of file ex18_dome2.py.

Definition at line 76 of file ex18_dome2.py.

tuple ex18_dome2.c_plan = MakePlane(MakeVertex(g_ox, g_oy, g_oz), MakeVectorDXDYDZ(0, 0, 1), g_trim)

Definition at line 82 of file ex18_dome2.py.

Definition at line 60 of file ex18_dome2.py.

Definition at line 89 of file ex18_dome2.py.

tuple ex18_dome2.f_piece1 = MakeFuse(c_cylindre, c_calotte_haut)

Definition at line 88 of file ex18_dome2.py.

Definition at line 48 of file ex18_dome2.py.

Definition at line 47 of file ex18_dome2.py.

int ex18_dome2.g_ox = 0

Definition at line 43 of file ex18_dome2.py.

int ex18_dome2.g_oy = 0

Definition at line 44 of file ex18_dome2.py.

int ex18_dome2.g_oz = 0

Definition at line 45 of file ex18_dome2.py.

Definition at line 53 of file ex18_dome2.py.

int ex18_dome2.g_trim = 15000

Definition at line 55 of file ex18_dome2.py.

Definition at line 51 of file ex18_dome2.py.

Definition at line 50 of file ex18_dome2.py.

Definition at line 103 of file ex18_dome2.py.

tuple ex18_dome2.h_piece = MakePartition([t_piece], h_outils, [], [], ShapeType["SOLID"])

Definition at line 107 of file ex18_dome2.py.

tuple ex18_dome2.hexa = smesh.Mesh(piece, "ex18_dome2:hexa")

Definition at line 127 of file ex18_dome2.py.

tuple ex18_dome2.piece = RemoveExtraEdges(h_piece)

Definition at line 112 of file ex18_dome2.py.

tuple ex18_dome2.piece_id = addToStudy(piece, "ex18_dome2")

Definition at line 117 of file ex18_dome2.py.

Definition at line 69 of file ex18_dome2.py.

Definition at line 71 of file ex18_dome2.py.

Definition at line 94 of file ex18_dome2.py.

tuple ex18_dome2.t_piece = MakeCut(f_piece, t_trou)

Definition at line 98 of file ex18_dome2.py.

Definition at line 95 of file ex18_dome2.py.

Definition at line 96 of file ex18_dome2.py.