Back to index

salome-smesh  6.5.0
Variables
ex11_grid3partition Namespace Reference

Variables

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

Variable Documentation

tuple ex11_grid3partition.algo = hexa.Segment()

Definition at line 112 of file ex11_grid3partition.py.

Definition at line 69 of file ex11_grid3partition.py.

Definition at line 73 of file ex11_grid3partition.py.

Definition at line 77 of file ex11_grid3partition.py.

Definition at line 61 of file ex11_grid3partition.py.

Definition at line 64 of file ex11_grid3partition.py.

Definition at line 67 of file ex11_grid3partition.py.

Definition at line 71 of file ex11_grid3partition.py.

Definition at line 75 of file ex11_grid3partition.py.

tuple ex11_grid3partition.e_dir = MakeVectorDXDYDZ(0, 1, 0)

Definition at line 65 of file ex11_grid3partition.py.

Definition at line 63 of file ex11_grid3partition.py.

Definition at line 47 of file ex11_grid3partition.py.

Definition at line 54 of file ex11_grid3partition.py.

Definition at line 48 of file ex11_grid3partition.py.

Definition at line 50 of file ex11_grid3partition.py.

Definition at line 51 of file ex11_grid3partition.py.

Definition at line 52 of file ex11_grid3partition.py.

Definition at line 56 of file ex11_grid3partition.py.

Definition at line 43 of file ex11_grid3partition.py.

Definition at line 44 of file ex11_grid3partition.py.

Definition at line 45 of file ex11_grid3partition.py.

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)

Definition at line 93 of file ex11_grid3partition.py.

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

Definition at line 110 of file ex11_grid3partition.py.

tuple ex11_grid3partition.p_element = RemoveExtraEdges(p_part, doUnionFaces=True)

Definition at line 88 of file ex11_grid3partition.py.

tuple ex11_grid3partition.p_part = MakePartition([e_blo1, e_blo2, e_blo3], p_tools, [], [], ShapeType["SOLID"])

Definition at line 86 of file ex11_grid3partition.py.

Definition at line 82 of file ex11_grid3partition.py.

tuple ex11_grid3partition.piece = MakeGlueFaces(grid, 1e-5)

Definition at line 95 of file ex11_grid3partition.py.

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

Definition at line 100 of file ex11_grid3partition.py.