Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep 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
Jan 26, 2011
10
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