QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: Dipankar Saha on January 17, 2017, 11:51

Title: Exceptions.NLNotImplementedError
Post by: Dipankar Saha 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
Title: Re: Exceptions.NLNotImplementedError
Post by: Anders Blom on January 17, 2017, 12:59
It means what the error message says
Title: Re: Exceptions.NLNotImplementedError
Post by: Dipankar Saha 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')
Title: Re: Exceptions.NLNotImplementedError
Post by: Dipankar Saha 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!
Title: Re: Exceptions.NLNotImplementedError
Post by: Julian Schneider 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.
Title: Re: Exceptions.NLNotImplementedError
Post by: Dipankar Saha on January 19, 2017, 06:46
Julian Schneider,

I have sent you the script....