×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Creating path before proccesing

Creating path before proccesing

Creating path before proccesing

(OP)
Hi all

I am checking some stresses along a path. I can do it by creating a path in the viewer, and then an XY (distance, stresses) but I would like to automate it so:

could I save the path in the already in the CAE?
could I automate the XY table creation/exporting to excel?

thanks all
: ) n3l3

RE: Creating path before proccesing

You can do this.

Each time you open viewer, an rpy file is created showing exactly what you have done.

So if you go into viewer and create the path once and go to report/xy data and write to a file, this process is stored. Then go into the rpy file and copy out the relevant text; you can then run the same script repeatedly for different sensitivities or output variables;

For example, below, I've created a path called "Steel_OD" by specifying a node list. Then I've set the output variable to Max Principal, and written the output for that path and variable to "Data-S-1", then written that data to an output report file "Results_Base_0-5.rpt".

This is not complete, but if you keep the basic structure of the original rpy file, you can automate almost all post processing activities.

Copy the relevant text into a .py file, then run using a batch file. You can add multiple .py viewer files to this batch run so they will go one after another. For me, the startup command would be:
C:\apps\Abaqus\6.10-1\exec\abq6101.exe viewer replay=Test1
C:\apps\Abaqus\6.10-1\exec\abq6101.exe viewer replay=Test2

The exporting bit can be automated using a macro in excel to open and write the data from the .rpt files.


session.Path(name='Steel_OD', type=NODE_LIST, expression=(('STEEL_MP-1', (22,
'5178:1593:-1', 1, '1281:823:-1', 7, '1460:1282:-1', 8, '1592:1461:-1', 9,
)), ))
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
variableLabel='S', outputPosition=INTEGRATION_POINT, refinement=(INVARIANT,
'Max. Principal'))
pth = session.paths['Steel_OD']
session.XYDataFromPath(name='Data-S-1', path=pth, includeIntersections=False,
shape=DEFORMED, labelType=TRUE_DISTANCE_Y)
x0 = session.xyDataObjects['Data-S-1']
session.xyReportOptions.setValues(layout=SEPARATE_TABLES)
session.writeXYReport(fileName='Results_Base_0-5.rpt', xyData=(x0))

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources