Back to index

salome-smesh  6.5.0
Namespaces | Variables
SMESH_mechanic_tetra.py File Reference

Go to the source code of this file.

Namespaces

namespace  SMESH_mechanic_tetra

Variables

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