Back to index

salome-smesh  6.5.0
Variables
ex08_hole2build Namespace Reference

Variables

int ox = 0
int oy = 0
int oz = 0
int longueur = 200
int largeur = 100
int hauteur = 80
int cylindre = 50
int rayon = 20
tuple piecePoint1 = MakeVertex(ox , oy, oz)
tuple piecePoint2 = MakeVertex(ox+longueur, oy, oz)
tuple piecePoint3 = MakeVertex(ox+longueur, oy, oz+largeur)
tuple piecePoint4 = MakeVertex(ox , oy, oz+largeur)
int cz = 2
tuple cylPoint1 = MakeVertex(ox+cylindre , oy, cz-rayon)
tuple cylPoint2 = MakeVertex(ox+longueur-cylindre, oy, cz-rayon)
tuple cylPoint3 = MakeVertex(ox+longueur-cylindre, oy, cz+rayon)
tuple cylPoint4 = MakeVertex(ox+cylindre , oy, cz+rayon)
tuple pieceEdge1 = MakeEdge(piecePoint1, piecePoint4)
tuple pieceEdge2 = MakeEdge(piecePoint1, cylPoint1)
tuple pieceEdge3 = MakeEdge(piecePoint4, cylPoint4)
tuple pieceEdge4 = MakeEdge(piecePoint2, piecePoint3)
tuple pieceEdge5 = MakeEdge(piecePoint2, cylPoint2)
tuple pieceEdge6 = MakeEdge(piecePoint3, cylPoint3)
tuple pieceEdge7 = MakeEdge(cylPoint1, cylPoint2)
tuple pieceEdge8 = MakeEdge(cylPoint3, cylPoint4)
tuple cylEdge1 = MakeArc(cylPoint1, MakeVertex(ox+cylindre-rayon , oy, cz), cylPoint4)
tuple cylEdge2 = MakeArc(cylPoint1, MakeVertex(ox+cylindre+rayon , oy, cz), cylPoint4)
tuple cylEdge3 = MakeArc(cylPoint2, MakeVertex(ox+longueur-cylindre-rayon, oy, cz), cylPoint3)
tuple cylEdge4 = MakeArc(cylPoint2, MakeVertex(ox+longueur-cylindre+rayon, oy, cz), cylPoint3)
tuple pieceFace1 = MakeQuad4Vertices(piecePoint1, piecePoint2, cylPoint2 , cylPoint1 )
tuple pieceFace2 = MakeQuad(pieceEdge1 , pieceEdge2 , cylEdge1 , pieceEdge3)
tuple pieceFace3 = MakeQuad4Vertices(piecePoint3, piecePoint4, cylPoint4 , cylPoint3 )
tuple pieceFace4 = MakeQuad(pieceEdge4 , pieceEdge5 , cylEdge4 , pieceEdge6)
tuple pieceFace5 = MakeQuad(pieceEdge7 , cylEdge3 , pieceEdge8, cylEdge2 )
tuple pieceVector = MakeVectorDXDYDZ(0, 1, 0)
tuple pieceSolid1 = MakePrismVecH(pieceFace1, pieceVector, hauteur)
tuple pieceSolid2 = MakePrismVecH(pieceFace2, pieceVector, hauteur)
tuple pieceSolid3 = MakePrismVecH(pieceFace3, pieceVector, hauteur)
tuple pieceSolid4 = MakePrismVecH(pieceFace4, pieceVector, hauteur)
tuple pieceSolid5 = MakePrismVecH(pieceFace5, pieceVector, hauteur)
tuple c_cpd = MakeCompound([pieceSolid1, pieceSolid2, pieceSolid3, pieceSolid4, pieceSolid5])
tuple piece = MakeGlueFaces(c_cpd, 1.e-5)
tuple piece_id = addToStudy(piece, "ex08_hole2build")
tuple hexa = smesh.Mesh(piece, "ex08_hole2build:hexa")
tuple algo = hexa.Segment()

Variable Documentation

tuple ex08_hole2build.algo = hexa.Segment()

Definition at line 126 of file ex08_hole2build.py.

Definition at line 107 of file ex08_hole2build.py.

tuple ex08_hole2build.cylEdge1 = MakeArc(cylPoint1, MakeVertex(ox+cylindre-rayon , oy, cz), cylPoint4)

Definition at line 79 of file ex08_hole2build.py.

tuple ex08_hole2build.cylEdge2 = MakeArc(cylPoint1, MakeVertex(ox+cylindre+rayon , oy, cz), cylPoint4)

Definition at line 80 of file ex08_hole2build.py.

Definition at line 81 of file ex08_hole2build.py.

Definition at line 82 of file ex08_hole2build.py.

Definition at line 46 of file ex08_hole2build.py.

tuple ex08_hole2build.cylPoint1 = MakeVertex(ox+cylindre , oy, cz-rayon)

Definition at line 60 of file ex08_hole2build.py.

Definition at line 61 of file ex08_hole2build.py.

Definition at line 62 of file ex08_hole2build.py.

tuple ex08_hole2build.cylPoint4 = MakeVertex(ox+cylindre , oy, cz+rayon)

Definition at line 63 of file ex08_hole2build.py.

Definition at line 58 of file ex08_hole2build.py.

Definition at line 44 of file ex08_hole2build.py.

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

Definition at line 124 of file ex08_hole2build.py.

Definition at line 43 of file ex08_hole2build.py.

Definition at line 42 of file ex08_hole2build.py.

Definition at line 38 of file ex08_hole2build.py.

Definition at line 39 of file ex08_hole2build.py.

Definition at line 40 of file ex08_hole2build.py.

tuple ex08_hole2build.piece = MakeGlueFaces(c_cpd, 1.e-5)

Definition at line 109 of file ex08_hole2build.py.

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

Definition at line 114 of file ex08_hole2build.py.

Definition at line 68 of file ex08_hole2build.py.

Definition at line 69 of file ex08_hole2build.py.

Definition at line 70 of file ex08_hole2build.py.

Definition at line 72 of file ex08_hole2build.py.

Definition at line 73 of file ex08_hole2build.py.

Definition at line 74 of file ex08_hole2build.py.

Definition at line 76 of file ex08_hole2build.py.

Definition at line 77 of file ex08_hole2build.py.

Definition at line 87 of file ex08_hole2build.py.

Definition at line 88 of file ex08_hole2build.py.

Definition at line 89 of file ex08_hole2build.py.

Definition at line 90 of file ex08_hole2build.py.

Definition at line 91 of file ex08_hole2build.py.

tuple ex08_hole2build.piecePoint1 = MakeVertex(ox , oy, oz)

Definition at line 53 of file ex08_hole2build.py.

tuple ex08_hole2build.piecePoint2 = MakeVertex(ox+longueur, oy, oz)

Definition at line 54 of file ex08_hole2build.py.

Definition at line 55 of file ex08_hole2build.py.

tuple ex08_hole2build.piecePoint4 = MakeVertex(ox , oy, oz+largeur)

Definition at line 56 of file ex08_hole2build.py.

Definition at line 98 of file ex08_hole2build.py.

Definition at line 99 of file ex08_hole2build.py.

Definition at line 100 of file ex08_hole2build.py.

Definition at line 101 of file ex08_hole2build.py.

Definition at line 102 of file ex08_hole2build.py.

tuple ex08_hole2build.pieceVector = MakeVectorDXDYDZ(0, 1, 0)

Definition at line 96 of file ex08_hole2build.py.

Definition at line 48 of file ex08_hole2build.py.