Author Topic: Error in running the program  (Read 3818 times)

0 Members and 1 Guest are viewing this topic.

Offline Ambika kumari

  • Heavy QuantumATK user
  • ***
  • Posts: 32
  • Country: in
  • Reputation: 0
    • View Profile
Error in running the program
« on: May 17, 2022, 13:58 »
 I have attached script below. I am not able to calculate transmission spectrum . kindly help me
« Last Edit: May 17, 2022, 14:32 by Ambika kumari »

Offline filipr

  • QuantumATK Staff
  • Heavy QuantumATK user
  • *****
  • Posts: 81
  • Country: dk
  • Reputation: 6
  • QuantumATK developer
    • View Profile
Re: Error in running the program
« Reply #1 on: May 17, 2022, 14:32 »
Alright, if you open the script in a text editor you can clearly see the lattice vectors are not completely perpendicular:
Code
vector_a = [15.0, -0.00900547, 0.00431798]*Angstrom
vector_b = [-0.0186507, 25.0, -0.0119156]*Angstrom
vector_c = [0.0222371, -0.0296296, 65.0]*Angstrom
I don't know how you generated the structure, but if you built it from a structure obtained after a relaxation or from someone else, or made "by hand", it is easy to introduce tiny numerical errors. You can either start from a "pure" structure that is mathematically defined or use the lattice/unit cell tools in the builder to ensure that the lattice vectors are exactly perpendicular. For now we can fix this by changing the lattice vectors in the script to:
Code
vector_a = [15.0, 0.0, 0.0]*Angstrom
vector_b = [0.0, 25.0, 0.0]*Angstrom
vector_c = [0.0, 0.0, 65.0]*Angstrom

Offline Ambika kumari

  • Heavy QuantumATK user
  • ***
  • Posts: 32
  • Country: in
  • Reputation: 0
    • View Profile
Re: Error in running the program
« Reply #2 on: May 17, 2022, 14:38 »
Thanks a lot. I am going to correct it.