Back to index

salome-smesh  6.5.0
Namespaces | Functions | Variables
SMESH_AdvancedEditor.py File Reference

Go to the source code of this file.

Namespaces

namespace  SMESH_AdvancedEditor

Functions

def SMESH_AdvancedEditor.GetNewNodes

Variables

tuple SMESH_AdvancedEditor.mesh = smesh.Mesh()
float SMESH_AdvancedEditor.tol = 0.001
tuple SMESH_AdvancedEditor.n1 = mesh.AddNode(55,-5,0)
tuple SMESH_AdvancedEditor.n2 = mesh.AddNode(55,5,0)
tuple SMESH_AdvancedEditor.e1 = mesh.AddEdge([n1,n2])
tuple SMESH_AdvancedEditor.dir1 = smesh.DirStruct(smesh.PointStruct(-10,0,0))
tuple SMESH_AdvancedEditor.n3 = mesh.AddNode(-5,-55,0)
tuple SMESH_AdvancedEditor.n4 = mesh.AddNode(5,-55,0)
tuple SMESH_AdvancedEditor.e2 = mesh.AddEdge([n3,n4])
tuple SMESH_AdvancedEditor.dir2 = smesh.DirStruct(smesh.PointStruct(0,10,0))
tuple SMESH_AdvancedEditor.nodes = mesh.FindCoincidentNodes(0.001)
tuple SMESH_AdvancedEditor.faces = mesh.GetElementsByType(smesh.FACE)
tuple SMESH_AdvancedEditor.nbf = len(faces)
float SMESH_AdvancedEditor.maxang = 2.0
int SMESH_AdvancedEditor.zstep = 5
int SMESH_AdvancedEditor.nbzsteps = 50
tuple SMESH_AdvancedEditor.dir3 = smesh.DirStruct(smesh.PointStruct(0,0,zstep))
list SMESH_AdvancedEditor.newfaces = []
tuple SMESH_AdvancedEditor.res = mesh.GetLastCreatedElems()
tuple SMESH_AdvancedEditor.nbr = len(res)
list SMESH_AdvancedEditor.nfaces = []
tuple SMESH_AdvancedEditor.nbn = mesh.GetElemNbNodes(j)
tuple SMESH_AdvancedEditor.nn1 = mesh.GetElemNode(j,0)
tuple SMESH_AdvancedEditor.xyz1 = mesh.GetNodeXYZ(nn1)
tuple SMESH_AdvancedEditor.nn2 = mesh.GetElemNode(j,1)
tuple SMESH_AdvancedEditor.xyz2 = mesh.GetNodeXYZ(nn2)
tuple SMESH_AdvancedEditor.nn3 = mesh.GetElemNode(j,2)
tuple SMESH_AdvancedEditor.xyz3 = mesh.GetNodeXYZ(nn3)
tuple SMESH_AdvancedEditor.axisr1 = smesh.AxisStruct(0,0,0,0,0,1)
tuple SMESH_AdvancedEditor.ang = maxang*(1-math.cos((i+1)*math.pi/nbzsteps))
tuple SMESH_AdvancedEditor.n5 = mesh.AddNode(65,0,0)
tuple SMESH_AdvancedEditor.n6 = mesh.AddNode(67.5,0,0)
tuple SMESH_AdvancedEditor.n7 = mesh.AddNode(70,0,0)
tuple SMESH_AdvancedEditor.e56 = mesh.AddEdge([n5,n6])
tuple SMESH_AdvancedEditor.e67 = mesh.AddEdge([n6,n7])
tuple SMESH_AdvancedEditor.axisr2 = smesh.AxisStruct(65,0,0,0,1,0)
list SMESH_AdvancedEditor.faces1 = []
tuple SMESH_AdvancedEditor.nbf1 = len(faces1)
tuple SMESH_AdvancedEditor.n8 = mesh.AddNode(-65,0,0)
tuple SMESH_AdvancedEditor.n9 = mesh.AddNode(-67.5,0,0)
tuple SMESH_AdvancedEditor.n10 = mesh.AddNode(-70,0,0)
tuple SMESH_AdvancedEditor.e8 = mesh.AddEdge([n8,n9])
tuple SMESH_AdvancedEditor.e9 = mesh.AddEdge([n9,n10])
tuple SMESH_AdvancedEditor.axisr3 = smesh.AxisStruct(-65,0,0,0,-1,0)
list SMESH_AdvancedEditor.faces2 = []
tuple SMESH_AdvancedEditor.nbf2 = len(faces2)
int SMESH_AdvancedEditor.nbcircs = 2
int SMESH_AdvancedEditor.nbrsteps = 24
 SMESH_AdvancedEditor.nbrs = nbcircs*nbrsteps
 SMESH_AdvancedEditor.dz = nbzsteps*zstep/nbrs
list SMESH_AdvancedEditor.oldnodes = []
tuple SMESH_AdvancedEditor.newnodes = GetNewNodes(mesh,faces1,oldnodes)
list SMESH_AdvancedEditor.volumes = []
tuple SMESH_AdvancedEditor.xyz = mesh.GetNodeXYZ(j)