seminar:jacapo_man
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン次のリビジョン両方とも次のリビジョン | ||
seminar:jacapo_man [2019/05/21 17:32] – [Valid kwargs] kimi | seminar:jacapo_man [2019/05/21 18:41] – [コンストラクタ] kimi | ||
---|---|---|---|
行 1: | 行 1: | ||
====== Jacapoマニュアル ====== | ====== Jacapoマニュアル ====== | ||
Python interface to the Fortran DACAPO code | Python interface to the Fortran DACAPO code | ||
+ | |||
+ | * コンストラクタ | ||
+ | * クラスメソッド | ||
+ | * | ||
+ | * 関数 | ||
+ | * read | ||
===== コンストラクタ ===== | ===== コンストラクタ ===== | ||
+ | Initialize the Jacapo calculator | ||
<code python> | <code python> | ||
- | __init__(self, | + | __init__(self, |
- | Initialize the Jacapo calculator | + | debug = 30, stay_alive = False, **kwargs) |
</ | </ | ||
行 29: | 行 36: | ||
| fixmagmom | float | set the magnetic moment of the unit cell. only used in spin polarize calculations | | fixmagmom | float | set the magnetic moment of the unit cell. only used in spin polarize calculations | ||
| ft | float | set the Fermi temperature used in occupation smearing | | | ft | float | set the Fermi temperature used in occupation smearing | | ||
- | | xc | string | set the exchange-correlation functional. one of [' | + | | xc | string | set the exchange-correlation functional. one of [' |
| dipole | boolean | turn the dipole correction on (True) or off (False) | | | dipole | boolean | turn the dipole correction on (True) or off (False) | | ||
| | dictionary | of parameters to fine-tune behavior {' | | | dictionary | of parameters to fine-tune behavior {' | ||
行 35: | 行 42: | ||
| symmetry | Boolean | Turn symmetry reduction on (True) or off (False) | | | symmetry | Boolean | Turn symmetry reduction on (True) or off (False) | | ||
| stress | Boolean | Turn stress calculation on (True) or off (False) | | | stress | Boolean | Turn stress calculation on (True) or off (False) | | ||
+ | |||
+ | ==== 使用法 ==== | ||
+ | |||
Modification of the nc file only occurs at calculate time if needed | Modification of the nc file only occurs at calculate time if needed | ||
- | >>> | + | <code python> |
- | + | calc = Jacapo(' | |
+ | </ | ||
reads the calculator from CO.nc if it exists or | reads the calculator from CO.nc if it exists or | ||
minimally initializes CO.nc with dimensions if it does not exist. | minimally initializes CO.nc with dimensions if it does not exist. | ||
- | >>> | + | <code python> |
+ | calc = Jacapo(' | ||
+ | </ | ||
reads the calculator from CO.nc or initializes it if | reads the calculator from CO.nc or initializes it if | ||
行 49: | 行 62: | ||
300eV | 300eV | ||
+ | <code python> | ||
+ | atoms = Jacapo.read_atoms(' | ||
+ | </ | ||
+ | |||
+ | returns the atoms in the netcdffile CO.nc, with the calculator | ||
+ | attached to it. | ||
+ | |||
+ | <code python> | ||
+ | atoms, calc = read(' | ||
+ | </ | ||
===== クラスメソッド ===== | ===== クラスメソッド ===== | ||
seminar/jacapo_man.txt · 最終更新: 2022/08/23 13:34 by 127.0.0.1