grain_mat
Syntax
grain_mat {grain_id x i j k y i j k z i j k}
i
,j
,k
= real number
Examples
grain_mat {1 x -1. 1. -2. y 1. 1. 0. z 1. -1. -1.}
grain_mat {1 x 1. 1. 0. y -1. 1. 2. z 1. -1. 1.} {2 x 1. 1. 0. y -1. 1. -2. z -1. 1. 1.}
Description
This command sets the crystallographic orientations in each grain, along the x, y, and z directions, respectively. Note that the curly brackets {
and }
in the syntax/examples are to separate different grains, the number of which is grain_number
; all brackets should not be included in preparing cac.in
.
Any two sets of vector must be normal to each other, i.e.,
The right hand rule must also be obeyed, i.e.,
The user will get an error message followed by the termination of the program if any of these requirements is not satisfied.
The maximum grain_id
must be larger than or equal to grain_number
. All information related to grain_id
that is larger than grain_number
is discarded.
Related commands
The number of grain is specified in the grain_num command.
This command becomes irrelevant when boolean_restart
= t, in which case there is no need for the crystallographic orientations information.
Related files
grain.f90
Default
grain_mat 1 x 1. 0. 0. y 0. 1. 0. z 0. 0. 1.