Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-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
Jan 22, 2007
58
0
0
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
 
Replies continue below

Recommended for you

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
 
Status
Not open for further replies.
Back
Top