Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

How to read Internal Element sets by using python scripting?

Status
Not open for further replies.

Geokim

Geotechnical
Apr 29, 2014
1
Dear All,

I would like to read an internal element set by using openODB(...) in ABAQUS script language.
Does anyone know how to do it?

Based on ABAQUS documentation,
'readInternalSets': A Boolean specifying whether the file will permit access to sets specified as Internal on the database. The initial value is False, indicating that internal sets will not be read.

My inp file si as follows:
*Elset, elset=_TS_S3, internal
235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250
251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 510
*Elset, elset=_TS_S2, internal
277, 334, 343, 484, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501
502, 567, 694
*Elset, elset=_TS_S1, internal
344, 478
*Elset, elset=_TS_S4, internal
346, 485, 486, 487, 488, 489, 503, 504, 505, 506, 507, 508, 509, 529, 530, 550
610, 616

All these elset are auto-generated when I set the surface on top-surface of model.


My code is as follows:

odbname='odbFilepath'
odb = openOdb(path = odbname, readOnly = False, readInternalSets = True)

# Substract elements' labels on the topsurface of model.
myInstance=odb.rootAssembly.instances['PART-1-1']
sets=myInstance.elementSets
...

How to read internal set from Odb file? I can see the results from internal set in GUI module.

Many thanks.
 
Replies continue below

Recommended for you

Hi Geokim,

Probably it's already too late but I was trying to do the same and here is the solution I found. It worked for me!

import odbAccess
odb=odbAccess.openOdb(path=myPath,readInternalSets=True)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor