Orientation Generator#
The generation of orientation is based on MTEX and therefore Matlab.
The script has been tested with MTEX 5.10.0 and MatlabR2021a but is likely to works with newer version.
Install#
Install MTEX in Matlab.
Install the matlab functions from
orientation_tools
.
git clone https://gricad-gitlab.univ-grenoble-alpes.fr/mecaiceige/tools/ice-polycrystal-models/orientation_tools
And add to your Matlab Set-Path
the folder orientation_tools/src
Creating orientation file for R³iCe
and craft#
Open the Orientation_Generator.m
script.
The only parameters that needs to be change in this script are in this paragraph.
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Choose the type of texture that you want to build
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% number of orientation wanted in the output file
nb_ori=200;
% Select type of ODF ('uniform' or 'singleMax' or 'girdle')
prefix='uniform';
% angles spread for singleMax an girdle (degree)
aS=10;
% angles between y axis and girdle center (degree)
aG=45;
%% --------------------------------------------------
%% ------ NOTHINHG TO CHANGE BELLOW THIS LINE -------
%% --------------------------------------------------
Option :
nb_ori
: is the number of orientation that you want to generateprefix
: is the type of texture from which you want to generate the orientation (uniform
,singleMax
,girdle
)
Note
If uniform
is selected it generates a uniform texture.
Note
If singleMax
is selected it generates a texture with a single maximum align with y-axis.
aS
prescribe the opening of the single maximum (angle in degree).
Note
If girdle
is selected it generates a “girdle” like texture.
aG
prescribe the angle between the girdle and the y-axis (in degree).aS
prescribe the spreading around the girdle (angle in degree).
Once the input parameters are set you can run the script.
Output#
The outputs are generated in a new folder :
*.phase
file containnb_ori
orientations to be used incraft
*.rhori
file contain the samenb_ori
orientations to be used inrheolef_cti
*_ori.png
image is the texture of thenb_ori
orientations picked*_ori.th
image is the texture from which thenb_ori
orientations are picked