×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Number of nodes on a surface?

Number of nodes on a surface?

Number of nodes on a surface?

(OP)
I have a flat square surface (Surf-2) that is 80 x 120 elements (all tet) & I run the following code,

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?

RE: Number of nodes on a surface?

(OP)
OK so here's a ponderer for y'all..

First a simple model created with a hex mesh..



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



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..

http://files.engineering.com/getfile.aspx?folder=7...
http://files.engineering.com/getfile.aspx?folder=6...

Tet mesh..

http://files.engineering.com/getfile.aspx?folder=d...
http://files.engineering.com/getfile.aspx?folder=0...

RE: Number of nodes on a surface?

(OP)
OK solution found, I was using quadratic tets not linear!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources