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!

rpt file script

Status
Not open for further replies.

MaryWuh

Civil/Environmental
Joined
Oct 2, 2020
Messages
1
Location
GB
Hi

I would like to write a script to get .rpt file with a summed RF3 at Set-1.

I have previously created a history Output Request to get RF3 at Set-1:

mdb.models['Model-1'].historyOutputRequests['H-Output-1'].setValues(rebar=
EXCLUDE, region=mdb.models['Model-1'].rootAssembly.sets['Set-1'],
sectionPoints=DEFAULT, variables=('RF3', 'IRF3', 'ALLAE', 'ALLCD',
'ALLDMD', 'ALLEE', 'ALLFD', 'ALLIE', 'ALLJD', 'ALLKE', 'ALLKL', 'ALLPD',
'ALLQB', 'ALLSE', 'ALLSD', 'ALLVD', 'ALLWK', 'ETOTAL'))

Any ideas? - thank you!
 
That is not hard.
Do it first as described below in the UI and then look into the .rpy file for the Python commands.

Use the Display Group to only show the set you are interested at. Switch also to the step+result frame you want it for. Then got to Report -> Field Output. Use "Unique Nodal" and chosse the variable. Also have a look at all other options in this dialog. The important thing is the option "Column totals". With this you will get the sum of each variable for the displayed region written to the file.

If you just want to know the summed value, then you have also other options. Maybe you can use a coupling to get everything at the reference node. Or I can upload a script I have, that does the calculation and prints out the result in the message area. It would be easy to modify it to write it also into a file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top