Skip to content

ADV.TUT.01 A

Sunil Anandatheertha edited this page Jul 3, 2021 · 6 revisions

Moving forward from HERE, set the following if the simulation trial is the 1st one.

        GrainSizes_mtex_TRIALS          = cell(1, TOTAL_TRIALS);
        numNeighbors_mtex_TRIALS        = cell(1, TOTAL_TRIALS);
        equivalentRadius_mtex_TRIALS    = cell(1, TOTAL_TRIALS);
        ShapeFactor_mtex_TRIALS         = cell(1, TOTAL_TRIALS);
        AspectRatio_mtex_TRIALS         = cell(1, TOTAL_TRIALS);

To use MTEX and anlysize the grain struicture, use the following:

    [GrainSizes_mtex_TRIALS, numNeighbors_mtex_TRIALS,...
        equivalentRadius_mtex_TRIALS,~,...
        ShapeFactor_mtex_TRIALS, AspectRatio_mtex_TRIALS] = ANALYZE_GRAINSTRUCTURE_MTEX_V1(1,...
        1, GrainSizes_mtex_TRIALS, numNeighbors_mtex_TRIALS, equivalentRadius_mtex_TRIALS,...
        ShapeFactor_mtex_TRIALS, AspectRatio_mtex_TRIALS, GS_Plot_Options);

The below visuzlizations have been made for demonstration. All grain structure operations and visualixzations made available in PXO could be used (however, not all operations have been tested. Also, this process is not error free.)

Tutorial Adv 01-A

Do remember to use the following, before the above function call is made.

GS_Plot_Options_Choices = {'DontPLotAnything',...
                            'Grains,GB,Phases',...
                            'Grains,GB,Phases,TriPntJunc',...
                            'Orientations',...
                            'Orientations,GB',...
                            'Orientations,GB,Phases',...
                            'OrientationsIPFColorKeyed',...
                            'OrientationsIPFColorKeyed,GB',...
                            'OrientationsIPFColorKeyed,GB,Phases'};
GS_Plot_Options = GS_Plot_Options_Choices{3};
Clone this wiki locally