Author Topic: Restarting a IETS run  (Read 1531 times)

0 Members and 1 Guest are viewing this topic.

Offline Sabyasachi Sen

  • Heavy QuantumATK user
  • ***
  • Posts: 52
  • Country: in
  • Reputation: 0
    • View Profile
Restarting a IETS run
« on: August 6, 2016, 11:11 »
Dear Sir

Let me know the command for restarting a IETS job. In our machine similar programme has been running for few days, .nc file was developed but job terminated afterwords due to power failure. Now, please suggest, how to restart the job from the said .nc file, which already keeps dynamical matrix,  vibrational modes and only the transmission job is left with.

Kindly reply,

Sabyasachi Sen

Offline Jess Wellendorff

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 933
  • Country: dk
  • Reputation: 29
    • View Profile
Re: Restarting a IETS run
« Reply #1 on: August 15, 2016, 14:35 »
Sounds like the simplest approach would be to create a new version of you script which reads in the precalculated dynamical matrix and hamiltonian derivateves, and then computes the IETS:
Code
# Load device configuration
device_configuration = nlread('filename.nc', DeviceConfiguration)[-1]

# Load dynamical matrix
dynamical_matrix = nlread('filename.nc', DynamicalMatrix)[-1]

# Load hamiltonian derivatives
hamiltonian_derivatives = nlread('filename.nc', HamiltonianDerivatives)[-1]

# -------------------------------------------------------------
# Inelastic transmission spectrum
# -------------------------------------------------------------
inelastic_transmission_spectrum = InelasticTransmissionSpectrum(
    configuration=device_configuration,
    dynamical_matrix=dynamical_matrix,
    hamiltonian_derivatives=hamiltonian_derivatives,
    ...
    )