Using the ‘Identifier’ for Mechanical Post-Processing

Categories:

Wow, how time flies.  I wrote an article ~5 weeks ago where I discussed User Defined Results in ANSYS Mechanical.  One of the comments on that blog concerned being able to operate on results from multiple load steps, “e.g. stress in step 2 minus stress in step 1”.  I responded that yes you could, and then like an idiot stated I would have another article written in “a week or so” detailing how to do this.  My apologies Kjetil, I’m just now getting to this.  Please don’t cancel your membership in the “Doug Oatis B-Movie + ANSYS Trick Fan Club” (I’d hate to be the only member left, plus your dues are non-refundable).

destroyed-hotel-room

Do you know how exhausting it is to party like Motley Crue…by yourself?!?

 
Anyways…back on topic.  The ‘identifier’ is a line available in the Details Window for any result item.
pic1

 

You can type in any kind of name in the cell to the right.  Note that you need to enter the name in before you evaluate the result item, or else you will see that the right cell is gray (meaning you cannot edit it).  If this happens, simply RMB on the result item in the tree and select ‘Clear Generated Data’.  That will empty the ‘bucket’ of that result item and let you edit the details of it (it WILL NOT clear out your result file…unless you RMB on ‘Solution’).

 

pic2 pic3

Identifier cell after result has been evaluated

To fix, RMB and select ‘Clear Generated Data’

 
The benefit to using the identifier is that you can then create a user-defined result and type in an expression using these identifiers.  Here’s the documentation section that discusses the available functions:
pic4
Lots of words…but pretty intuitive function definitions
 
The thing to note up there is the order you define the function depends on if you’re operating off of scalars or vectors (I’ll explain below).  Let’s start out by first defining our UX and UY identifiers in our post-processing section:
 
pic5 pic6
X-Direction, Identifier = d_ux Y-Direction, Identifier = d_uy
 
After I’ve defined both of these identifiers, I insert a User Defined Result.  Next, I just type in the expression I want it to evaluate:
pic7 pic8
 
Going back to the issue of scalars vs arrays, let’s say I wanted to add some type of constant to one of my user defined results.  In this case let’s assume I know that there’s an additional .5-in of rigid body motion that I want to plot.  To do this, I need to understand that the identifier d_ux represents an array of information (node vs displacement).  If I want to add a scalar (.5), I need to enter the expression d_ux+.5 (NOT .5+d_ux). 
 
If I had multiple load-steps, I could scope a stress result to a specific time-point and then perform a similar operation.  That would give me the stress increase due to the load change in between load-steps.
pic9 pic10 pic11
 
The thing to watch out here is to make sure that you stay consistent in what you’re operating on.  Sure you can add stress and displacement together, but that’s not really going to get you anywhere.
 
pic12 nobel-medal
d_ux*10000+d_seqv…everyone knows that [in]+[psi]=[Oatis] For outstanding achievement in the field of flat-plate-with-hole-in-it analysis
 
Also make sure that other details of identifiers you’re combining are consistent (e.g. coordinate system, integration option, etc).
 
For all those MAPDL users, think of this as exposing most of the *voper command within the Mechanical interface.  The main difference is that you don’t have to worry about defining your array size, and it’s incredibly easy to get the data out (RMB > Export…rather than fighting your way through fortran or C formatters).
 
Enjoy!

Get Your Ansys Products & Support from the Engineers who Contribute to this Blog.

Technical Expertise to Enable your Additive Manufacturing Success.

Share this post:

Upcoming Events

Apr 29
, 2025
New NVH Tools & Workflows in Ansys 2025 R1 - Webinar
Apr 29
, 2025
Design, Debug, and Test your Ansys Scade One Model - Webinar
May 01
, 2025
Applying Digital Engineering across Space Mission Analysis and Design - Webinar
May 07
, 2025
Meshing Updates in Ansys 2025 R1 - Webinar
May 07
, 2025
Transforming Robot Arm Design with Topology Optimization - Webinar
May 13
, 2025
Ansys Virtual Workshop - PCB Reliability with Sherlock
May 13
, 2025
Dynamic RF Interference: HFSS and STK for Antenna Array Control - Webinar
May 15
, 2025
Applying Digital Engineering across Space Mission Analysis and Design: Satellite - Webinar
May 21
, 2025
Optics Updates in Ansys 2025 R1 - Webinar
May 29
, 2025
Applying Digital Engineering across Space Mission Analysis and Design: Payload - Webinar
Jun 04
, 2025
Composites & Structural Optimization Updates in Ansys 2025 R1 - Webinar
Jun 09
- Jun 11
, 2025
TechConnect World 2025
Jun 18
, 2025
Fluent CPU - UI & UX Updates in Ansys 2025 R1 - Webinar
Jun 16
- Jun 20
, 2025
Turbo Expo
Jun 25
, 2025
E-Mobility and Clean Energy Summit
Jul 02
, 2025
Electric Machine & Consumer Electronics Updates in Ansys 2025 R1 - Webinar
Jul 11
, 2025
2025 Aerospace, Aviation, Defense and Manufacturing Conference
Jul 16
, 2025
HFSS Updates in Ansys 2025 R1 - Webinar
Aug 10
- Aug 13
, 2025
SmallSat 2025

Search the PADT Site

Contact Us

Most of our customers receive their support over the phone or via email. Customers who are close by can also set up a face-to-face appointment with one of our engineers.

For most locations, simply contact us: