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!

Gather results during parametric study

Status
Not open for further replies.

rebro

Mechanical
Joined
Aug 14, 2014
Messages
1
Location
DE
Hello everybody,

I am working on a quite big parametric study simulating effects of different loads and fiber orientation in the material on a carbon fiber prop-shaft.

I already have a phyton script for a parametric study, however I have problems with extracting the results.
I want to have results over a circumferential path around the shaft. (about 60 elements)

Is it possible to do it with "gather" function? I think only one node/element can be selected with "gather" command.

I have considered a for/while loop, but the results will be written separately and I want a single table.
I cannot use phyton scripts for each of the .odb files after the study because the number of them will be too high. (I have 5 parameters, that are changing - I am dealing with cca 2000 simulations)

Has anyone done this before or has been dealing with this problem?

Thanks for your help,

Best regards,

Gasper
 
I've written some scripts that has dealt with quite a few variations. (Not nearly as many though).

If the geometry is constant, just get the element id's - either by using a path or a set that contains the element id's.

Regardless of the number of ODBs, it would still be viable to traverse each odb and drop the desired results into
a global table. Run time is the only concern. Test it on a few first to reduce run-time while developing.

Hint:
globalResultTable = []
for odbName in glob.glob('*.odb'):
odb = openODB(odbName)​
odbResult = getResultFromOdb(odb)​
globalResultTable.append(odbResult)​
odb.close()​
writeResultsToFile(globalResultTable)

Hope this helps....

Ebbe

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top