node/elem set in odb file
node/elem set in odb file
(OP)
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!
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!





RE: node/elem set in odb file
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.