from ATK.TwoProbe import *
# Look for the eigenvector at the Fermi level
energy = 0.0*Units.eV
# Restore the SCF calculation
scf = restoreSelfConsistentCalculation('allmag.nc')
scf._attributeContainer().getAttributeContainer('SetupAttributes').setDouble(80.,'MeshCutoff')
# Define output on VNL file
results = VNLFile('allmag.vnl')
# Calculate the transmission eigenstates
index_list =
kpoint_list = [(0.0,0.0)]
for index in index_list:
transmission_eigenstate = calculateTransmissionEigenstates(
scf,
energy,
quantum_numbers=(index,kpoint_list, Spin.Up)
)
results.addToSample(transmission_eigenstate[0],"allmag")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When I use the vnl to read the generated allmag.vnl, the following error appears:
An internal error occured
exceptions. MemoryError:
can't allocate memory for array
By the way, I find the previous topic about this
http://quantumwise.com/forum/index.php?topic=131.msg792#msg792And I add the "scf._attributeContainer().getAttributeContainer('SetupAttributes').setDouble(80.,'MeshCutoff')" in the above script.
Anyone can give some hints?
Or my script has some errors?