|
oILAB
|
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.A |
Definition at line 6 of file example.py.
| float example.angle = rot.magnitude() / 2 |
Definition at line 62 of file example.py.
| example.axis = rot.as_rotvec() |
Definition at line 63 of file example.py.
| example.bcslv1 = csl.latticeDirection(misorientationAxis.cartesian()).latticeVector() |
Definition at line 83 of file example.py.
| example.bcslv2 = csl.latticeDirection(bcslv1.cross().cartesian()).latticeVector() |
Definition at line 86 of file example.py.
| example.bcslv3 = csl.latticeDirection(bcslv1.cross(bcslv2).cartesian()).latticeVector() |
Definition at line 88 of file example.py.
Definition at line 78 of file example.py.
| int example.bv1 = gb.LatticeVector3D(np.array([1,-1,0]),lattice) |
Definition at line 47 of file example.py.
| int example.bv2 = gb.LatticeVector3D(np.array([1,1,-2]),lattice) |
Definition at line 48 of file example.py.
| int example.bv3 = gb.LatticeVector3D(np.array([1,1,1]),lattice) |
Definition at line 49 of file example.py.
| example.cartesianCoordinates = lv1.cartesian() |
Definition at line 16 of file example.py.
Definition at line 53 of file example.py.
| example.csl = bicrystal.csl |
Definition at line 81 of file example.py.
Definition at line 69 of file example.py.
| example.lattice = gb.Lattice3D(A) |
Definition at line 9 of file example.py.
Definition at line 74 of file example.py.
Definition at line 75 of file example.py.
| example.ld = rlv1.cross(rlv2) |
Definition at line 42 of file example.py.
| example.lv1 = lattice.latticeVector(np.array([1.0,2.0,2.0])) |
Definition at line 12 of file example.py.
| example.lv2 = gb.LatticeVector3D(lv1.cartesian(),lattice) |
Definition at line 20 of file example.py.
Definition at line 32 of file example.py.
| example.misorientationAxis = lattice.reciprocalLatticeDirection(np.array([1.0,1.0,1.0])) |
Definition at line 56 of file example.py.
| example.negativeR = Rotation.from_rotvec(-half_rotvec).as_matrix() |
Definition at line 71 of file example.py.
| example.positiveR = Rotation.from_rotvec(half_rotvec).as_matrix() |
Definition at line 70 of file example.py.
| example.rlv1 = gb.ReciprocalLatticeVector3D(np.array([1,5,6],dtype=np.int64),lattice) |
Definition at line 38 of file example.py.
| example.rlv2 = gb.ReciprocalLatticeVector3D(np.array([2.,2.,4.],dtype=np.float64),lattice) |
Definition at line 39 of file example.py.
| example.rot = Rotation.from_matrix(rotation) |
Definition at line 61 of file example.py.
| example.rotations = lattice.generateCoincidentLattices(misorientationAxis) |
Definition at line 58 of file example.py.