Calculate the frequency-dependent optical dielectric function ε(ω) of a material in the independent-particle approximation in Quantum ESPRESSO, with or without a relaxation first.
In JupyterLite, the notebook is made/workflows/dielectric_tensor.ipynb, entry 8.2.1 "Dielectric tensor calculation" of made/workflows/Introduction.ipynb.
fromdatetimeimportdatetimefrommat3ra.ide.computeimportQueueName# 2. Auth and organization parametersORGANIZATION_NAME=None# 3. Material parametersFOLDER="../uploads"MATERIAL_NAME="Silicon"# small primitive cell (FCC, mp-149); NC pseudopotential available# 4. Workflow parametersWORKFLOW_SEARCH_TERM="dielectric_tensor.json"APPLICATION_NAME="espresso"MY_WORKFLOW_NAME="Dielectric Function"# Model parametersMODEL_SUBTYPE="gga"# "gga" or "lda"# 5. Compute parametersCLUSTER_NAME=None# specify full or partial name i.e. "cluster-001" to selectQUEUE_NAME=QueueName.DPPN=1# 6. Job parameterstimestamp=datetime.now().strftime("%Y-%m-%d %H:%M")POLL_INTERVAL=30# seconds
# Method parameters# NOTE: epsilon.x (used to compute the dielectric function) does NOT support# ultrasoft or PAW pseudopotentials -- norm-conserving ("nc") is required.PSEUDOPOTENTIAL_TYPE="nc"# "nc" (norm-conserving) -- required; "us"/"paw" will failFUNCTIONAL="pbe"# for gga: "pbe", "pbesol"; for lda: "pz"# Relax the structure before computing the dielectric response. Recommended for# any material not already at its equilibrium geometry (e.g. Graphene / 2D).ADD_RELAXATION=False# Electronic k-grids; if None, the workflow default is usedRELAXATION_KGRID=None# e.g. [8, 8, 8] (used only when ADD_RELAXATION)SCF_KGRID=None# e.g. [8, 8, 8] (3D) or [12, 12, 1] (2D)# The NSCF step recomputes the full (non-symmetry-reduced) k-mesh that epsilon.x# integrates over; for a converged dielectric function it should be at least as# dense as, and typically denser than, the SCF grid (e.g. [16, 16, 16]).NSCF_KGRID=None# e.g. [16, 16, 16] (3D) or [24, 24, 1] (2D)# Energy cutoffs (raise for harder cases -- e.g. 60 / 480 for Graphene)ECUTWFC=40ECUTRHO=200# epsilon.x energy grid (all values in eV)ENERGY_GRID_MIN=0.0# wminENERGY_GRID_MAX=15.0# wmaxENERGY_GRID_POINTS=500# nwINTERSMEAR=0.2# Lorentzian broadening between bands (eV)INTRASMEAR=0.0# Drude-like intraband broadening (eV); set > 0 for metalsENERGY_GRID_SHIFT=0.0# rigid shift of the energy grid (eV)
PSEUDOPOTENTIAL_TYPE has to be "nc", since epsilon.x does not support ultrasoft or projector augmented wave pseudopotentials. NSCF_KGRID is the grid epsilon.x integrates over; the comment recommends one at least as dense as SCF_KGRID. ENERGY_GRID_MIN, ENERGY_GRID_MAX and ENERGY_GRID_POINTS set the energy grid of ε(ω) in eV, INTERSMEAR the broadening between bands, INTRASMEAR the intraband broadening, set above zero for metals, and ENERGY_GRID_SHIFT a rigid shift of the grid.