Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/SOF-7282 feat: add interface between twisted materials #162

Merged
merged 39 commits into from
Sep 20, 2024

Conversation

VsevolodX
Copy link
Member

TwsitedInterfaceConfiguration
TwsitedInterfaceBuilder

  • hexagonal or rectangular final cell

@VsevolodX VsevolodX changed the base branch from main to feature/SOF-7427 September 8, 2024 21:42
@@ -557,3 +557,26 @@ def calculate_on_xy_grid(
results_matrix[i, j] = result

return x_values, y_values, results_matrix


def calculate_moire_periodicity(lattice_a: float, lattice_b: float, twist_angle: float) -> Tuple[float, float]:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should go to Lattice

@@ -557,3 +557,26 @@ def calculate_on_xy_grid(
results_matrix[i, j] = result

return x_values, y_values, results_matrix


def calculate_moire_periodicity(lattice_a: float, lattice_b: float, twist_angle: float) -> Tuple[float, float]:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

########################################################################################
# Twisted Interface Builders #
########################################################################################

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove newlines

for m in range(max_size + 1):
for p in range(1, max_size + 1):
for q in range(max_size + 1):
angle = np.degrees(np.arctan2(n * q - m * p, n * p + m * q))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should take into account the lattice

ribbon_length (int): Length of the nanoribbon in unit cells.
distance_z (float): Vertical distance between layers in Angstroms.
vacuum_x (int): Vacuum padding in x direction in unit cells.
vacuum_y (int): Vacuum padding in y direction in unit cells.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vacuum padding should be calculated based on the shape of the resulting material

Base automatically changed from feature/SOF-7427 to main September 19, 2024 02:52
@VsevolodX VsevolodX merged commit 0b9f558 into main Sep 20, 2024
9 checks passed
@VsevolodX VsevolodX deleted the feature/SOF-7282 branch September 20, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants