DrBwts
Mechanical
- Nov 4, 2012
- 297
I have a flat square surface (Surf-2) that is 80 x 120 elements (all tet) & I run the following code,
To my surprise I get a list of 38801 nodes!!
This backed up by there being 38801 entries in the file 'LoadSurfaceNodes.txt'
So why is this? I was expecting 81 x 121 = 9801 which isn't even a factor of 38801. Where have all these extra nodes come from?
Python:
mySurf = mdb.models['Model-1'].rootAssembly.surfaces['Surf-2']
surfNodes = []
surfNodesLabels = []
nodeInfo = open('LoadSurfaceNodes.txt','w')
for i, eNode in enumerate(mySurf.nodes):
surfNodes.append(eNode.coordinates)
surfNodesLabels.append(eNode.label)
outStr = str(eNode.label) + ',' + str(eNode.coordinates[0]) + ',' + str(eNode.coordinates[1]) + ',' + str(eNode.coordinates[2]) + '\n'
print outStr
nodeInfo.write(outStr)
nodeInfo.close()
print len(surfNodesLabels), i
To my surprise I get a list of 38801 nodes!!
This backed up by there being 38801 entries in the file 'LoadSurfaceNodes.txt'
So why is this? I was expecting 81 x 121 = 9801 which isn't even a factor of 38801. Where have all these extra nodes come from?