Author Topic: Exceptions.NLNotImplementedError  (Read 2516 times)

0 Members and 1 Guest are viewing this topic.

Offline Dipankar Saha

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 516
  • Country: in
  • Reputation: 5
    • View Profile
Exceptions.NLNotImplementedError
« on: January 17, 2017, 11:51 »

Hi,

What does the following error message mean?

File "./build/lib/python2.7/site-packages/tremolox/TremoloXPotentialSet.py", line 11785, in setTags
  File "./build/lib/python2.7/site-packages/tremolox/TremoloXPotentialSet.py", line 5953, in _getTaggedVersions
NL.ComputerScienceUtilities.Exceptions.NLNotImplementedError: Using EAM with tags is not implemented yet

Best_
Dipankar

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5410
  • Country: dk
  • Reputation: 89
    • View Profile
    • QuantumATK at Synopsys
Re: Exceptions.NLNotImplementedError
« Reply #1 on: January 17, 2017, 12:59 »
It means what the error message says

Offline Dipankar Saha

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 516
  • Country: in
  • Reputation: 5
    • View Profile
Re: Exceptions.NLNotImplementedError
« Reply #2 on: January 17, 2017, 16:52 »
If I have to combine diff. potentials... and of-course one of those is for "Au" .... which one should I opt for?

Previously I was trying with_
eam_layer1 = EAM_Au_Sheng_2011(tags='layer1')

Offline Dipankar Saha

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 516
  • Country: in
  • Reputation: 5
    • View Profile
Re: Exceptions.NLNotImplementedError
« Reply #3 on: January 17, 2017, 17:06 »
Say if I change it to_

eam_layer1 = Tersoff_Au_2012(tags='layer1')

then, I find a run time error!!

File "./zipdir/NL/CommonConcepts/Configurations/AtomicConfiguration.py", line 1072, in update
  File "./build/lib/python2.7/site-packages/tremolox/TremoloBaseCalculator.py", line 216, in _update
  File "./build/lib/python2.7/site-packages/tremolox/TremoloBaseCalculator.py", line 712, in _configure_tremolo_model
  File "./build/lib/python2.7/site-packages/tremolox/TremoloXPotentialSet.py", line 11484, in _register
RuntimeError: Particle Au is not defined in the potential!

Offline Julian Schneider

  • QuantumATK Staff
  • QuantumATK Guru
  • *****
  • Posts: 163
  • Country: dk
  • Reputation: 25
    • View Profile
Re: Exceptions.NLNotImplementedError
« Reply #4 on: January 17, 2017, 21:08 »
If you use the tags-parameter in the potential, the potential acts only on the tagged atoms, not on the gold atoms, which do not belong to this tagged group. Without having seen your script, I suppose in your case not all atoms belong to the tagged group 'layer1' and that means that there is no potential defined for the rest of the system. This is what the error message means. To fix it define another Tersoff potential for the remaining part of the system (assuming this part has the tag 'layer2'):
Code
eam_layer1 = Tersoff_Au_2012(tags='layer1')
eam_layer2= Tersoff_Au_2012(tags='layer2')
calculator = TremoloXCalculator(parameters=[eam_layer1, eam_layer2])
If this does not solve your error, please post the script that you want to run. Support for EAM-potentials and tags is something that we plan to add hopefully soon.

Offline Dipankar Saha

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 516
  • Country: in
  • Reputation: 5
    • View Profile
Re: Exceptions.NLNotImplementedError
« Reply #5 on: January 19, 2017, 06:46 »
Julian Schneider,

I have sent you the script....