Back to index

salome-smesh  6.5.0
Variables
ex12_grid17partition 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 = 17
int g_trim = 1000
tuple 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 s_pi4 = 3.141592653
int s_hauteur = 2
tuple s_centre = MakeVertex(g_x, g_y-g_hauteur, g_z)
tuple s_dir = MakeVectorDXDYDZ(0, 1, 0)
tuple s_cyl0 = MakeCylinder(s_centre, s_dir, g_rayon3, s_hauteur)
tuple s_cyl1 = MakeRotation(s_cyl0, s_dir, s_pi4)
tuple s_blo1 = MakeCut(s_boite, s_cyl1)
tuple s_cyl2 = MakeRotation(s_cyl0, s_dir, s_pi4)
tuple s_blo2 = MakeCut(s_cyl1, s_cyl2)
tuple s_cyl3 = MakeRotation(s_cyl0, s_dir, s_pi4)
tuple s_blo3 = MakeCut(s_cyl2, s_cyl3)
int s_arete = 2
tuple 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 s_blo5 = MakeCut(s_cyl3, s_blo4)
list p_tools = []
tuple p_partie = MakePartition([s_blo1, s_blo2, s_blo3, s_blo5], p_tools, [], [], ShapeType["SOLID"])
tuple c_blocs = SubShapeAll(p_partie, ShapeType["SOLID"])
tuple c_cpd = MakeCompound(c_blocs)
tuple c_element = MakeGlueFaces(c_cpd, 1e-4)
tuple piece = MakeMultiTranslation2D(c_element, MakeVectorDXDYDZ(1, 0, 0), 2*g_arete, g_grid, MakeVectorDXDYDZ(0, 0, 1), 2*g_arete, g_grid)
tuple piece_id = addToStudy(piece, "ex12_grid17partition")
tuple hexa = smesh.Mesh(piece, "ex12_grid17partition:hexa")
tuple algo = hexa.Segment()

Variable Documentation

tuple ex12_grid17partition.algo = hexa.Segment()

Definition at line 127 of file ex12_grid17partition.py.

tuple ex12_grid17partition.c_blocs = SubShapeAll(p_partie, ShapeType["SOLID"])

Definition at line 100 of file ex12_grid17partition.py.

tuple ex12_grid17partition.c_cpd = MakeCompound(c_blocs)

Definition at line 103 of file ex12_grid17partition.py.

tuple ex12_grid17partition.c_element = MakeGlueFaces(c_cpd, 1e-4)

Definition at line 105 of file ex12_grid17partition.py.

Definition at line 46 of file ex12_grid17partition.py.

Definition at line 53 of file ex12_grid17partition.py.

Definition at line 47 of file ex12_grid17partition.py.

Definition at line 49 of file ex12_grid17partition.py.

Definition at line 50 of file ex12_grid17partition.py.

Definition at line 51 of file ex12_grid17partition.py.

Definition at line 55 of file ex12_grid17partition.py.

Definition at line 42 of file ex12_grid17partition.py.

Definition at line 43 of file ex12_grid17partition.py.

Definition at line 44 of file ex12_grid17partition.py.

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

Definition at line 125 of file ex12_grid17partition.py.

tuple ex12_grid17partition.p_partie = MakePartition([s_blo1, s_blo2, s_blo3, s_blo5], p_tools, [], [], ShapeType["SOLID"])

Definition at line 95 of file ex12_grid17partition.py.

Definition at line 91 of file ex12_grid17partition.py.

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)

Definition at line 110 of file ex12_grid17partition.py.

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

Definition at line 115 of file ex12_grid17partition.py.

Definition at line 82 of file ex12_grid17partition.py.

Definition at line 70 of file ex12_grid17partition.py.

Definition at line 75 of file ex12_grid17partition.py.

Definition at line 80 of file ex12_grid17partition.py.

Definition at line 84 of file ex12_grid17partition.py.

Definition at line 86 of file ex12_grid17partition.py.

Definition at line 60 of file ex12_grid17partition.py.

Definition at line 64 of file ex12_grid17partition.py.

Definition at line 67 of file ex12_grid17partition.py.

tuple ex12_grid17partition.s_cyl1 = MakeRotation(s_cyl0, s_dir, s_pi4)

Definition at line 68 of file ex12_grid17partition.py.

tuple ex12_grid17partition.s_cyl2 = MakeRotation(s_cyl0, s_dir, s_pi4)

Definition at line 73 of file ex12_grid17partition.py.

tuple ex12_grid17partition.s_cyl3 = MakeRotation(s_cyl0, s_dir, s_pi4)

Definition at line 78 of file ex12_grid17partition.py.

tuple ex12_grid17partition.s_dir = MakeVectorDXDYDZ(0, 1, 0)

Definition at line 65 of file ex12_grid17partition.py.

Definition at line 63 of file ex12_grid17partition.py.

float ex12_grid17partition.s_pi4 = 3.141592653

Definition at line 62 of file ex12_grid17partition.py.