-1

The nodesets I create "by feature edge" in Abaqus are invalidated if I change the mesh. What are my options to prevent this from happening?

I am asking because I am trying to write a phython file in which to change the mesh as a parameter. That will not be possible if changing the mesh invalides the nodesets.

Leo
  • 27
  • 5
  • this does not seem to be a programming question and so may be considered off topic. There is a yahoo group that seems to be the best resource for generic abaqus questions. – agentp Oct 17 '16 at 20:17
  • It's a programming question, I'm using python. – Leo Oct 18 '16 at 01:51
  • to the greatest extent possible create all sets before meshing. that often requires partitioning to isolate the geometry where you need the set. – agentp Oct 18 '16 at 03:07

1 Answers1

0

As usual, there is more than one way.

One technique, if you know the coordinates of some point on or near the edge(s) of interest, is to use the EdgeArray.findAt() method, followed with the Edge.getNodes() method to return the Node objects, and then defining a new set from them. You can use the following code for inspiration for other more complex methods you might dream up:

# Tested on Abaqus/CAE 6.12
# Assumes access from the Part-level (Assembly-level is similar):
p = mdb.models['Model-1'].parts['Part-1'] # the Part object
e = p.edges                               # an EdgeArray of Edge objects in the Part

# Look for your edge at the specified coords, then get the nodes:
e1 = e.findAt( coordinates = (0.5, 0.0, 0.0) ) # the Edge object of interest
e1_nodes = e1.getNodes()                  # A list of Node objects

# Specify the new node set:
e1_nset = p.SetFromNodeLabels( name='Nset-1', nodeLabels=[node.label for node in e1_nodes] )
Matt P
  • 2,287
  • 1
  • 11
  • 26