3 from numpy
import newaxis
as nx
7 from scipy
.constants
import c
, e
as eV
, hbar
12 parser
= argparse
.ArgumentParser()
13 parser
.add_argument("omega")
14 #parser.add_argument("maxlayer")
15 args
= parser
.parse_args()
16 omega_eV
= float(args
.omega
)
24 my
, ny
= qpms
.get_mn_y(lMax
)
27 omega
= omega_eV
* eV
/ hbar
29 k_0
= omega
* math
.sqrt(epsilon_b
) / c
31 output_prefix
= '/tmp/diracpoints-newdata2/%d/' % maxlayer
33 os
.makedirs(output_prefix
, exist_ok
=True)
34 qpms
.hexlattice_precalc_AB_save(file=output_prefix
+str(omega_eV
), lMax
=lMax
, k_hexside
=k_0
*hexside
,
35 maxlayer
=maxlayer
, savepointinfo
=True)