Back to index

salome-smesh  6.5.0
Namespaces | Functions | Variables
ex13_hole1partial.py File Reference

Go to the source code of this file.

Namespaces

namespace  ex13_hole1partial

Functions

def ex13_hole1partial.triangle
def ex13_hole1partial.local

Variables

int ex13_hole1partial.box_dx = 1000
int ex13_hole1partial.box_dy = 900
int ex13_hole1partial.box_dz = 800
int ex13_hole1partial.cyl_x = 500
int ex13_hole1partial.cyl_y = 300
int ex13_hole1partial.cyl_dz = 600
int ex13_hole1partial.cyl_radius = 150
int ex13_hole1partial.cyl_thick = 30
tuple ex13_hole1partial.hole_point_11 = MakeVertex(0 , 0 , 0)
tuple ex13_hole1partial.hole_point_21 = MakeVertex(box_dx, 0 , 0)
tuple ex13_hole1partial.hole_point_12 = MakeVertex(0 , box_dy, 0)
tuple ex13_hole1partial.hole_point_22 = MakeVertex(box_dx, box_dy, 0)
tuple ex13_hole1partial.hole_center = MakeVertex(cyl_x, cyl_y, 0)
tuple ex13_hole1partial.hole_face_1 = triangle(hole_point_11, hole_point_21, hole_center)
tuple ex13_hole1partial.hole_face_2 = triangle(hole_point_21, hole_point_22, hole_center)
tuple ex13_hole1partial.hole_face_3 = triangle(hole_point_12, hole_point_22, hole_center)
tuple ex13_hole1partial.hole_face_4 = triangle(hole_point_11, hole_point_12, hole_center)
tuple ex13_hole1partial.cyl_dir = MakeVectorDXDYDZ(0, 0, 1)
tuple ex13_hole1partial.hole_solid_1 = MakePrismVecH(hole_face_1, cyl_dir, cyl_dz)
tuple ex13_hole1partial.hole_solid_2 = MakePrismVecH(hole_face_2, cyl_dir, cyl_dz)
tuple ex13_hole1partial.hole_solid_3 = MakePrismVecH(hole_face_3, cyl_dir, cyl_dz)
tuple ex13_hole1partial.hole_solid_4 = MakePrismVecH(hole_face_4, cyl_dir, cyl_dz)
tuple ex13_hole1partial.hole_internal = MakeCylinder(hole_center, cyl_dir, cyl_radius , cyl_dz)
tuple ex13_hole1partial.hole_external = MakeCylinder(hole_center, cyl_dir, cyl_radius+cyl_thick, cyl_dz)
tuple ex13_hole1partial.hole_median = MakeCut(hole_external, hole_internal)
list ex13_hole1partial.blocks = []
tuple ex13_hole1partial.full_point_11 = MakeVertex(0 , 0 , cyl_dz)
tuple ex13_hole1partial.full_point_21 = MakeVertex(box_dx, 0 , cyl_dz)
tuple ex13_hole1partial.full_point_12 = MakeVertex(0 , box_dy, cyl_dz)
tuple ex13_hole1partial.full_point_22 = MakeVertex(box_dx, box_dy, cyl_dz)
tuple ex13_hole1partial.full_center = MakeVertex(cyl_x, cyl_y, cyl_dz)
tuple ex13_hole1partial.full_face_1 = triangle(full_point_11, full_point_21, full_center)
tuple ex13_hole1partial.full_face_2 = triangle(full_point_21, full_point_22, full_center)
tuple ex13_hole1partial.full_face_3 = triangle(full_point_12, full_point_22, full_center)
tuple ex13_hole1partial.full_face_4 = triangle(full_point_11, full_point_12, full_center)
 ex13_hole1partial.full_dz = box_dz-cyl_dz
tuple ex13_hole1partial.full_solid_1 = MakePrismVecH(full_face_1, cyl_dir, full_dz)
tuple ex13_hole1partial.full_solid_2 = MakePrismVecH(full_face_2, cyl_dir, full_dz)
tuple ex13_hole1partial.full_solid_3 = MakePrismVecH(full_face_3, cyl_dir, full_dz)
tuple ex13_hole1partial.full_solid_4 = MakePrismVecH(full_face_4, cyl_dir, full_dz)
tuple ex13_hole1partial.full_internal = MakeCylinder(full_center, cyl_dir, cyl_radius , full_dz)
tuple ex13_hole1partial.full_external = MakeCylinder(full_center, cyl_dir, cyl_radius+cyl_thick, full_dz)
tuple ex13_hole1partial.full_median = MakeCut(full_external, full_internal)
list ex13_hole1partial.full = []
int ex13_hole1partial.box_d = 3
 ex13_hole1partial.x = cyl_x-box_d
 ex13_hole1partial.y = x*cyl_y/cyl_x
tuple ex13_hole1partial.box_point_11 = MakeVertex(x, y, cyl_dz)
tuple ex13_hole1partial.box_point_12 = MakeVertex(x, y, cyl_dz)
tuple ex13_hole1partial.box_point_21 = MakeVertex(x, y, cyl_dz)
tuple ex13_hole1partial.box_point_22 = MakeVertex(x, y, cyl_dz)
tuple ex13_hole1partial.box_face = MakeQuad4Vertices(box_point_11, box_point_12, box_point_21, box_point_22)
tuple ex13_hole1partial.box = MakePrismVecH(box_face, cyl_dir, full_dz)
tuple ex13_hole1partial.full_plan = MakePlane(MakeVertex(0, 0, cyl_dz+cyl_thick), cyl_dir, 5000)
tuple ex13_hole1partial.full_parts = MakePartition(full, [full_plan], [], [], ShapeType["SOLID"])
tuple ex13_hole1partial.piece_cpd = MakeCompound(blocks)
tuple ex13_hole1partial.piece_ok = RemoveExtraEdges(piece_cpd, doUnionFaces=True)
tuple ex13_hole1partial.piece = MakeGlueFaces(piece_ok, 1.e-3)
tuple ex13_hole1partial.piece_id = addToStudy(piece, "ex13_hole1partial")
tuple ex13_hole1partial.hexa = smesh.Mesh(piece, "ex13_hole1partial:hexa")
tuple ex13_hole1partial.algo = hexa.Segment()
int ex13_hole1partial.d = 3
 coefficient constant de l'√©quation du plan de coupe