QuantumWise Forum
May 23, 2013, 05:28 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: A question about NEB in ATK 2008.10  (Read 458 times)
0 Members and 1 Guest are viewing this topic.
fangyongxinxi
Heavy ATK user
***

Reputation: 0
Offline Offline

Posts: 99



View Profile
« on: June 1, 2011, 04:52 »

I want to do ENB calculation by ATK 2008.10, and I make a py file ( copy the format of c2h6 example in ATK 2008.10 ), the structure is periodic . When I run this script, it shows:

NLPolicyError: This instance of KohnSham Method can only be apply to a MoleculeConfiguration
Terminated Abnormally

so, could you give example scripts about how to do NEB with the structures of periodic structure and two-probes structure.

Thanks.


my scripts:
from ATK.KohnSham import *


super_cell = [[4, 0, 0],
              [0, 4, 0],
              [0, 0, 4]]*Angstrom

elements = [Hydrogen, Hydrogen, Hydrogen]
coordinates = [[ 0.        ,  0.        ,  0.        ],
               [ 0.        ,  0.        ,  0.80000001],
               [ 0.        ,  1.20000005,  0.        ]]*Angstrom

rt_params = runtimeParameters(verbosity_level = 2)
mesh = electronDensityParameters(mesh_cutoff = 20*Rydberg)
basis = basisSetParameters (type = SingleZetaPolarized)   
dft_method = KohnShamMethod(
    basis_set_parameters = basis,
    electron_density_parameters = mesh
    )

# Import NEB routines
from NLExamples import NEB
from NLExamples import KohnShamSimulation
from NLExamples import MDMin

# Collect simulations
simulations = []
for n in range(20):
    # each configuration must be a unique class instance,
    # so it is neccesary to include the following lines:
    mol = PeriodicAtomConfiguration(
      super_cell,
      elements,
      cartesian_coordinates=coordinates
      )
    sim = KohnShamSimulation(mol,dft_method,rt_params)
    simulations.append(sim)

# Define elements and unit cell coordinates
elements = [Hydrogen, Hydrogen, Hydrogen]
coordinates = [[ 0.        ,  0.        ,  0.        ],
               [ 0.        ,  0.        ,  1.20000005],
               [ 0.        ,  0.8,  0.        ]]*Angstrom    # here we change the coordinate os the atoms in the box h2-h3

# Add the final configuration to simulations
mol = PeriodicAtomConfiguration(
      super_cell,
      elements,
      cartesian_coordinates=coordinates
      )
sim = KohnShamSimulation(mol,dft_method,rt_params)
simulations.append(sim)

# Setup the NEB simulation
neb = NEB(simulations,linearpath=True,prefix='H3')

# Setup and run MD simulation for NEB
dyn = MDMin(neb,dt=0.05,prefix='H3')
dyn.run(20)
Logged
Anders Blom
QuantumWise Staff
Supreme ATK Wizard
*****

Reputation: 36
Offline Offline

Denmark Denmark

Posts: 2813



View Profile WWW
« Reply #1 on: June 1, 2011, 08:25 »

It's necessary to set the k-point sampling on the KohnShamMethod, if you want to use it for periodic systems. Use an example for a KohnShamMethod for a normal bulk system (not for NEB) made with the Script Generator as a template, then you will see how to introduce it.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!