oILAB
Loading...
Searching...
No Matches
example.py File Reference

Go to the source code of this file.

Namespaces

namespace  example
 

Functions

 example.create (source, frame)
 

Variables

 example.A
 
 example.lattice = gb.Lattice3D(A)
 
 example.lv1 = lattice.latticeVector(np.array([1.0,2.0,2.0]))
 
 example.cartesianCoordinates = lv1.cartesian()
 
 example.lv2 = gb.LatticeVector3D(lv1.cartesian(),lattice)
 
int example.lv3 = 4*(lv1+lv2)
 
 example.rlv1 = gb.ReciprocalLatticeVector3D(np.array([1,5,6],dtype=np.int64),lattice)
 
 example.rlv2 = gb.ReciprocalLatticeVector3D(np.array([2.,2.,4.],dtype=np.float64),lattice)
 
 example.ld = rlv1.cross(rlv2)
 
 example.bv1 = gb.LatticeVector3D(np.array([1,-1,0]),lattice)
 
 example.bv2 = gb.LatticeVector3D(np.array([1,1,-2]),lattice)
 
 example.bv3 = gb.LatticeVector3D(np.array([1,1,1]),lattice)
 
 example.config = lattice.box([bv1,bv2,bv3],"config.txt")
 
 example.misorientationAxis = lattice.reciprocalLatticeDirection(np.array([1.0,1.0,1.0]))
 
 example.rotations = lattice.generateCoincidentLattices(misorientationAxis)
 
 example.rot = Rotation.from_matrix(rotation)
 
int example.angle = rot.magnitude() / 2
 
 example.axis = rot.as_rotvec()
 
int example.half_rotvec = axis / np.linalg.norm(axis) * angle
 
 example.positiveR = Rotation.from_rotvec(half_rotvec).as_matrix()
 
 example.negativeR = Rotation.from_rotvec(-half_rotvec).as_matrix()
 
 example.lattice1 = gb.Lattice3D(A,positiveR)
 
 example.lattice2 = gb.Lattice3D(A,negativeR)
 
 example.bicrystal = gb.BiCrystal3D(lattice1,lattice2,False)
 
 example.csl = bicrystal.csl
 
 example.bcslv1 = csl.latticeDirection(misorientationAxis.cartesian()).latticeVector()
 
 example.bcslv2 = csl.latticeDirection(bcslv1.cross()).cartesian()).latticeVector()
 
 example.bcslv3 = csl.latticeDirection(bcslv1.cross(bcslv2).cartesian()).latticeVector()