Possible error in the code of plotMap_variantPairs function #73
Replies: 2 comments
-
Hi @pj-decastro, First off, thank you so much for providing detailed information on your issue. In ORTools, the plotMap_variantPairs function stems from the following references:
In both these papers, there are a few implicit assumptions:
In your case, the microstructure is bainitic and the operative OR is the irrational Greninger-Troijano orientation relationship.
|
Beta Was this translation helpful? Give feedback.
-
Closing this - resolved in 9c941bd |
Beta Was this translation helpful? Give feedback.
-
Description of the bug
Dear Developers,
Currently I’m working with the plotMap_variantPairs function of ORTools (v.2.3.0) to assess and extract block boundaries. While I was at it, I have noticed that some of the low angle boundaries (around 10°) are being attributed to high angle boundaries, such as V1-V2. Looking into the code, I came across the following (line 42 of plotMap_variantPairs):
variantGrains.prop.variantType = variantGrains.variantId - (variantGrains.packetId-1) * 24/4;
Which, as I understand, re-classifies the other 18 variants into the convention of Morito.
Taking the V1-V4 pairing as an example, I would expect the variants of the same LAGB bain group B1 (i.e. V1-V8, V1-V11) to be attributed to the V1-V4 pairing. However, using the equation above, a V8 variant is being re-classified to a V2, generating a V1-V2 pair. I think this leads to pairing between different packets to be wrong. I am attaching an image example.
Or am I missing something?
Warm regards,
Pedro
Description of the ebsd map
The EBSD is from a bainitic steel with was reconstructed with G-T OR.
Script to reproduce the bug
In this script I select one parent grain after a conventional parent grain reconstruction algorithm like example 07 from ORTools. I have also used another script to calculate the misorientation in a line profile.
Current behavior
Unexpected variant pairings.
Expected behavior
Pairings to be done between variants with expected misorientation relationship.
Error message (if any)
Please insert the errors in-between the lines bounded by the backticks ( ``...):
% insert the error message from this line onward ... ...
Screenshots (if any)

I am plotting here three images of the same prior austenite grain, one with the approach from the code above, and the other plotting the LAGB (2.5° to 15°) obtained via conventional calcGrains. The red line shows a misorientation analysis. It can be seen that a LAGB is shown as V1V3 pair by the code.
The blue arrow bellow is not related to the main topic but I thought I should mention it. I have commented about it in the additional comments section.
MTEX version:
Version 5.10.2, ORTools 2.3.0
Any other additional comments
One additional thing that I have noticed, is that some LAGB are actually not being detected with the boundaries obtained from plotMap_variantPairs, I have pointed that with an arrow in both figures, the LAGB is shown with the calcGrains approach.
Beta Was this translation helpful? Give feedback.
All reactions