Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number of nodes on a surface?

Status
Not open for further replies.

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,

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?

 
Replies continue below

Recommended for you

OK so here's a ponderer for y'all..

First a simple model created with a hex mesh..

hex_jv7ddp.png


Second a close up of a tet mesh on the same geometry with the same seeding...

tet_xtmody.png


I then create a surface on the shown face.

If I run the script in the OP then for the hex mesh I get 9801 nodes under the surface (81x121=9801)

If I run the script in the OP then for the tet mesh I get 388801 nodes under the surface!! and yet as can be seen there are actually no more nodes on that surface than the hex model.

I am genuinely perplexed by this, I have included the models as attachments.

Hex mesh..


Tet mesh..


 
OK solution found, I was using quadratic tets not linear!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor