Back to index

salome-smesh  6.5.0
Namespaces | Variables
ex12_grid17partition.py File Reference

Go to the source code of this file.

Namespaces

namespace  ex12_grid17partition

Variables

int ex12_grid17partition.g_x = 0
int ex12_grid17partition.g_y = 0
int ex12_grid17partition.g_z = 0
int ex12_grid17partition.g_arete = 50
int ex12_grid17partition.g_hauteur = 30
int ex12_grid17partition.g_rayon1 = 20
int ex12_grid17partition.g_rayon2 = 30
int ex12_grid17partition.g_rayon3 = 40
int ex12_grid17partition.g_grid = 17
int ex12_grid17partition.g_trim = 1000
tuple ex12_grid17partition.s_boite = MakeBox(g_x-g_arete, g_y-g_hauteur, g_z-g_arete, g_x+g_arete, g_y+g_hauteur, g_z+g_arete)
float ex12_grid17partition.s_pi4 = 3.141592653
int ex12_grid17partition.s_hauteur = 2
tuple ex12_grid17partition.s_centre = MakeVertex(g_x, g_y-g_hauteur, g_z)
tuple ex12_grid17partition.s_dir = MakeVectorDXDYDZ(0, 1, 0)
tuple ex12_grid17partition.s_cyl0 = MakeCylinder(s_centre, s_dir, g_rayon3, s_hauteur)
tuple ex12_grid17partition.s_cyl1 = MakeRotation(s_cyl0, s_dir, s_pi4)
tuple ex12_grid17partition.s_blo1 = MakeCut(s_boite, s_cyl1)
tuple ex12_grid17partition.s_cyl2 = MakeRotation(s_cyl0, s_dir, s_pi4)
tuple ex12_grid17partition.s_blo2 = MakeCut(s_cyl1, s_cyl2)
tuple ex12_grid17partition.s_cyl3 = MakeRotation(s_cyl0, s_dir, s_pi4)
tuple ex12_grid17partition.s_blo3 = MakeCut(s_cyl2, s_cyl3)
int ex12_grid17partition.s_arete = 2
tuple ex12_grid17partition.s_blo4 = MakeBox(g_x-s_arete, g_y-g_hauteur, g_z-s_arete, g_x+s_arete, g_y+g_hauteur, g_z+s_arete)
tuple ex12_grid17partition.s_blo5 = MakeCut(s_cyl3, s_blo4)
list ex12_grid17partition.p_tools = []
tuple ex12_grid17partition.p_partie = MakePartition([s_blo1, s_blo2, s_blo3, s_blo5], p_tools, [], [], ShapeType["SOLID"])
tuple ex12_grid17partition.c_blocs = SubShapeAll(p_partie, ShapeType["SOLID"])
tuple ex12_grid17partition.c_cpd = MakeCompound(c_blocs)
tuple ex12_grid17partition.c_element = MakeGlueFaces(c_cpd, 1e-4)
tuple ex12_grid17partition.piece = MakeMultiTranslation2D(c_element, MakeVectorDXDYDZ(1, 0, 0), 2*g_arete, g_grid, MakeVectorDXDYDZ(0, 0, 1), 2*g_arete, g_grid)
tuple ex12_grid17partition.piece_id = addToStudy(piece, "ex12_grid17partition")
tuple ex12_grid17partition.hexa = smesh.Mesh(piece, "ex12_grid17partition:hexa")
tuple ex12_grid17partition.algo = hexa.Segment()