表面吸附

数据库:

reader = csv.reader(open('catappdata.csv')) next(reader) # skip header with ase.db.connect('catapp.db', append=False) as con: for er, ea, surface, ab, a, b, ref, url, dataset in reader: if surface.startswith('HH- '): surf = surface[4:] else: surf = surface keys = {} words = surf.split() if len(words) == 2: surf, keys['site'] = words else: surf, = words symbols, facet = surf.split('(') facet = '(' + facet symbols = symbols.replace('-', '') atoms = Atoms(symbols, pbc=(True, True, False)) a, b, ab = (x if x[:2] != 'hf' else x[2:] + '/2' for x in [a, b, ab]) for xc in ['RPBE', 'PW91', 'BEEF']: if xc in dataset: break else: xc = '???' if ea: keys['ea'] = float(ea) con.write(atoms, a=a, b=b, ab=ab, er=float(er), surface=surface, facet=facet, xc=xc, ref=ref, url=url, dataset=dataset, **keys)


  ![image-20191207111311292](..\vasp-tut-fig\image-20191207111311292.png)

  Methane example:

  Here we look at the correlation between the activation and reaction energy for this reaction:

  $\ce{H*+CH3*->CH4}$

  ```python
  import matplotlib.pyplot as plt
  import ase.db

  con = ase.db.connect('catapp.db')
  x = []
  y = []
  for row in con.select(a='H*', b='CH3*'):
      x.append(row.er)
      y.append(row.ea)

  plt.plot(x, y, 'o', label='H*+CH3*->CH4')
  plt.legend()
  plt.xlabel('reaction energy [eV]')
  plt.ylabel('activation energy [eV]')
  plt.savefig('ch4.svg')

img

d band center theory:

results matching ""

    No results matching ""