Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

node/elem set in odb file

Status
Not open for further replies.

jisb

Bioengineer
Sep 29, 2004
35
Hi,

In my input file, I clearly defined several node/elem sets. But when I tried to use Python to retrieve the node/elem sets, using:

odb.rootAssembly.nodeSets.keys()

I don't get anything -- no node sets that were defined in input file showed up. What is the reason? Thanks!

In addition, I tried to use:

region = step1.historyRegions['Node PART-1-1.1000']

to access a sub-portion of the model, but I repeated got error message complaining the keyattribute. Could you please tell me what is going wrong? How can I retrieve the history data of just the desired node set?

Thanks very much!
 
Replies continue below

Recommended for you

Besides the rootAssembly , each defined instance may contain nodeSets and nodeElements. This actually depends on the module where you created the sets (assuming that you used CAE to build the model).

You did not mention the way you created the model : by script or by CAE.

You can always check the existence of the sets directly in CAE (Visualization module).

Sometimes CAE slightly modify the names of the sets (and other entities as well) and you can check this using the Keyword editor.

I had once the same problem with accessing history by script though I can remember at this time how I overcame this problem. I think you could use as an alternative
XYData ->XYDataFromHistory(...)

I hope these will help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor