I have run this script
m = nlread("pldos-Sn4S8-1e19-n-Vds0.64V-Vg-1.0V.hdf5", MullikenPopulation)[0]
print(m.atomicCharge().sum())
Then, there appeared an error message as IndexError: list index out of range.
The script for calculating MullikenPopulation is as follows:
# -*- coding: utf-8 -*-
# -------------------------------------------------------------
# Analysis from File
# -------------------------------------------------------------
filename = u'pldos-Sn4S8-1e19-n-Vds0.64V-Vg-1.0V.hdf5'
iv_characteristics = IVCharacteristics(
configuration=nlread(filename, object_id='DeviceConfiguration_0')[
filename=filename,
object_id='iv-Sn4S8-1e19-n',
gate_regions=[0, 1],
gate_source_voltages= -1.0 * Volt,
drain_source_voltages= 0.64 * Volt,
log_filename_prefix=LogToStdOut,
number_of_processes_per_task=12,
)
iv_characteristics.addAnalysis(
-1.0 * Volt, 0.64 * Volt, MullikenPopulation)
iv_characteristics.addProjectedLocalDensityOfStates(
-1.0 *Volt, 0.64 * Volt)
iv_characteristics.update()
How can I modify the script?
The attached view of MullikenPopulation indicates the .hdf5 does contain the MullikenPopulation data.