Skip to content

Commit

Permalink
Merge branch 'feature/SOF-7524' of github.com:Exabyte-io/made into fe…
Browse files Browse the repository at this point in the history
…ature/SOF-7524
  • Loading branch information
timurbazhirov committed Dec 28, 2024
2 parents 883d1ae + 7bb4473 commit 32cc9e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/py/mat3ra/made/tools/build/nanoribbon/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ def _calculate_cartesian_dimensions(config: NanoribbonConfiguration, material: M
nanoribbon_length, nanoribbon_width = nanoribbon_width, nanoribbon_length
vacuum_width, vacuum_length = vacuum_length, vacuum_width

length_cartesian = nanoribbon_length * np.dot(np.array(material.basis.cell.vector1), np.array([1, 0, 0]))
width_cartesian = nanoribbon_width * np.dot(np.array(material.basis.cell.vector2), np.array([0, 1, 0]))
height_cartesian = np.dot(np.array(material.basis.cell.vector3), np.array([0, 0, 1]))
vacuum_length_cartesian = vacuum_length * np.dot(np.array(material.basis.cell.vector1), np.array([1, 0, 0]))
vacuum_width_cartesian = vacuum_width * np.dot(np.array(material.basis.cell.vector2), np.array([0, 1, 0]))
length_cartesian = nanoribbon_length * np.dot(np.array(material.lattice.vectors[0]), np.array([1, 0, 0]))
width_cartesian = nanoribbon_width * np.dot(np.array(material.lattice.vectors[1]), np.array([0, 1, 0]))
height_cartesian = np.dot(np.array(material.lattice.vectors[2]), np.array([0, 0, 1]))
vacuum_length_cartesian = vacuum_length * np.dot(np.array(material.lattice.vectors[0]), np.array([1, 0, 0]))
vacuum_width_cartesian = vacuum_width * np.dot(np.array(material.lattice.vectors[1]), np.array([0, 1, 0]))

return length_cartesian, width_cartesian, height_cartesian, vacuum_length_cartesian, vacuum_width_cartesian

Expand Down

0 comments on commit 32cc9e1

Please sign in to comment.