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
When creating a lattice with multiple basis vectors, correct usage is not clear.
Example:
produces not the intended result, while changing to:
does.
Imo either should work