Author Topic: got an error in tutorial Au(111)-pentacene crystal interface  (Read 1858 times)

0 Members and 1 Guest are viewing this topic.

Offline rose

  • Heavy QuantumATK user
  • ***
  • Posts: 47
  • Country: it
  • Reputation: 0
    • View Profile
Hi everyone,

I got an error when running the tutorial " An Au(111)-pentacene crystal interface" by address:
 
http://quantumwise.com/documents/tutorials/latest/Au_Pentacene/index.html/chap.device.html

in the part "Local density of states".

When I run it everything is fine till I reach

#Find the z-spacing
dX, dY, dZ = ldos.volumeElement().inUnitsOf(Ang)
dz = dZ.norm()
shape = ldos.shape()
z = dz * numpy.arange(shape[2])

which i got following error:

<module>
    dz = dZ.norm()
AttributeError: 'numpy.ndarray' object has no attribute 'norm'

what i should i do to solve it?
thanks
Rose

Offline Jess Wellendorff

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 933
  • Country: dk
  • Reputation: 29
    • View Profile
Re: got an error in tutorial Au(111)-pentacene crystal interface
« Reply #1 on: March 23, 2016, 09:55 »
Hi Rose, thanks for reporting this. That tutorial was made quite some time ago, and we now have an analysis object that does exactly what the script is supposed to do. So plotting the PLDOS is now much easier:

Simply use the ProjectedLocalDensityOfStates (PLDOS) analysis object in your main script instead of LDOS, run the calculation, and then use the plotting plugin called "Projected Local Device Density of States" to directly plot it.

Here is an example: http://docs.quantumwise.com/tutorials/nisi2-si.html#density-of-states-dos-analysis

Offline rose

  • Heavy QuantumATK user
  • ***
  • Posts: 47
  • Country: it
  • Reputation: 0
    • View Profile
Re: got an error in tutorial Au(111)-pentacene crystal interface
« Reply #2 on: March 24, 2016, 07:23 »
Thanks...nice tutorial.