Back to index

salome-smesh  6.5.0
Variables
SMESH_demo_hexa2_upd Namespace Reference

Variables

int ShapeTypeShell = 3
int ShapeTypeFace = 4
int ShapeTypeEdge = 6
tuple a = math.sqrt(2.)
 ma = -a
int zero = 0
int un = 1
 mun = -un
int demi = 1
tuple Orig = geompy.MakeVertex(zero,zero,zero)
tuple P0 = geompy.MakeVertex(a,a,zero)
tuple P1 = geompy.MakeVertex(zero,demi,zero)
tuple P2 = geompy.MakeVertex(ma,a,zero)
tuple P3 = geompy.MakeVertex(mun,un,zero)
tuple P4 = geompy.MakeVertex(un,un,zero)
tuple P5 = geompy.MakeVertex(zero,zero,un)
tuple arc = geompy.MakeArc(P0,P1,P2)
tuple e1 = geompy.MakeEdge(P2,P3)
tuple e2 = geompy.MakeEdge(P3,P4)
tuple e3 = geompy.MakeEdge(P4,P0)
list list = []
tuple wire = geompy.MakeWire(list)
tuple face = geompy.MakeFace(wire,1)
tuple dir = geompy.MakeVector(Orig,P5)
tuple vol1 = geompy.MakePipe(face,dir)
int angle = 2
tuple vol2 = geompy.MakeRotation(vol1,dir,angle)
tuple vol3 = geompy.MakeRotation(vol2,dir,angle)
tuple vol4 = geompy.MakeRotation(vol3,dir,angle)
tuple volComp = geompy.MakeCompound(list)
int tol3d = 1
tuple vol = geompy.MakeGlueFaces(volComp,tol3d)
tuple idVol = geompy.addToStudy(vol,"volume")
tuple subShellList = geompy.SubShapeAllSorted(vol,ShapeTypeShell)
tuple subFaceList = geompy.SubShapeAllSorted(vol,ShapeTypeFace)
tuple subEdgeList = geompy.SubShapeAllSorted(vol,ShapeTypeEdge)
list idSubEdge = []
list edgeZ = []
list idEdgeZ = []
tuple mesh = smesh.Mesh(vol, "meshVolume")
 ---------------------------- SMESH --------------------------------------
int numberOfSegments = 10
tuple regular1D = mesh.Segment()
tuple hypNbSeg = regular1D.NumberOfSegments(numberOfSegments)
tuple quad2D = mesh.Quadrangle()
tuple hexa3D = mesh.Hexahedron()
int numberOfSegmentsZ = 40
tuple algo = mesh.Segment(edgeZ[i])
tuple hyp = algo.NumberOfSegments(numberOfSegmentsZ)
tuple ret = mesh.Compute()

Variable Documentation

tuple SMESH_demo_hexa2_upd.a = math.sqrt(2.)

Definition at line 48 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.algo = mesh.Segment(edgeZ[i])

Definition at line 167 of file SMESH_demo_hexa2_upd.py.

Definition at line 80 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.arc = geompy.MakeArc(P0,P1,P2)

Definition at line 63 of file SMESH_demo_hexa2_upd.py.

Definition at line 53 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.dir = geompy.MakeVector(Orig,P5)

Definition at line 77 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.e1 = geompy.MakeEdge(P2,P3)

Definition at line 64 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.e2 = geompy.MakeEdge(P3,P4)

Definition at line 65 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.e3 = geompy.MakeEdge(P4,P0)

Definition at line 66 of file SMESH_demo_hexa2_upd.py.

Definition at line 113 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.face = geompy.MakeFace(wire,1)

Definition at line 75 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.hexa3D = mesh.Hexahedron()

Definition at line 156 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.hyp = algo.NumberOfSegments(numberOfSegmentsZ)

Definition at line 168 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.hypNbSeg = regular1D.NumberOfSegments(numberOfSegments)

Definition at line 142 of file SMESH_demo_hexa2_upd.py.

Definition at line 123 of file SMESH_demo_hexa2_upd.py.

Definition at line 109 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.idVol = geompy.addToStudy(vol,"volume")

Definition at line 98 of file SMESH_demo_hexa2_upd.py.

Definition at line 68 of file SMESH_demo_hexa2_upd.py.

Definition at line 49 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.mesh = smesh.Mesh(vol, "meshVolume")

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

Definition at line 132 of file SMESH_demo_hexa2_upd.py.

Definition at line 52 of file SMESH_demo_hexa2_upd.py.

Definition at line 138 of file SMESH_demo_hexa2_upd.py.

Definition at line 162 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.Orig = geompy.MakeVertex(zero,zero,zero)

Definition at line 55 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.P0 = geompy.MakeVertex(a,a,zero)

Definition at line 56 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.P1 = geompy.MakeVertex(zero,demi,zero)

Definition at line 57 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.P2 = geompy.MakeVertex(ma,a,zero)

Definition at line 58 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.P3 = geompy.MakeVertex(mun,un,zero)

Definition at line 59 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.P4 = geompy.MakeVertex(un,un,zero)

Definition at line 60 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.P5 = geompy.MakeVertex(zero,zero,un)

Definition at line 61 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.quad2D = mesh.Quadrangle()

Definition at line 151 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.regular1D = mesh.Segment()

Definition at line 140 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.ret = mesh.Compute()

Definition at line 177 of file SMESH_demo_hexa2_upd.py.

Definition at line 46 of file SMESH_demo_hexa2_upd.py.

Definition at line 45 of file SMESH_demo_hexa2_upd.py.

Definition at line 44 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.subEdgeList = geompy.SubShapeAllSorted(vol,ShapeTypeEdge)

Definition at line 103 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.subFaceList = geompy.SubShapeAllSorted(vol,ShapeTypeFace)

Definition at line 102 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.subShellList = geompy.SubShapeAllSorted(vol,ShapeTypeShell)

Definition at line 101 of file SMESH_demo_hexa2_upd.py.

Definition at line 96 of file SMESH_demo_hexa2_upd.py.

Definition at line 51 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.vol = geompy.MakeGlueFaces(volComp,tol3d)

Definition at line 97 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.vol1 = geompy.MakePipe(face,dir)

Definition at line 78 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.vol2 = geompy.MakeRotation(vol1,dir,angle)

Definition at line 82 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.vol3 = geompy.MakeRotation(vol2,dir,angle)

Definition at line 84 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.vol4 = geompy.MakeRotation(vol3,dir,angle)

Definition at line 86 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.volComp = geompy.MakeCompound(list)

Definition at line 94 of file SMESH_demo_hexa2_upd.py.

tuple SMESH_demo_hexa2_upd.wire = geompy.MakeWire(list)

Definition at line 74 of file SMESH_demo_hexa2_upd.py.

Definition at line 50 of file SMESH_demo_hexa2_upd.py.