elaston.orientation module
- elaston.orientation.get_dislocation_orientation(dislocation_type: str = 'screw', crystal: str = 'bcc') dict[str, ndarray][source]
Get the orientation of a dislocation in a crystal.
- Parameters:
dislocation_type (str) – Type of dislocation. “screw” or “edge”.
crystal (str) – Crystal structure. “bcc” or “fcc”.
- Returns:
- Dictionary containing the following keys:
glide_plane (np.ndarray): Glide plane normal.
burgers_vector (np.ndarray): Burgers vector.
dislocation_line (np.ndarray): Dislocation line.
- orientation (np.ndarray): Dislocation orientation matrix; First
row is the glide plane, and the last row is the dislocation line.
- Return type:
dict
- elaston.orientation.get_shockley_partials(burgers_vector: ndarray = array([1, -1, 0]), glide_plane: ndarray = array([1, 1, 1])) tuple[ndarray, ndarray][source]
Get the Shockley partials for a dislocation in fcc materials.
- Parameters:
burgers_vector ((3,)-np.ndarray) – Burgers vector.
glide_plane ((3,)-np.ndarray) – Glide plane normal.
- Returns:
Shockley partials.
- Return type:
(np.ndarray, np.ndarray)