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 MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to fetch boundary data from the odb?

Status
Not open for further replies.

loki3000

Mechanical
Joined
Sep 29, 2009
Messages
652
Location
SI
via scripting interface?
in theory it should be, since i can just click view, odb display options and show boundary info, but i haven't been able to find it in the OdbAccess section of the scripting reference.
I don't have a cae file, only an INP, but parsing it would be my last step.
 
session.viewports['Viewport: 1'].odbDisplay.basicOptions.setValues(
bcDisplay=ON)

... I hope this is it.

In general you can look at the abaqus.rpy file in the temporary folder. There all your actions in the cae session are recorded as a python file.

Best regards,
Rupert.
 
yes and no.
this displays the data in the cae, but i want to extract it in python scripting, as i need it for some vector calc (manually entering it is cumbersome and esp. error-prone, as i've recently discovered).
 
Hi,

If you want to use Abaqus Scripting Interface (API) then there is no option to do it. A set with nodes with boundary conditions is internal set and API can not read the internal sets.
Unfortunately API does not cover in 100% all Abaqus/CAE or Abaqus/Viewer capabilities.
The sets you can display with:
Tools->Creat Display Group->Item:Nodes->Method:Internal sets. I am not sure does abaqus always use the same name but usually it is "TYPE 7 1" or names started with "U0" name.

If you need to get only node labels you can do it with python command which are use by Abaqus/CAE.
First find which internal set contain the nodes, display only these nodes, and use "getActiveNodeLabels()" method from viewport object.
This way has one disadvantaged, script has to bu run with abaqus/CAE or abaqus/Viewer but it should work and CAE or Viewer can be run in background mode.

Regards,
akaBarten
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top