Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Abaqus scripting: user defined node sets 2

Status
Not open for further replies.

ThijsMas

Mechanical
Joined
Dec 2, 2020
Messages
6
Location
NL
Hi all,

I have a model that I want to automatically run multiple times, with slightly different settings. By removing a node from my Tie constraint I can increase the length of a crack in my model. This will give me info on all crack lengths a want!

I want to do this automatically using Abaqus scripting. I want to modify the Set that represent my bonded nodes. As of now this Set is defined like this:

mdb.models['SSD_PEEK'].rootAssembly.Set(name='Bonded_Nodes', nodes=
mdb.models['SSD_PEEK'].rootAssembly.instances['Cutply2-1'].nodes.getSequenceFromMask(
mask=('[#109 #0:8 #ffc00000 #ffffffff:9 #0:18 #fff00000 #ffffffff:5',' #7f ]', ), ))

Is there a convenient method for defining a set of nodes? So some other way then using getSequenceFromMask(). Or can someone explain how the getSequenceFromMask() function works?

Hope you guys can help!!

Thijs
 
Run those both command in the Python interpreter in A/CAE.
Afterwards define the set again and then check what is written into the .rpy.

Code:
session.journalOptions.replayGeometry
session.journalOptions.setValues(replayGeometry=INDEX)
 
That worked!

Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top