Back to index

salome-smesh  6.5.0
Variables
SMESH_mechanic_tetra Namespace Reference

Variables

 geom = geompy.geom
tuple p1 = geompy.MakeVertex( 100.0, 0.0, 0.0 )
tuple p2 = geompy.MakeVertex( 50.0, 50.0, 0.0 )
tuple p3 = geompy.MakeVertex( 100.0, 100.0, 0.0 )
tuple arc1 = geompy.MakeArc( p1, p2, p3 )
tuple p4 = geompy.MakeVertex( 170.0, 100.0, 0.0 )
tuple seg1 = geompy.MakeVector( p3, p4 )
tuple p5 = geompy.MakeVertex( 200.0, 70.0, 0.0 )
tuple p6 = geompy.MakeVertex( 170.0, 40.0, 0.0 )
tuple arc2 = geompy.MakeArc( p4, p5, p6 )
tuple p7 = geompy.MakeVertex( 120.0, 30.0, 0.0 )
tuple arc3 = geompy.MakeArc( p6, p7, p1 )
list List1 = []
tuple wire1 = geompy.MakeWire( List1 )
tuple Id_wire1 = geompy.addToStudy( wire1, "wire1" )
int WantPlanarFace = 1
tuple face1 = geompy.MakeFace( wire1, WantPlanarFace )
tuple Id_face1 = geompy.addToStudy( face1, "face1" )
tuple pO = geompy.MakeVertex( 0.0, 0.0, 0.0 )
tuple pz = geompy.MakeVertex( 0.0, 0.0, 100.0 )
tuple vz = geompy.MakeVector( pO, pz )
tuple prism1 = geompy.MakePrismVecH( face1, vz, 100.0 )
tuple Id_prism1 = geompy.addToStudy( prism1, "prism1")
tuple pc1 = geompy.MakeVertex( 90.0, 50.0, -40.0 )
tuple pc2 = geompy.MakeVertex( 170.0, 70.0, -40.0 )
float radius = 20.0
float height = 180.0
tuple cyl1 = geompy.MakeCylinder( pc1, vz, radius, height )
tuple cyl2 = geompy.MakeCylinder( pc2, vz, radius, height )
tuple Id_Cyl1 = geompy.addToStudy( cyl1, "cyl1" )
tuple Id_Cyl2 = geompy.addToStudy( cyl2, "cyl2" )
tuple shape = geompy.MakeBoolean( prism1, cyl1, 2 )
tuple mechanic = geompy.MakeBoolean( shape, cyl2, 3 )
tuple Id_mechanic = geompy.addToStudy( mechanic, "mechanic" )
tuple subShellList = geompy.SubShapeAll(mechanic,geompy.ShapeType["SHELL"])
tuple subFaceList = geompy.SubShapeAll(mechanic,geompy.ShapeType["FACE"])
tuple subEdgeList = geompy.SubShapeAll(mechanic,geompy.ShapeType["EDGE"])
tuple shape_mesh = salome.IDToObject( Id_mechanic )
 ---------------------------- SMESH --------------------------------------
tuple mesh = smesh.Mesh(shape_mesh, "Mesh_mechanic_tetra")
int numberOfSegment = 10
tuple algo1 = mesh.Segment()
tuple hypNbSeg = algo1.NumberOfSegments(numberOfSegment)
int maxElementArea = 20
tuple algo2 = mesh.Triangle(smesh.MEFISTO)
tuple hypArea = algo2.MaxElementArea(maxElementArea)
int maxElementVolume = 20
tuple algo3 = mesh.Tetrahedron(smesh.NETGEN)
tuple hypVolume = algo3.MaxElementVolume(maxElementVolume)

Variable Documentation

tuple SMESH_mechanic_tetra.algo1 = mesh.Segment()

Definition at line 118 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.algo2 = mesh.Triangle(smesh.MEFISTO)

Definition at line 128 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.algo3 = mesh.Tetrahedron(smesh.NETGEN)

Definition at line 138 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.arc1 = geompy.MakeArc( p1, p2, p3 )

Definition at line 41 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.arc2 = geompy.MakeArc( p4, p5, p6 )

Definition at line 48 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.arc3 = geompy.MakeArc( p6, p7, p1 )

Definition at line 51 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.cyl1 = geompy.MakeCylinder( pc1, vz, radius, height )

Definition at line 82 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.cyl2 = geompy.MakeCylinder( pc2, vz, radius, height )

Definition at line 83 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.face1 = geompy.MakeFace( wire1, WantPlanarFace )

Definition at line 65 of file SMESH_mechanic_tetra.py.

Definition at line 33 of file SMESH_mechanic_tetra.py.

Definition at line 81 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.hypArea = algo2.MaxElementArea(maxElementArea)

Definition at line 129 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.hypNbSeg = algo1.NumberOfSegments(numberOfSegment)

Definition at line 119 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.hypVolume = algo3.MaxElementVolume(maxElementVolume)

Definition at line 139 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.Id_Cyl1 = geompy.addToStudy( cyl1, "cyl1" )

Definition at line 85 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.Id_Cyl2 = geompy.addToStudy( cyl2, "cyl2" )

Definition at line 86 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.Id_face1 = geompy.addToStudy( face1, "face1" )

Definition at line 66 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.Id_mechanic = geompy.addToStudy( mechanic, "mechanic" )

Definition at line 93 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.Id_prism1 = geompy.addToStudy( prism1, "prism1")

Definition at line 74 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.Id_wire1 = geompy.addToStudy( wire1, "wire1" )

Definition at line 61 of file SMESH_mechanic_tetra.py.

Definition at line 54 of file SMESH_mechanic_tetra.py.

Definition at line 126 of file SMESH_mechanic_tetra.py.

Definition at line 136 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.mechanic = geompy.MakeBoolean( shape, cyl2, 3 )

Definition at line 92 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.mesh = smesh.Mesh(shape_mesh, "Mesh_mechanic_tetra")

Definition at line 112 of file SMESH_mechanic_tetra.py.

Definition at line 116 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.p1 = geompy.MakeVertex( 100.0, 0.0, 0.0 )

Definition at line 38 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.p2 = geompy.MakeVertex( 50.0, 50.0, 0.0 )

Definition at line 39 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.p3 = geompy.MakeVertex( 100.0, 100.0, 0.0 )

Definition at line 40 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.p4 = geompy.MakeVertex( 170.0, 100.0, 0.0 )

Definition at line 43 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.p5 = geompy.MakeVertex( 200.0, 70.0, 0.0 )

Definition at line 46 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.p6 = geompy.MakeVertex( 170.0, 40.0, 0.0 )

Definition at line 47 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.p7 = geompy.MakeVertex( 120.0, 30.0, 0.0 )

Definition at line 50 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.pc1 = geompy.MakeVertex( 90.0, 50.0, -40.0 )

Definition at line 78 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.pc2 = geompy.MakeVertex( 170.0, 70.0, -40.0 )

Definition at line 79 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.pO = geompy.MakeVertex( 0.0, 0.0, 0.0 )

Definition at line 69 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.prism1 = geompy.MakePrismVecH( face1, vz, 100.0 )

Definition at line 73 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.pz = geompy.MakeVertex( 0.0, 0.0, 100.0 )

Definition at line 70 of file SMESH_mechanic_tetra.py.

Definition at line 80 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.seg1 = geompy.MakeVector( p3, p4 )

Definition at line 44 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.shape = geompy.MakeBoolean( prism1, cyl1, 2 )

Definition at line 89 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.shape_mesh = salome.IDToObject( Id_mechanic )

---------------------------- SMESH --------------------------------------

Definition at line 110 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.subEdgeList = geompy.SubShapeAll(mechanic,geompy.ShapeType["EDGE"])

Definition at line 101 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.subFaceList = geompy.SubShapeAll(mechanic,geompy.ShapeType["FACE"])

Definition at line 100 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.subShellList = geompy.SubShapeAll(mechanic,geompy.ShapeType["SHELL"])

Definition at line 99 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.vz = geompy.MakeVector( pO, pz )

Definition at line 71 of file SMESH_mechanic_tetra.py.

Definition at line 64 of file SMESH_mechanic_tetra.py.

tuple SMESH_mechanic_tetra.wire1 = geompy.MakeWire( List1 )

Definition at line 60 of file SMESH_mechanic_tetra.py.