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!

Accessing the ODB file with python with noPartsInputFile=ON ??

Status
Not open for further replies.

GustavLund

Mechanical
Joined
Jan 26, 2011
Messages
10
Location
SE
Hi.

In my model have have to apply boundary conditions in the input file directly on node numbers. I.e NOT on node sets.
I can only get this to work if I use "mdb.models['model name'].setValues(noPartsInputFile=ON)".
The problem is that I have to access the odb fíle with a script. I used to use a script looking like the one here below:

lastFrame1 = odb1.steps['Step-1'].frames[-1]
displacement1 = lastFrame1.fieldOutputs['U']
allNodes1 = odb1.rootAssembly.instances['PLATE-1'].nodeSets['NALL']
Disp1 = displacement1.getSubset(region=allNodes1)

But, with the noParts turn on, how will this scrips look then, if I need to access the displacements in the odb file?

Anyone knows how to solve this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top