seminar:graphene
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン次のリビジョン両方とも次のリビジョン | ||
seminar:graphene [2019/12/03 15:37] – [計算の実行] kimi | seminar:graphene [2019/12/05 09:05] – [計算の実行] kimi | ||
---|---|---|---|
行 1: | 行 1: | ||
====== 総合演習 ====== | ====== 総合演習 ====== | ||
- | グラフェンを例に、より詳しい計算の演習を行おう。 | + | グラフェンを例に、より詳しい計算の演習を行う。 |
- | ===== 計算の実行 | + | |
+ | ===== 計算の前に ===== | ||
+ | |||
+ | |||
+ | {{ : | ||
+ | ===== プログラムの概要 | ||
<code python> | <code python> | ||
a0 = 2.461 # Lattice constant of Graphene | a0 = 2.461 # Lattice constant of Graphene | ||
行 10: | 行 15: | ||
c3 = (0.0, 0.0, a0*8.0) | c3 = (0.0, 0.0, a0*8.0) | ||
- | unit_cell | + | from ase import Atom |
+ | atom1 = Atom(' | ||
+ | atom2 = Atom(' | ||
- | # --------------------------- | ||
- | # Common part of calculations | ||
- | # --------------------------- | ||
from ase import Atoms | from ase import Atoms | ||
- | box1 = Atoms(list_of_atoms, pbc = True) | + | box1 = Atoms([atom1, atom2], pbc = True) |
- | box1.set_cell(unit_cell, scale_atoms = True) | + | box1.set_cell([c1, c2, c3], scale_atoms = True) |
from ase.calculators.jacapo import Jacapo | from ase.calculators.jacapo import Jacapo | ||
- | solver1 = Jacapo(**kwargs) | + | solver1 = Jacapo(nbands = 8, kpts = (2, 2, 1), pw = 150, dw = 150) |
box1.set_calculator(solver1) | box1.set_calculator(solver1) | ||
solver1.calculate() | solver1.calculate() |
seminar/graphene.txt · 最終更新: 2022/08/23 13:34 by 127.0.0.1