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 TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

python - how to create a node set

Status
Not open for further replies.

barney75

Mechanical
Joined
Jan 22, 2007
Messages
58
Location
IT
Hi guys,
I'm reading the obd file to postprocess an analysis. The point is that, in my python routine, I would like to create a node set that I did not create in the preprocessing. In this way it is much easier when I extract the results from the fieldOutput. How is it possible?

thanks in advance for any advice.

bye bye
 
Hi,

To create new node set in odb file you can use constructor NodeSet(...) or NodeSetFromLabels(...).

Short example:
We want to create new set with nodes 5,10,12 into instance 'PART-1-1'. Pynthon syntax can be like this:

newSet=(5,10,12)
assembly=odbFile.rootAssembly
assembly.NodeSetFromLabels(name='myNewSet', nodeLabels=(('PART-1-1',newSet),))

Plase take a look into documentation for more details about the constructors.

Best Regards
 
Hi akabarten
thanks for your help. With your advice I solved the issue.

Bye bye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top