This turns out to be a bug in the beta-version. It can be solved by adding
import sys, os
sys.path.append(os.curdir)
to the beginning of graphene.py.
Dear, Anders Blom
Is it possible to calculate the Density of States (DOS) with DFT-D2 (PBE-vdW)? How about I-V calculation with DFT-D2?
I tried but the DOS is the same to the results of the DFT (PBE) functional. (The geometry optimization work fine!!)
Here is the part of my input file (Exchange-Correlation and DOS part)
#----------------------------------------
# Exchange-Correlation
#----------------------------------------
exchange_correlation = GGA.PBE
numerical_accuracy_parameters = NumericalAccuracyParameters(
k_point_sampling=(40, 1, 2),
)
DFTD2LCAO = extendedCalculatorWithDFTD2(LCAOCalculator)
calculator = DFTD2LCAO(
basis_set=basis_set,
exchange_correlation=exchange_correlation,
numerical_accuracy_parameters=numerical_accuracy_parameters,
)
bulk_configuration.setCalculator(calculator)
nlprint(bulk_configuration)
bulk_configuration.update()
nlsave('analysis.nc', bulk_configuration)
# -------------------------------------------------------------
# Density of states
# -------------------------------------------------------------
density_of_states = DensityOfStates(
configuration=bulk_configuration,
kpoints=MonkhorstPackGrid(40,4,1),
energy_zero_parameter=FermiLevel,
bands_above_fermi_level=None,
)
nlsave('analysis.nc', density_of_states)
nlprint(density_of_states)