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

Intended Behaviour for Generation of lattice with multiple basis vectors not clear #1

Open
koshMer opened this issue Feb 11, 2025 · 0 comments
Assignees

Comments

@koshMer
Copy link
Collaborator

koshMer commented Feb 11, 2025

When creating a lattice with multiple basis vectors, correct usage is not clear.

Example:

nx = 1
ny = 1
grid_res = 50e-9

n_bands = 4
finite_lattice_use_pbc = False

r_pillar = 2e-6 / 2 + delta_r
a = 2*r_pillar *(1.15+0.8) # [m]

a1 = a * np.array([1, 0])
a2 = a * np.array([0, 1])

b1 = np.array([0,0])*1.15*r_pillar*2
b2 = np.array([1,0])*1.15*r_pillar*2
b3 = np.array([0, 1])*1.15*r_pillar*2
b4 = np.array([1,1])*1.15*r_pillar*2
bs = np.array([b1,b2,b3,b4])
bs2 = np.array([b1,b1,b1,b1])
lp = Lattice_Potential(a1, a2, nx * a, ny * a, grid_res, -1.52*e, -23*1e-3*e, [[circle, 0, 0, r_pillar] for b in bs], bs, finite_lattice_use_pbc=finite_lattice_use_pbc)

produces not the intended result, while changing to:

lp = Lattice_Potential(a1, a2, nx * a, ny * a, grid_res,  -1.52*e, -23*1e-3*e, [[circle, b[0], b[1], r_pillar] for b in bs], bs2, finite_lattice_use_pbc=finite_lattice_use_pbc)

does.

Imo either should work

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

No branches or pull requests

2 participants