oILAB
|
Functions | |
create (source, frame) | |
Variables | |
A | |
lattice = gb.Lattice3D(A) | |
lv1 = lattice.latticeVector(np.array([1.0,2.0,2.0])) | |
cartesianCoordinates = lv1.cartesian() | |
lv2 = gb.LatticeVector3D(lv1.cartesian(),lattice) | |
int | lv3 = 4*(lv1+lv2) |
rlv1 = gb.ReciprocalLatticeVector3D(np.array([1,5,6],dtype=np.int64),lattice) | |
rlv2 = gb.ReciprocalLatticeVector3D(np.array([2.,2.,4.],dtype=np.float64),lattice) | |
ld = rlv1.cross(rlv2) | |
bv1 = gb.LatticeVector3D(np.array([1,-1,0]),lattice) | |
bv2 = gb.LatticeVector3D(np.array([1,1,-2]),lattice) | |
bv3 = gb.LatticeVector3D(np.array([1,1,1]),lattice) | |
config = lattice.box([bv1,bv2,bv3],"config.txt") | |
misorientationAxis = lattice.reciprocalLatticeDirection(np.array([1.0,1.0,1.0])) | |
rotations = lattice.generateCoincidentLattices(misorientationAxis) | |
rot = Rotation.from_matrix(rotation) | |
int | angle = rot.magnitude() / 2 |
axis = rot.as_rotvec() | |
int | half_rotvec = axis / np.linalg.norm(axis) * angle |
positiveR = Rotation.from_rotvec(half_rotvec).as_matrix() | |
negativeR = Rotation.from_rotvec(-half_rotvec).as_matrix() | |
lattice1 = gb.Lattice3D(A,positiveR) | |
lattice2 = gb.Lattice3D(A,negativeR) | |
bicrystal = gb.BiCrystal3D(lattice1,lattice2,False) | |
csl = bicrystal.csl | |
bcslv1 = csl.latticeDirection(misorientationAxis.cartesian()).latticeVector() | |
bcslv2 = csl.latticeDirection(bcslv1.cross()).cartesian()).latticeVector() | |
bcslv3 = csl.latticeDirection(bcslv1.cross(bcslv2).cartesian()).latticeVector() | |
example.create | ( | source, | |
frame | |||
) |
Definition at line 96 of file example.py.
example.A |
Definition at line 9 of file example.py.
float example.angle = rot.magnitude() / 2 |
Definition at line 65 of file example.py.
example.axis = rot.as_rotvec() |
Definition at line 66 of file example.py.
example.bcslv1 = csl.latticeDirection(misorientationAxis.cartesian()).latticeVector() |
Definition at line 86 of file example.py.
example.bcslv2 = csl.latticeDirection(bcslv1.cross()).cartesian()).latticeVector() |
Definition at line 89 of file example.py.
example.bcslv3 = csl.latticeDirection(bcslv1.cross(bcslv2).cartesian()).latticeVector() |
Definition at line 91 of file example.py.
Definition at line 81 of file example.py.
int example.bv1 = gb.LatticeVector3D(np.array([1,-1,0]),lattice) |
Definition at line 50 of file example.py.
int example.bv2 = gb.LatticeVector3D(np.array([1,1,-2]),lattice) |
Definition at line 51 of file example.py.
int example.bv3 = gb.LatticeVector3D(np.array([1,1,1]),lattice) |
Definition at line 52 of file example.py.
example.cartesianCoordinates = lv1.cartesian() |
Definition at line 19 of file example.py.
Definition at line 56 of file example.py.
example.csl = bicrystal.csl |
Definition at line 84 of file example.py.
Definition at line 72 of file example.py.
example.lattice = gb.Lattice3D(A) |
Definition at line 12 of file example.py.
Definition at line 77 of file example.py.
Definition at line 78 of file example.py.
example.ld = rlv1.cross(rlv2) |
Definition at line 45 of file example.py.
example.lv1 = lattice.latticeVector(np.array([1.0,2.0,2.0])) |
Definition at line 15 of file example.py.
example.lv2 = gb.LatticeVector3D(lv1.cartesian(),lattice) |
Definition at line 23 of file example.py.
Definition at line 35 of file example.py.
example.misorientationAxis = lattice.reciprocalLatticeDirection(np.array([1.0,1.0,1.0])) |
Definition at line 59 of file example.py.
example.negativeR = Rotation.from_rotvec(-half_rotvec).as_matrix() |
Definition at line 74 of file example.py.
example.positiveR = Rotation.from_rotvec(half_rotvec).as_matrix() |
Definition at line 73 of file example.py.
example.rlv1 = gb.ReciprocalLatticeVector3D(np.array([1,5,6],dtype=np.int64),lattice) |
Definition at line 41 of file example.py.
example.rlv2 = gb.ReciprocalLatticeVector3D(np.array([2.,2.,4.],dtype=np.float64),lattice) |
Definition at line 42 of file example.py.
example.rot = Rotation.from_matrix(rotation) |
Definition at line 64 of file example.py.
example.rotations = lattice.generateCoincidentLattices(misorientationAxis) |
Definition at line 61 of file example.py.