ase:atoms
差分
このページの2つのバージョン間の差分を表示します。
| 次のリビジョン | 前のリビジョン | ||
| ase:atoms [2019/05/21 19:05] – 作成 kimi | ase:atoms [2022/08/23 13:34] (現在) – 外部編集 127.0.0.1 | ||
|---|---|---|---|
| 行 9: | 行 9: | ||
| ===== コンストラクタ ===== | ===== コンストラクタ ===== | ||
| + | ASE.Atoms instance atoms is an ase.Atoms object that will be attached to this calculator. | ||
| <code python> | <code python> | ||
| atoms = Atoms([Atom(' | atoms = Atoms([Atom(' | ||
| jacapo = Jacapo(atoms = atoms) | jacapo = Jacapo(atoms = atoms) | ||
| </ | </ | ||
| - | atoms get_atoms(self) set_atoms(self, | + | |
| - | ===== get_nc | + | ===== get_atoms |
| - | return the ncfile used for output | + | return the atoms attached to a calculator() |
| <code python> | <code python> | ||
| - | jacapo = Jacapo(nc = ' | + | atoms = Atoms([Atom(' |
| - | print jacapo.get_nc() | + | jacapo = Jacapo(atoms = atoms) |
| + | jacapo.get_atoms() | ||
| </ | </ | ||
| - | ===== set_nc | + | ===== set_atoms |
| - | set filename for the netcdf | + | attach an atoms to the calculator |
| <code python> | <code python> | ||
| + | atoms = Atoms([Atom(' | ||
| jacapo = Jacapo() | jacapo = Jacapo() | ||
| - | jacapo.set_nc(nc = ' | + | jacapo.set_atoms(atoms) |
| </ | </ | ||
| + | |||
| ==== Parameters ==== | ==== Parameters ==== | ||
| - | |nc | string | + | | atoms | ASE.Atoms instance |
| - | + | ||
| - | if the ncfile attached to the calculator is changing, the old | + | |
| - | file will be copied to the new file if it doesn not exist so | + | |
| - | that all the calculator details are preserved. Otherwise, the | + | |
| - | + | ||
| - | if the ncfile does not exist, it will get initialized. | + | |
| - | + | ||
| - | the text file will have the same basename as the ncfile, but | + | |
| - | with a .txt extension. | + | |
ase/atoms.1558433101.txt.gz · 最終更新: (外部編集)