Package SMESH_demo_hexa2_upd


Variables

tuple geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
tuple smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH")
tuple smeshgui = salome.ImportComponentGUI("SMESH")
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)
list list = []
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 = []
int numberOfSegments = 10
tuple hypNbSeg = smesh.CreateHypothesis("NumberOfSegments","libStdMeshersEngine.so")
tuple hypNbSegID = hypNbSeg.GetId()
int numberOfSegmentsZ = 40
tuple hypNbSegZ = smesh.CreateHypothesis("NumberOfSegments","libStdMeshersEngine.so")
tuple hypNbSegZID = hypNbSegZ.GetId()
tuple regular1D = smesh.CreateHypothesis("Regular_1D", "libStdMeshersEngine.so")
tuple quad2D = smesh.CreateHypothesis("Quadrangle_2D", "libStdMeshersEngine.so")
tuple hexa3D = smesh.CreateHypothesis("Hexa_3D", "libStdMeshersEngine.so")
tuple mesh = smesh.CreateMesh(vol)
tuple ret = mesh.AddHypothesis(vol,regular1D)
tuple ret = mesh.AddHypothesis(vol,hypNbSeg)
tuple ret = mesh.AddHypothesis(vol,quad2D)
tuple ret = mesh.AddHypothesis(vol,hexa3D)
tuple subMeshEdgeZ = mesh.GetSubMesh(edgeZ[i],"SubMeshEdgeZ_"+str(i+1))
tuple retZ = mesh.AddHypothesis(edgeZ[i],hypNbSegZ)
tuple ret = smesh.Compute(mesh,vol)
tuple geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
tuple smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH")
tuple smeshgui = salome.ImportComponentGUI("SMESH")
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)
list list = []
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 = []
int numberOfSegments = 10
tuple hypNbSeg = smesh.CreateHypothesis("NumberOfSegments","libStdMeshersEngine.so")
tuple hypNbSegID = hypNbSeg.GetId()
int numberOfSegmentsZ = 40
tuple hypNbSegZ = smesh.CreateHypothesis("NumberOfSegments","libStdMeshersEngine.so")
tuple hypNbSegZID = hypNbSegZ.GetId()
tuple regular1D = smesh.CreateHypothesis("Regular_1D", "libStdMeshersEngine.so")
tuple quad2D = smesh.CreateHypothesis("Quadrangle_2D", "libStdMeshersEngine.so")
tuple hexa3D = smesh.CreateHypothesis("Hexa_3D", "libStdMeshersEngine.so")
tuple mesh = smesh.CreateMesh(vol)
tuple ret = mesh.AddHypothesis(vol,regular1D)
tuple ret = mesh.AddHypothesis(vol,hypNbSeg)
tuple ret = mesh.AddHypothesis(vol,quad2D)
tuple ret = mesh.AddHypothesis(vol,hexa3D)
tuple subMeshEdgeZ = mesh.GetSubMesh(edgeZ[i],"SubMeshEdgeZ_"+str(i+1))
tuple retZ = mesh.AddHypothesis(edgeZ[i],hypNbSegZ)
tuple ret = smesh.Compute(mesh,vol)


Variable Documentation

tuple SMESH_demo_hexa2_upd.geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM") [static]
 

tuple SMESH_demo_hexa2_upd.smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH") [static]
 

tuple SMESH_demo_hexa2_upd.smeshgui = salome.ImportComponentGUI("SMESH") [static]
 

int SMESH_demo_hexa2_upd.ShapeTypeShell = 3 [static]
 

int SMESH_demo_hexa2_upd.ShapeTypeFace = 4 [static]
 

int SMESH_demo_hexa2_upd.ShapeTypeEdge = 6 [static]
 

tuple SMESH_demo_hexa2_upd.a = math.sqrt(2.) [static]
 

SMESH_demo_hexa2_upd.ma = -a [static]
 

int SMESH_demo_hexa2_upd.zero = 0 [static]
 

int SMESH_demo_hexa2_upd.un = 1 [static]
 

SMESH_demo_hexa2_upd.mun = -un [static]
 

int SMESH_demo_hexa2_upd.demi = 1 [static]
 

tuple SMESH_demo_hexa2_upd.Orig = geompy.MakeVertex(zero,zero,zero) [static]
 

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

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

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

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

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

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

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

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

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

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

list SMESH_demo_hexa2_upd.list = [] [static]
 

tuple SMESH_demo_hexa2_upd.wire = geompy.MakeWire(list) [static]
 

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

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

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

int SMESH_demo_hexa2_upd.angle = 2 [static]
 

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

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

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

list SMESH_demo_hexa2_upd.list = [] [static]
 

tuple SMESH_demo_hexa2_upd.volComp = geompy.MakeCompound(list) [static]
 

int SMESH_demo_hexa2_upd.tol3d = 1 [static]
 

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

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

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

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

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

list SMESH_demo_hexa2_upd.idSubEdge = [] [static]
 

list SMESH_demo_hexa2_upd.edgeZ = [] [static]
 

list SMESH_demo_hexa2_upd.idEdgeZ = [] [static]
 

int SMESH_demo_hexa2_upd.numberOfSegments = 10 [static]
 

tuple SMESH_demo_hexa2_upd.hypNbSeg = smesh.CreateHypothesis("NumberOfSegments","libStdMeshersEngine.so") [static]
 

tuple SMESH_demo_hexa2_upd.hypNbSegID = hypNbSeg.GetId() [static]
 

int SMESH_demo_hexa2_upd.numberOfSegmentsZ = 40 [static]
 

tuple SMESH_demo_hexa2_upd.hypNbSegZ = smesh.CreateHypothesis("NumberOfSegments","libStdMeshersEngine.so") [static]
 

tuple SMESH_demo_hexa2_upd.hypNbSegZID = hypNbSegZ.GetId() [static]
 

tuple SMESH_demo_hexa2_upd.regular1D = smesh.CreateHypothesis("Regular_1D", "libStdMeshersEngine.so") [static]
 

tuple SMESH_demo_hexa2_upd.quad2D = smesh.CreateHypothesis("Quadrangle_2D", "libStdMeshersEngine.so") [static]
 

tuple SMESH_demo_hexa2_upd.hexa3D = smesh.CreateHypothesis("Hexa_3D", "libStdMeshersEngine.so") [static]
 

tuple SMESH_demo_hexa2_upd.mesh = smesh.CreateMesh(vol) [static]
 

tuple SMESH_demo_hexa2_upd.ret = mesh.AddHypothesis(vol,regular1D) [static]
 

tuple SMESH_demo_hexa2_upd.ret = mesh.AddHypothesis(vol,hypNbSeg) [static]
 

tuple SMESH_demo_hexa2_upd.ret = mesh.AddHypothesis(vol,quad2D) [static]
 

tuple SMESH_demo_hexa2_upd.ret = mesh.AddHypothesis(vol,hexa3D) [static]
 

tuple SMESH_demo_hexa2_upd.subMeshEdgeZ = mesh.GetSubMesh(edgeZ[i],"SubMeshEdgeZ_"+str(i+1)) [static]
 

tuple SMESH_demo_hexa2_upd.retZ = mesh.AddHypothesis(edgeZ[i],hypNbSegZ) [static]
 

tuple SMESH_demo_hexa2_upd.ret = smesh.Compute(mesh,vol) [static]
 

tuple SMESH_demo_hexa2_upd.geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM") [static]
 

tuple SMESH_demo_hexa2_upd.smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH") [static]
 

tuple SMESH_demo_hexa2_upd.smeshgui = salome.ImportComponentGUI("SMESH") [static]
 

int SMESH_demo_hexa2_upd.ShapeTypeShell = 3 [static]
 

int SMESH_demo_hexa2_upd.ShapeTypeFace = 4 [static]
 

int SMESH_demo_hexa2_upd.ShapeTypeEdge = 6 [static]
 

tuple SMESH_demo_hexa2_upd.a = math.sqrt(2.) [static]
 

SMESH_demo_hexa2_upd.ma = -a [static]
 

int SMESH_demo_hexa2_upd.zero = 0 [static]
 

int SMESH_demo_hexa2_upd.un = 1 [static]
 

SMESH_demo_hexa2_upd.mun = -un [static]
 

int SMESH_demo_hexa2_upd.demi = 1 [static]
 

tuple SMESH_demo_hexa2_upd.Orig = geompy.MakeVertex(zero,zero,zero) [static]
 

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

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

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

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

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

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

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

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

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

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

list SMESH_demo_hexa2_upd.list = [] [static]
 

tuple SMESH_demo_hexa2_upd.wire = geompy.MakeWire(list) [static]
 

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

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

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

int SMESH_demo_hexa2_upd.angle = 2 [static]
 

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

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

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

list SMESH_demo_hexa2_upd.list = [] [static]