forked from mtex-toolbox/mtex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
changelog.m
2480 lines (2479 loc) · 87 KB
/
changelog.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%% MTEX Changelog
%
%
%% MTEX 6.0 10/2024
% MTEX 6.0 is major release that includes numerous new features and
% internal changes. Although we tried hard to make
%
%
% *Full 3d-Grains*
%
% With MTEX 6.0 three dimensional grain networks can be imported from
% <https://neper.info/index.html Neper> or <https://dream3d.bluequartz.net
% Dream 3d> and analyzed in a similar powerful way as you are used to do it
% with 2d grains. Have a look at <Grains3DOperations.html 3d-grain
% operations> and <Grains3DProperties.html 3d-grain properties> for more
% information.
%
% *Pseudo 3d EBSD and Grain maps*
%
% Additionally, all previous 2d-classes like @EBSD, @grain2d,
% @grainBoundary are not longer restricted to the xy-plane. For example it
% is now possible to consider EBSD maps that represent the three faces of a
% cube. To make this possible, multiple changes at the core of MTEX had to
% be introduced:
%
% * |ebsd.pos| gives the position of the EBSD measurements and is of type
% @vector3d
% * many grain properties like vertices |grains.V|, centroid |grains.centroid|
% or long axis |grains.longAxis| are now of type @vector3d.
% * |ebsd.N|, |grains.N| gives the normal direction of a EBSD map
% * it is not possible to merge EBSD maps with different normal direction
% into one variable
%
% *Free three dimensional plotting of EBSD maps, pole figures, etc.*
%
% * Plotting of EBSD and grain maps is now possible in 3d
% * The alignment of x, y and z on the screen is now controlled by an
% object of type @plottingConvention. The code
%
% how2plot = plottingConvention
% how2plot.outOfScreen = ebsd.N
% how2plot.east = yvector
% plot(ebsd, how2plot)
%
% would plot an EBSD map with its normal direction out of the screen and the
% y-vector pointing to north.
% * A default plotting convention can be stored directly in the EBSD or
% grain variable via
%
% ebsd.plottingConvention = how2plot
%
% * The plotting convention can also be passed to any spherical plot. This
% allows e.g. to plot pole figures with an arbitrary direction pointing out
% of the screen.
%
% * As consequence |'upper'| and |'lower'| refers to the outOFScreen
% direction.
%
% *Interface to Neper*
% Neper is an open source software package for 3d polycrystal generation
% and meshing. It is now possible to call Neper from within MTEX, simulate
% micro-structures, generated slices through a 3d volume and import those
% slices into MTEX. Have a look at <NeperInterface.html NeperInterface> for
% more information.
%
% *Misc Changes*
%
% * new option |'minPixel'| for the command <ebsd.calcGrains.html
% |calcGrains|> which allows to set a minimum grain size
% * <xxx ipf-sections> are a novel way of representing the orientation
% space
% * |grains(id).V| now returns only the vertices of the respective grain
% * |dot(vF1,vF2)| computes the inner product between two spherical vector
% fields.
% * the option |'FaceColor'| now allows to <CrystalShapes.html colorize
% crystal shapes according to their orientation>
% * <mtexFigure.drawNow.html |drawNow(gcm,'antiAliased')|> generates anti-aliased images
% * <EBSD.transform2PolarReferenceFrame.html
% |transform2PolarReferenceFrame|> transforms ebsd data into a polar
% reference frame
% * support for area detectors in ODF reconstruction from pole figure data
% * when computing parent EBSD data using
% <parentGrainReconstructor.calcParentEBSD.html |calcParentEBSD|> the
% parent orientation will now be constant within the parent grains. In
% order to enforce the old behavior of a fixed OR but varying parent
% orientation use the new option |'exactOR'|.
% * new interface to <sht files>
% * new function <stripStar.html |stripStar|>
% *
%% MTEX 5.11.0 3/2024
%
% MTEX 5.11 will be the last release before MTEX 6.0. It significantly
% improves grain reconstruction from 2d EBSD data.
%
% *Much Faster Grain Reconstruction*
%
% Thanks to using the <https://github.com/JCash/voronoi jc_voronoi> as
% tessellation method and some addition speedups grain reconstruction is
% now more than 10 times faster then previously. The method used for
% Voronoi tessellation is now specified in |mtex_settings| by the option
% |'VoronoiMethod'|. You may want to set this option to |'qhull'| if you
% experience problems with the |'jcvoronoi'| engine.
%
% *Much Better Grain Reconstruction*
%
% With MTEX 5.11 MTEX uses <https://en.wikipedia.org/wiki/Alpha_shape alpha
% shapes> to determine the shape of the grains in the presence of large
% unindexed regions. Those alpha shapes are controlled by a single
% parameter |'alpha'| with specifies to which extend indexed regions are
% allowed to grow into not indexed regions. Have a look at
% <GrainReconstruction.html grain reconstruction> for an illustration of
% the new method.
%
% *Vector Fields in Orientation Space*
%
% Functionality of <SO3FunVectorField.html Vector Fields in Orientation
% Space> has been greatly extended. It includes now functions to compute
% <SO3VectorField.div.html the divergence |div(vF)|>,
% <SO3VectorField.curl.html the curl |curl(vF)|> and the
% <SO3VectorFieldHarmonic.antiderivative.html antiderivative> of a vector
% field |vF| on orientation space. This new functionality can be used to
% efficiently model texture evolution by numerically solving the continuity
% equation as it is demonstrated for <SingleSlipModel.html the single slip
% model>. Crucial for this approach is the new command <doEulerStep.html
% |doEulerStep|> which updates an ODF or a list of orientation according to
% a vector field an orientation space which may be given e.g. by the Taylor
% model.
%
% *Lankford Parameter*
%
% The command <orientation.calcLankford.html |calcLankford|> allows for the
% computation of the Lankford or R-value. A full discussion of the
% corresponding analysis can be found <Lankford.html here>.
%
% *Transformation ODF*
%
% The command <orientation.variants.html |variants(p2c,odfParent)|>
% takes now as a second input a parent ODF and return the child ODF under
% the assumption that all variants appear with the same frequency. This is
% in more detail explained in the section <TransformationTexture.html
% Transformation Texture>.
%
% *Inner Planes in Crystal Shapes*
%
% Using the commands <crystalShape.plotInnerFace.html |plotInnerFace|>,
% <crystalShape.plot.html |plot(cS,sS)|> and <vector3d.arrow3d.html
% |arrow3d|> it is now possible to plot internal lattice planes, directions
% or slip systems into the crystal shape. This is explained in more detail
% at <CrystalShapes.html Crystal Shapes>.
%
% *Numerous minor improvements and bug fixes*
%
% * new command <SO3Fun.transformReferenceFrame
% |transformReferenceFrame(odf,csNew)|> that allows to switch between
% different setups of the same symmetry, i.e. between 121 and 112.
% * improved h5 interface
% * new function <SO3Fun.cor.html |cor(odf1,odf2)|> to compute the
% correlation between two ODFs.
% * new function <vector3d.lineIntersect.html |lineIntersect|> to compute
% the intersection between a line and a plane.
% * new class <S1FunHarmonics.html |S1Fun|> to represent directional
% properties in the plane.
% * new function <S2Fun.volume.html |volume(S2F,center,radii)|> to compute
% the volume of a spherical function within a ball.
% * replaces |CLim| by <setColorRange.html |setColorRange|>
% * <parentGrainReconstructor.calcParentEBSD.html |calcParentEBSD|>
% computes also the variant and packet ids
% * many bug fixes
%
%% MTEX 5.10.1 9/2023
%
% This is mainly a bug fix release.
%
%% MTEX 5.10.0 5/2023
%
% *Weighted Burgers Vector*
%
% With the function <EBSD.weightedBurgersVec.html |weightedBurgersVec(ebsd)|>
% it is now possible to compute the weighted burgers vector both, using the
% integral approach as well as the differential approach.
%
% *Bain Group Determination*
%
% The function <calcVariantId.html |calcVariantId|> now returns an id for
% the variant, the packet and the Bain group. The usage of this function is
% demonstrated <MartensiteVariants.html here>.
%
% *Numerous minor addon, speed improvements, bug fixes*
%
% * New option |'max'| to <orientation.angle.html |angle(mori)|> to compute
% the largest misorientation angle. Helpful for identifying twinning.
% * Added checks for symmetry and positive definiteness when defining
% stress, strain and elasticity tensors.
% * Add morphological filter <EBSD.erode.html |erode(ebsd)|> as a simple
% method for data cleaning in EBSD maps.
% * Pseudesymmetries like 532 are now natively supported using the syntax
% |crystalSymmetry('532')|
% * |symmetrise(t,'iso')| return the isotropic portion of a tensor
% * <tensor.symmetricDecomposition.html |symmetricDecomposition|> computes
% the symmetric decomposition of a tensor
% * normalize the Taylor factor according to the strain
% * display boundary length as default output
% * better import of h5 files
% * many more fixes and speed improvements
%
%% MTEX 5.9.0 2/2023
%
% *Habit Plane Detection*
%
% MTEX 5.9 includes powerful functions for the determination of predominant
% habit planes and habit plane distributions. For the setting of a fully
% transformed microstructure the are described in the paper <Habit plane
% determination from reconstructed parent phase orientation maps>. Those
% functions include
%
% * new function <grain2d.calcTraces.html |calcTraces(grains)|> and
% <EBSD.calcTraces.html |calcTraces(ebsd)|> to compute habit plane traces
% from families of grains or EBSD data.
% * new function <calcGBND.html |calcGBND(traces,ori)|> to compute the
% grain boundary normal distribution from a list of habit plane traces and
% the corresponding grain orientations.
% * new function <grainBoundary.characteristicShape.html
% |characteristicShape(gB)|> to compute the characteristic shape from lists
% of grain boundaries
%
% *Orientation dependent functions*
%
% The orientation distribution function (ODF) describes the relative volume
% of crystal orientations within a material. As such it is a function that
% associates to each orientation a number with unit mrd (multiples of
% random distribution). However, in material science many other orientation
% depended functions are of importance, e.g., the Taylor factor with
% respect to some outer strain depends on the local orientation. While ODFs
% have ever since been at the heart of MTEX, this release is the first one
% that includes full support for orientation dependent functions. Those
% functions are called @SO3Fun and behave similar to spherical functions
% @S2Fun. In particular one can
%
% * add, subtract, multiply and divide with them
% * compare them
% * detect global and local extrema
% * visualize them in 3d and 2d sections
% * compute gradients
%
% While implementing these new features we also significantly speed up
% all operations related with ODF operations. A full documentation of these
% new features can be found <SO3FunConcept.html here>.
%
%
%% MTEX 5.8.2 11/2022
%
% This is mainly a bug fix release. New functionalities include
%
% * <fibre.fit.html |fibre.fit(ori)|> and <fibre.fit.html |fibre.fit(odf)|>
% robustly finds fibers in data sets of individual orientations and ODFs.
% * <fibre.angle.html |angle(f1,f2)|> computes the angle between two
% <OrientationFibre.html fibers>.
% * <S2Fun/calcSymAxis.html |calcSymAxis(pf)|> allows to find rotational
% symmetries in <ODFPoleFigure.html pole figures> or arbitrary
% <S2FunConcept.html spherical functions>.
%
%% MTEX 5.8.0 01/2022
%
% MTEX 5.8 improves further on parent grain reconstruction by implementing
% the novel <https://arxiv.org/abs/2201.02103 variant graph algorithm>
% which is faster and more accurate than the previous grain graph algorithm.
%
% *Improved parent grain reconstruction*
%
% Along with the new reconstruction algorithm the following new features
% have been implemented:
%
% * manual interactive parent orientation selection using
% <parentGrainReconstructor.selectInteractive.html |selectInteractive(job)|>
% * new option |'reconsiderAll'| in
% <parentGrainReconstructor.calcGBVotes.html |calcGBVotes(job)| to recheck
% all assignments of parent orientations.
% * new option |'bestFit'| in
% <parentGrainReconstructor.calcGBVotes.html |calcGBVotes(job)| to consider
% only the best fitting neighbor
% * |job.votes| is now a table which contains the parentId votes and the
% probabilities for all grains
%
% *Misc Changes*
%
% * new option |'region'| for |<EBSD.plot.html plot(ebsd)>| to plot only a
% rectangular subregion of the map
%
%% MTEX 5.7.0 05/2021
%
% MTEX 5.7 improves on parent grain reconstruction. Changes include:
%
% *Improved parent grain reconstruction*
%
% * The ordering of the variants is stored within the OR misorientation |p2c|
% as |p2c.variantMap|. In particular the variants in |p2c.variants| are
% ordered by default according to the Morito convention. This can be easily
% check by the command |round2Miller(p2c.variants)|
% * The command |job.calcGBVotes| and |job.calcTPVotes| compute votes
% associated with probabilities that are stored in |job.votes| and can
% easily be analyzed.
% * The options |'noP2C'| and |'noC2C'| have been replaced by |'p2c'| and
% |'c2c'|.
% * New option |job.useBoundaryMisorienation| which makes the parent grain
% reconstructor to use the misorientations along the grain boundaries
% instead of the misorientations between the grain mean orientations.
% * added ShojiNishiyama orientation relationship.
%
% *Other Changes*
%
% * The command |findByOrientation| accepts a fiber as input.
% * The antipodal |axisAngleColorKey| allows for option |'antipodal'|.
%
%
%% MTEX 5.6.1 03/2021
%
% This is mainly a bug fix release.
%
%% MTEX 5.6.0 01/2021
%
% MTEX 5.6 greatly simplifies parent grain reconstruction by introducing
% the class <parentGrainReconstructor.parentGrainReconstructor.html
% |parentGrainReconstructor|>. During the reconstruction procedure this
% class keeps track of the correspondence between measured child grains and
% the reconstructed parent grains. It provides the following functions for
% recovering parent orientations which can be applied multiple times and in
% any order to achieve the best possible reconstruction.
%
% * <parentGrainReconstructor.calcParent2Child.html |calcParent2Child|> - optimize parent to child orientation relationship
% * <parentGrainReconstructor.calcGBVotes.html |calcGBVotes|> - compute votes from child/child and parent/child grain boundaries
% * <parentGrainReconstructor.calcTPVotes.html |calcTPVotes|> - compute votes from child/child/child triple points
% * <parentGrainReconstructor.calcParentFromVote.html |job.calcParentFromVote|> - recover parent orientations from votes
% * <parentGrainReconstructor.calcParentFromGraph.html |job.calcParentFromGraph|> - recover parent orientations from graph clusteres
% * <parentGrainReconstructor.mergeSimilar.html |job.mergeSimilar|> - merge similar parent grains
% * <parentGrainReconstructor.mergeInclusions.html |job.mergeInclusions|> - merge inclusions
% * <parentGrainReconstructor.revert.html |job.revert|> - undo parent grain reconstructions
%
% The usage of this new class is demonstrated in <TiBetaReconstruction.html
% Beta Titanium Reconstruction> and <MaParentGrainReconstruction.html
% Parent Martensite Reconstruction>.
%
% *Compatibility fixes*
%
% MTEX 5.6 fixes several incompatibilities with MATLAB versions earlier
% then 2019b.
%
%% MTEX 5.5.0 11/2020
%
% *Orientation Embedding*
%
% Orientational embeddings are tensorial representations of orientations
% with the specific property that each class of symmetrically equivalent
% orientations has a unique tensor representation. In contrast to the well
% known representation by Rodrigues vectors those embeddings do not suffer
% from boundary effects, i.e., the Euclidean distance between the tensors
% is always close to the misorientation angle. This allows to lift any
% method that works for multivariate data to orientations. More details of
% this representation can be found in the chapter
% <OrientationEmbeddings.html orientation embeddings> and the paper
%
% * R. Hielscher, L. Lippert, _Isometric Embeddings of Quotients of the
% Rotation Group Modulo Finite Symmetries_,
% <https://arxiv.org/abs/2007.09664 arXiv:2007.09664>, 2020.
%
% *Low Angle Boundaries*
%
% With MTEX 5.5 we make low angle grain boundary analysis much more straight
% forward by allowing to pass to the command <EBSD.calcGrains.html
% |calcGrains|> two thresholds, i.e.,
%
% grains = calcGrains(ebsd,'threshold',[10*degree 1*degree])
%
% generates grains bounded by high angle grain boundaries with a threshold
% of 10 degree and inner low angle boundaries with an threshold of 1
% degree. The latter ones are stored as |grains.innerBoundary|. In order to
% estimate the density of inner boundaries per grain the commands
% <grain2d.subBoundaryLength.html |subBoundaryLength|> and
% <grain2d.subBoundarySize.html |subBoundarySize|> have been introduced.
% The documentation page <SubGrainBoundaries.html Subgrain Boundaries>
% describes the analysis of low angle boundaries in more detail.
%
% *New Functionalities*
%
% * For single phase EBSD maps you can access the orientations now more
% easily by |ebsd.orientations| instead of |ebsd('indexed').orientations|.
% Orientations corresponding to not indexed pixels will be returned as NaN
% and thus automatically ignored during any further computation.
% * <grain2d.isBoundary |grains.isBoundary|> checks grains to be
% boundary grains
% * <grain2d.isInclusion |grains.isInclusion|> checks grains to be
% inclusions
% * <grain2d.merge.html |merge(grains,'inclusions')|> merges inclusions
% into their hosts
% * <grain2d.merge.html |merge(grains,'threshold',delta)|> merges grains
% with a certain misorientation angle
% * interpolation of EBSD maps at arbitrary coordinates by the command
% <EBSD.interp.html |interp|> works now for hexagonal grids as well. In
% particular this allows to remap EBSD data from hexagonal to square grids
% and vice versa. Have a look at the chapter <EBSDInter.html Interpolation>
% for more details.
% * <EBSD.calcMis2Mean.html |calcMis2Mean|> computes the misorientation to
% a grain reference orientation, i.e., the <EBSDGROD.html grain reference
% orientation deviation (GROD)>.
% * KAM computation has been speed up significantly for hexagonal and
% square grids. Make sure to use the command |ebsd = ebsd.gridify| before
% the KAM computation.
% * new option |'edgeAlpha'| to control the transparency of grain
% boundaries, e.g. in dependency of the misorientation angle.
% * more easily add new / change phases in an EBSD map by one of the
% following commands
%
% ebsd(ind).orientations = orientation.byEuler(0,0,0,CSNew)
% ebsd(ind).CS = CSNew
%
% * new option to plot arrows in spherical plots by
%
% plot([vector3d.Z, vector3d.Z + 0.5 * vector3d.rand],'arrow')
%
% * <EBSD.export.html |export(ebsd,fileName)|> allows to export to EBSD
% data to |.ang|, |.ctf|, |.crc| and |.hdf5| files, thanks to Azdiar Gazder
% * new function <rotation.fit.html |rot = fit(l,r)|> to compute the
% rotations that best rotates all the vectors |l| onto the vectors |r|
%
% * <orientation.load.html |orientation.load|> and <vector3d.load.html
% |vector3d.load|> allows now to import additional properties.
%
% *Important Bug Fixes*
%
% * <SO3Fun.volume.html |volume(odf)|> gave wrong results in the presence of
% specimen symmetry and for centers close to the boundary of the
% fundamental region.
%
% * <slipSystem.symmetrise.html |slipSystem.symmetrise|> gave
% incorrect number of slipsystems due to a rounding error
%
%% MTEX 5.4.0 7/2020
%
% *Parent Grain Reconstruction*
%
% MTEX now includes a number of functions for variant analysis and to
% recover parent grain structure. Examples include
% <TiBetaReconstruction.html beta phase reconstruction in Titanium> and
% <MaParentGrainReconstruction.html Martensite reconstruction from
% Austenite grains>. The reconstruction is mainly build around the
% following new commands
%
% * <calcParent.html |calcParent|> computes the best fitting parent
% orientations from child orientations
% * <calcChildVariants.html |calcChildVariants|> separates child variants
% into packets
% * <calcParent2Child.html |calcParent2Child|> computes best fitting parent
% to child orientation relationship from child to child misorientations
% * <variants.html |variants|> computes all parent or child variants
%
% *New Functionalities*
%
% * new function <EBSD.interp.html |ebsd.interp|> to interpolate EBSD maps
% at arbitrary x,y coordinates, <EBSDInter.html example>
% * <grain2d.smooth.html |smooth(grains)|> keeps now triple points and outer
% boundary fixed by default
% * the field |grains.triplePoints.angles| returns the angles between the
% boundaries at the triple points
% * new option |'removeQuadruplePoints'| to |<EBSD.calcGrains.html
% calcGrains>|
% * harmonic approximation of spherical functions respecting symmetry
% * |export(ebsd,'fileName.ang')| exports to .ang files
% * <grain2d.neighbours.html |neighbours(grains)|> now returns a list of
% pairs of neighboring grains
% * <grain2d.numNeighbours.html |grains.numNeighbours|> returns the number
% of neighboring grains
% * <grainBoundary.selectByGrainId.html |selectByGrainId|> allows to select
% boundary segments by pairs of grains
% * new helper function <majorityVote.html |majorityVote|>
% * new option |'noAntipodal'| for many commands like |symmetrise|,
% |unique|, |dot|, |angle|
% * new predefined orientation relationship |orientation.Burgers|
%
%% MTEX 5.3.1 6/2020
%
% *New Functions*
%
% * <EBSDSquare.interp.html interp> to interpolate EBSD maps
% * grain properties <grain2d.longAxis.html longAxis>, <grain2d.shortAxis.html shortAxis>
% * <BoundaryCurvature.html grain boundary curvature>
%
% *Bug Fixes*
%
% * loading ang files
% * importing ODFs
% * inverse pole figures misses orientations
% * <grain2d.hull convex hull> of grains has now correct boundaries
%
% * Other Changes*
%
% * <vector3d.mean.html vector3d/mean> now returns not normalized vectors
% * new flag |noAntipodal| to supress antipodal symmetry in calculations
%
%% MTEX 5.3.0 4/2020
%
% MTEX 5.3 is a humble release without big shiny improvements. On the other
% hand is has seen some internal changes which lead to significant speed
% improvements in some functions. Technically speaking the class @symmetry
% is not derived from @rotation anymore but is a handle class. From the
% users perspective almost no change will be noticed. Developers should
% replace |length(cs)| by |numSym(cs)|.
%
% *Much Better and Faster Halfquadratic Filter*
%
% Denoising of EBSD data using the
% <https://mtex-toolbox.github.io/EBSDDenoising.html#10
% |halfQuadraticFilter|> is now about 10 times faster, handles outliers
% much better and runs native on hexagonal grids.
%
% *New Functions*
%
% * <stiffnessTensor.plotWaveVelocities.html |plotWaveVelocities|>
% illustrates anisotropy of seismic waves
% * <EBSD.grainMean.html |grainMean|> grain averages of arbitrary properties
% * shape functions <grain2d.surfor.html |surfor|>, <grain2d.paror.html
% |paror|>, <grain2d.caliper.html |caliper|>
% * <Miller.multiplicity.html |multiplicity|> for Miller, orientation and
% fiber
%
%% MTEX 5.2.3 11/2019
%
% * replaced |calcODF(ori)| by |<orientation.calcDensity.html calcDensity(ori)>|
% * bug fix in ODF reconstruction from XRD data
% * bug fix in EBSD export to ctf
% * bug fix in grain reconstruction
% * some more minor bug fixes
%
%% MTEX 5.2.0 10/2019
%
% *New Documentation*
%
% MTEX got a new homepage which was needed to include a much more
% exhaustive online documentation which has now
%
% * a sidebar for quick navigation
% * a search field
% * a complete function reference to all MTEX functions and classes
% * UML diagrams illustrating the hierarchy of the classes
% * much more content
%
% The new documentation is not yet perfect though we are working hard to
% improve it. That's why we are extremely happy for everybody who contributes
% additions to the documentation. This includes the correction of spelling
% errors, theoretical parts, examples etc. Check out <Contribute2Doc.html
% how to contribute to the documentation>.
%
% *More Colors*
%
% All plotting commands in MTEX support now much more colors. By default
% all the color names of the CSS palette can be chosen, e.g., aqua,
% orange, gold, goldenrod, etc. To see a full list of supported colors do
%
% colornames_view
%
% The following function have been included to handle colors more
% efficiently
%
% * <str2rgb.html |str2rgb|> convert color str to RGB color
% * <ind2color.html |ind2color|> convert index to distrinct RGB colors,
% good for loops
%
% *Improved Import Wizard*
%
% Importing EBSD data using the import wizard allows to interactively
% realign the data and check with respect to the pole figures.
%
% *Speed Improvements*
%
% * much faster visualization of the large EBSD maps if <EBSD.gridify.html
% |gridify|> is used
% * faster Fourier transforms on the sphere and the orientation space
% * support for <MOSEK
% https://docs.mosek.com/9.0/toolbox/install-interface.html> as faster
% replacement for linprog from the Optimization Toolbox
%
% *Support for hexagonal EBSD grids*
%
% The function <EBSD.gridify.html |gridify|> now works also for EBSD data
% measured on a hexagonal grid. As a consequence denoising and GND
% computation for those data is also on the way.
%
%
% *Plastic Deformations*
%
% MTEX 5.2. introduces a bunch of new tensor classes to make modelling of
% plastic deformations more straight forward.
%
% * <velocityGradientTensor.velocityGradientTensor.html Velocity Gradient Tensors>
% * <strainRateTensor.strainRateTensor.html strain rate tensor>
% * <deformationGradientTensor.deformationGradientTensor.html deformation gradient tensor>
% * <spinTensor.spinTensor.html spin tensor>
%
% The relationships between those tensors are explained in the section
% <PlasticDeformation.html plastic deformations>.
%
%
% *Spherical Bingham Distribution*
%
% Native support for spherical <BinghamS2.BinghamS2.html Bingham distributions>,
% including the ability to <BinghamS2.fit.html fit> them to directional
% distributions.
%
% *Tensors*
%
% * Improved methods for the visualization of elastic properties, see
% <SeismicVelocitySingleCrystalDemo2d.html Seismic demo>
% * several new functions like <tensor.trace.html |trace|>,
% <tensor.svd.html |svd|>, <tensor.det.html |det|>, <tensor.colon.html
% double dot product |:|>
% * the function <tensor.mean.html |mean|> computes now Voigt, Reuss, Hill
% and geometric means
%
% *Improved Figure Layout*
%
% * fix layout
% * plot at fixed positions
%
% *Misc Changes*
%
% * allow to export EBSD data to |.ctf| thanks to Frank Niessen
% * compute the volume of a crystal shape
% * label crystal faces in crystal shapes
% * new function <orientation_std.html |std|> for computing the standard
% deviation of orientations
% * new function <calcKearnsFactor.html |calcKearnsFactor|>
% * |grainBoundary.ebsdId| is now the id and not the index of the EBSD data
% * allow to index ebsd data and grains by id using |{}| brackets
%
% ebsd{id}
% grains{id}
%
% * new options to scatter
%
% scatter(v,'numbered') % plot vectors with numbers
% scatter(v,'MarkerFaceColor','none') % plot vectors with colored empty marks
%
%% MTEX 5.1.0 04/2018
%
% *Dislocation systems*
%
% Starting with version 5.1 MTEX introduces a class representing
% dislocation systems. Dislocation systems may be lists of edge or screw
% dislocations and are either defined by its burgers and line vectors
%
% cs = crystalSymmetry('432')
% b = Miller(1,1,0,cs,'uvw')
% l = Miller(1,-1,-2,cs,'uvw')
% dS = dislocationSystem(b,l)
%
% by a family of slipsystems
%
% sS = slipSystem.fcc(cs)
% dS = dislocationSystem(sS)
%
% or as the family of predefined dominant dislocation systems by
%
% dS = dislocationSystem.fcc(cs)
%
% More information how to calculate with dislocation systems can be found
% <dislocationSystem.dislocationSystem.html here>.
%
% *Geometrically neccesary dislocations*
%
% The newly introduced dislocation systems play an important role when
% computing geometrically neccesary dislocations from EBSD data. The
% workflow is illustrate the script <GND.html GND> and consists
% of the following steps:
%
% # define the dominant <dislocationSystem.dislocationSystem.html
% dislocation systems>
% # transform the dislocation systems into specimen coordinates for each
% pixel of the EBSD map
% # compute the <curvatureTensor.curvatureTensor.html curvature tensor> for
% each pixel in the EBSD map
% # <curvatureTensor.fitDislocationSystems.html fit the dislocation
% systems> to the curvature tensors.
% # compute the total energy in each pixel
%
% *Tensor arithmetics*
%
% <dyad.html |dyad|>, <tensor.trace.html |trace|>, <tensor.det.html
% |det|>, <tensor.mean.html |mean|>, <tensor.diag.html
% |diag|>, <tensor.eye.html |eye|>, <tensor.sym.html |sym|>
%
% *Birefringence*
%
% MTEX 5.1 includes some basic methods to analyze and simulate optically
% isotropic materials. This includes the computation of the optical axis,
% birefringence and spectral transmission. The new features are
% demonstrated in <BirefringenceDemo.html BirefringenceDemo>.
%
% *Color Keys*
%
% In MTEX 5.1 the color keys used for coloring EBSD have been a bit
% reorganised.
%
% * seperate classes for directional color keys. So far these classes are
% <HSVDirectionKey.html |HSVDirectionKey|>, <HKLDirectionKey.html
% |HKLDirectionKey|>, <TSLDirectionKey.html |TSLDirectionKey|>. This has
% become neccesary as some orientation color keys depend directional color
% keys with different symmetry.
%
% * new color key <axisAngleColorKey.html |axisAngleColorKey|> that
% implements the coloring described in K. Thomsen, K. Mehnert, P. W. Trimby
% and A. Gholinia: Quaternion-based disorientation coloring of orientation
% maps, Ultramicroscopy, 2017. In central idea is to colorise the
% misorientation axis with respect to the specimen reference system.
%
% * The existing color keys have been renamed for better consistency. The
% new names are <BungeColorKey.html |BungeColorKey|>, <ipfHSVKey.html
% |ipfHSVKey|>, <ipfHKLKey.html |ipfHKLKey|>, <ipfTSLKey.html |ipfTSLKey|>,
% <ipfSpotKey.html |ipfSpotKey|>, <spotColorKey.html |spotColorKey|>,
% <PatalaColorKey.PatalaColorKey.html |PatalaColorKey|>
%
% *Spherical functions*
%
% * new function <S2Fun.discreteSample.html |discreteSample|> to compute
% random samples from spherical density functions
% * new option to <S2FunHarmonic.symmetrise.html |symmetrise|> to
% symmetrise a spherical function with respect to an axis
%
% *Misc*
%
% * new fuction <grain2d.fitEllipse.html |fitEllipse|> to assign ellipses
% to grains
% * the functions <tensor.symmetrise.html |symmetrise(tensor)|> and
% <S2FunHarmonic.symmetrise.html |symmetrise(S2F)|> do support
% symmetrisation with respect to a certain axis.
% * the function <quaternion.export.html |export(ori)|> allows to export
% arbitrary additional properties together with the Euler angles, e.g. the
% half axes and orientation of the grain ellipses
% * the function <loadOrientation_generic.html |loadOrientation_generic|>
% allows to import arbitrary additional properties together with the
% orientations, e.g., weights
% * new option |logarithmic|
% * new function <SO3Fun.grad.html |grad|> to compute the gradient of and ODF
% at a certain orientation
% * explicitely set the number of rows and columns in a MTEXFigure plot
% with
% * EBSD hdf5 interface works now for Bruker data as well
%
%% MTEX 5.0.0 03/2018
%
% *Replace all executables by two mex files*
%
% In MTEX many functionalities are based on the non equispaced fast Fourier
% transform (<http://www.nfft.org NFFT>). Until now this dependency was kept under
% the hood, or more precisely, hidden in external executable files which often
% caused troubles on MAC systems. Starting with MTEX 5.0. all the executables
% have been replaced by two mex files provided by the NFFT package. This
% change (hopefully) comes with the following advantages
%
% * better compatibility with MAC systems, no SIP disabled required
% * increased performance, e.g., due to multi core support
% * better maintainability, as all MTEX code is now Matlab code
% * the pole figure to ODF inversion algorithm is now entirely implemented
% in Matlab making it simple to tweak it or add more sophisticated
% inversion algorithms
%
% *Spherical functions*
%
% Many functions in MTEX compute directional dependent properties, e.g.
% pole figures, inverse pole figures, wave velocities, density distribution
% of misorientation axis or boundary normals. Until now those functions
% took as an input an of vector of directions and gave as an output a
% corresponding vector of function values, e.g. the command
%
% pfi = calcPDF(odf,Miller(1,0,0,odf.CS),r)
%
% returns for a list of specimen directions |r| the corresponding list of
% pole figure intensities |pfi| for the ODF |odf|. Starting with MTEX 5.0 it
% is possible to ommit the list of specimen directions |r| or replace it by
% an empty list |[]|. In this case the command
%
% pdf = calcPDF(odf,Miller(1,0,0,odf.CS))
%
% returns a <S2FunHarmonic.S2FunHarmonic.html spherical function> |pdf| also called
% pole density function. One can evaluate this spherical function using the
% command <S2FunHarmonic.eval.html eval> at the list of specimen directions
% |r| to obtain the pole figure intensities
%
% pfi = pdf.eval(r)
%
% However, there are many more operations that can be performed on
% spherical functions:
%
% % compute with spherical functions as with ordinary numbers
% pdf3 = 5 * pdf1 + 3 * pdf2
% pdf = max(pdf,0) % repace of negative entries by 0
% pdf = abs(pdf) % take the absolute value
% sum(pdf) % the integral of the pole figure
% sum(pdf.^2) % the integral of the pole figure squares - also called pole figure index
%
% % plotting
% plot(pdf)
% plot3(pdf) % plot in 3d
%
% % detect maximum value
% [value,pos] = max(pdf)
%
% % compute the eigen values and eigen vectors
% [e,v] = eig(pdf)
%
% For a complete list of functions read <S2FunHarmonic.S2FunHarmonic.html here>.
%
% *Symmetry aware spherical functions*
%
% Since most of the directional dependent properties obey additional
% symmetry properties the class <S2FunHarmonic.S2FunHarmonic.html
% S2FunHarmonic> has been extended to respect symmetry in the class
% <S2FunHarmonicSym.S2FunHarmonicSym.html S2FunHarmonicSym>.
%
% *Multivariate spherical functions, vector fields and spherical axis fields*
%
% In some cases it is useful that a spherical function gives not only one
% value for a certain direction but several values. This is equivalent to
% have concatenate several univariate spherical function to one
% multivariate function. This can be accomplished by
%
% S2Fmulti = [S2F1,S2F2,S2F3]
%
% which gives a spherical function with 3 values per direction. More
% information how to work multivariate functions can be found
% <S2FunMultivariate.html here>.
%
% If we interpret the 3 values of |S2Fmulti| as $x$, $y$, and, $z$ coordinate of
% a 3 dimensional vector, the function |S2Fmulti| can essentially be seen as
% a spherical vector field associating to each direction a three
% dimensional vector. The most important example of such a vector field is
% the gradient of a spherical function:
%
% g = S2F1.grad
%
% The resulting variable |g| is of type <S2VectorField.S2VectorField.html
% S2VectorField>. A complete list of functions available for vector fields
% can be found <S2VectorField.S2VectorField.html here>.
%
% Another example for vector fields are polarisation directions |pp|,
% |ps1|, |ps2| as computed by
%
% [vp,vs1,vs2,pp,ps1,ps2] = velocity(C)
%
% The main difference is, that polarisation directions are antipodal, i.e.
% one can not distinguish between the polarisation direction |d| and |-d|.
% In MTEX we call vector fields with antipodal values are represented by
% variables of type <S2AxisFieldHarmonic.S2AxisFieldHarmonic.html AxisField>.
%
% *Scalar tensor properties are returned as spherical functions*
%
% Any scalar or vectorial property of a tensor is not returned as a
% spherical function or spherical vector field. Examples are the velocity
% properties mentioned above, Youngs modulus, shear modulus, Poisson ration
% etc. In particular, plotting those directional dependend quantities is as
% simple as
%
% plot(C.YoungsModulus)
%
% This makes the old syntax
%
% plot(C,'plotType','YoungsModulus')
%
% obsolete. It is not supported anymore.
%
% *Crystal shapes*
%
% MTEX 5.0 introduces a new class <crystalShape.crystalShape.html crystalShape>.
% This class allows to plot 3-dimensional representations of crystals on
% top of EBSD maps, pole figures and ODF sections. The syntax is as follows
%
% % define the crystal symmetry
% cs = loadCIF('quartz');
%
% % define the faces of the crystal
% m = Miller({1,0,-1,0},cs); % hexagonal prism
% r = Miller({1,0,-1,1},cs); % positive rhomboedron, usally bigger then z
% z = Miller({0,1,-1,1},cs); % negative rhomboedron
% s2 = Miller({1,1,-2,1},cs); % right tridiagonal bipyramid
% x2 = Miller({5,1,-6,1},cs); % right positive Trapezohedron
% N = [m,r,z,s2,x2];
%
% % define the crystal shape
% habitus = 1.2; % determines the overal shape
% extension = [1,1.2,1]; % determines the extension of the crystal in x,y,z direction
% cS = crystalShape(N,habitus,extension);
%
% plot(cS)
% plot(x,y,cS)
% plot(grains,cS)
% plot(ebsd,cS)
% plotPDF(ori,ori*cS)
%
% *ODF component analysis*
%
% MTEX 5.0 allows for decomposing ODF into components using the command
% <SO3Fun.calcComponents.html calcComponents>. In its simplest form
%
% [mods,weights] = calcComponents(odf)
%
% returns a list of modal orientaions |mods| and a list of weights which
% sum up to one. A more advanced call is
%
% [modes, weights,centerId] = calcComponents(odf,'seed',oriList)
%
% which returns in centerId also for each orientation from |oriList| to
% which component it belongs.
%
% *Clustering of orientations*
%
% The ODF component analysis is used as the new default algorithm in
% <orientation.calcCluster.html calcCluster> for orientations. The idea is
% to compute an ODF out of the orientations and call
% <SO3Fun.calcComponents.html calcComponents> with
%
% [center,~,centerId] = calcComponents(odf,'seed',ori)
%
% Then |center| are the clusters center and |centerId| gives for each
% orientation to which cluster it belongs. Substantional in this method is
% the choise of the kernel halfwidth used for ODF computation. This can be
% adjusted by
%
% [c,center] = calcCluster(ori,'halfwidth',2.5*degree)
%
% *New tensor classes*
%
% With MTEX 5.0 we start introducing specific tensor classes. So far we
% included the following classes
%
% * <stiffnessTensor.stiffnessTensor.html stiffnessTensor>
% * <complianceTensor.complianceTensor.html complianceTensor>
% * <strainTensor.strainTensor.html strainTensor>
% * <stressTensor.stressTensor.html stressTensor>
% * <ChristoffelTensor.ChristoffelTensor.html ChristoffelTensor>
%
% more tensors are supposed to be included in the future. The central
% advantage is that tensor specific behaviour and functions can now better
% be implemented and documented, e.g., that the inverse of the compliance
% tensor is the stiffness tensor and vice versa. For user the important
% change is that e.g. the stiffness tenssor is now defined by
%
% C = stiffnessTensor(M,cs)
%
% instead of the depreciated syntax
%
% C = tensor(M,cs,'name','elastic stiffness','unit','GPA')
%
% *Improved spherical plotting*
%
% In MTEX 4.X it was not possible to display the upper and lower hemisphere
% in pole figure plots, inverse pole figure plots or ODF section plots.
% This was a server restriction as for certain symmetries both hemispheres
% do not have to coincide. In MTEX 5.0 this restriction has been overcome.
% MTEX automatically detects whether the upper and lower hemisphere are
% symmetrically equivalent and decides whether both hemispheres needs to be
% plotted. As in the previous version of MTEX this can be controlled by the
% options |upper|, |lower| and |complete|.
%
% As a consequence the behaviour of MTEX figures have changed slightly. By
% default MTEX now always plots into the last axis. In order to annotate
% orintations or directions to all axes in a figure use the new option
% |add2all|.
%
% plotIPDF(SantaFe,[xvector,yvector+zvector])
% [~,ori] = max(SantaFe)
% plot(ori,'add2all')
%
% We also introduced two new functions <S2Fun.plotSection.html plotSection>
% and <S2Fun.quiverSection.html quiverSection> to visualize spherical
% functions restricted to a plane. As an exaple one can now plot the
% slowness surfaceses of wave velocities in the plane perpendicular to Y
% with
%
% plotSection(1./vp,vector3d.Y)
%
% see <AnisotropicTheory.html here> for more information.
%
% *Other new functions*
%
% * <SO3Fun.grad.html odf.grad> computes the gradient of an ODF at some
% orientation
% * <grain2d.hist.html grain2d.hist> can now plot histogram of arbitrary
% properties
% * <SO3Fun.fibreVolume.html |fibreVolume|> works also for specimen symmetry
% * allow to change the length of the scaleBar in EBSD plots
%
%% MTEX 4.5.2 11/2017
%
% This is mainly a bug fix release
%
% * some more functions get tab completetion for input arguments
% * the option 'MarkerSize' can also be a vector to allow for varying Markersize
% * new option 'noSymmetry' for plotPDF and plotSection
%
% *orientation relation ships*
%
% * new functions for computing variants and parents for a orientation