Back to index

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

Go to the source code of this file.

Namespaces

namespace  ex11_grid3partition

Variables

int ex11_grid3partition.g_x = 0
int ex11_grid3partition.g_y = 0
int ex11_grid3partition.g_z = 0
int ex11_grid3partition.g_arete = 50
int ex11_grid3partition.g_hauteur = 30
int ex11_grid3partition.g_rayon1 = 20
int ex11_grid3partition.g_rayon2 = 30
int ex11_grid3partition.g_rayon3 = 40
int ex11_grid3partition.g_grid = 3
int ex11_grid3partition.g_trim = 1000
tuple ex11_grid3partition.e_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)
int ex11_grid3partition.e_hauteur = 2
tuple ex11_grid3partition.e_centre = MakeVertex(g_x, g_y-g_hauteur, g_z)
tuple ex11_grid3partition.e_dir = MakeVectorDXDYDZ(0, 1, 0)
tuple ex11_grid3partition.e_cyl1 = MakeCylinder(e_centre, e_dir, g_rayon3, e_hauteur)
tuple ex11_grid3partition.e_blo1 = MakeCut(e_boite, e_cyl1)
tuple ex11_grid3partition.e_cyl2 = MakeCylinder(e_centre, e_dir, g_rayon2, e_hauteur)
tuple ex11_grid3partition.e_blo2 = MakeCut(e_cyl1, e_cyl2)
tuple ex11_grid3partition.e_cyl3 = MakeCylinder(e_centre, e_dir, g_rayon1, e_hauteur)
tuple ex11_grid3partition.e_blo3 = MakeCut(e_cyl2, e_cyl3)
list ex11_grid3partition.p_tools = []
tuple ex11_grid3partition.p_part = MakePartition([e_blo1, e_blo2, e_blo3], p_tools, [], [], ShapeType["SOLID"])
tuple ex11_grid3partition.p_element = RemoveExtraEdges(p_part, doUnionFaces=True)
tuple ex11_grid3partition.grid = MakeMultiTranslation2D(p_element, MakeVectorDXDYDZ(1, 0, 0), 2*g_arete, g_grid, MakeVectorDXDYDZ(0, 0, 1), 2*g_arete, g_grid)
tuple ex11_grid3partition.piece = MakeGlueFaces(grid, 1e-5)
tuple ex11_grid3partition.piece_id = addToStudy(piece, "ex11_grid3partition")
tuple ex11_grid3partition.hexa = smesh.Mesh(piece, "ex11_grid3partition:hexa")
tuple ex11_grid3partition.algo = hexa.Segment()