seminar:jacapo_man
文書の過去の版を表示しています。
Jacapoマニュアル
Python interface to the Fortran DACAPO code
コンストラクタ
__init__(self, nc='out.nc', outnc=None, deletenc=False, debug=30, stay_alive=False, **kwargs) Initialize the Jacapo calculator
Parameters
| nc | string | output netcdf file, or input file if nc already exists |
|---|---|---|
| outnc | string | output file. by default equal to nc |
| deletenc | Boolean | determines whether the ncfile is deleted on initialization so a fresh run occurs. If True, the ncfile is deleted if it exists. |
| debug | integer | logging debug level.1) |
| stay_alive | Boolean | |
| kwargs | dictionary | various keywords |
Valid kwargs
| atoms | ASE.Atoms instance | atoms is an ase.Atoms object that will be attached to this calculator. |
| pw | integer | sets planewave cutoff |
| dw | integer | sets density cutoff |
| kpts | iterable | set chadi-cohen, monkhorst-pack kpt grid, e.g. kpts = (2,2,1) or explicit list of kpts |
| spinpol | Boolean | sets whether spin-polarization is used or not. |
| fixmagmom | float | |
| ft | float | set the Fermi temperature used in occupation smearing |
| xc | string | |
| dipole | boolean | turn the dipole correction on (True) or off (False) |
| dictionary | of parameters to fine-tune behavior {'status': False, 'mixpar': 0.2, 'initval': 0.0, 'adddipfield': 0.0, 'position': None} | |
| nbands | integer | set the number of bands |
| symmetry | Boolean | Turn symmetry reduction on (True) or off (False) |
| stress | Boolean | Turn stress calculation on (True) or off (False) |
クラスメソッド
| read_atoms(filename) | 既に存在しているnetcdfファイルからAtomsクラスとCalculatorクラスの情報を読み込む |
|---|
Parameters
| filename | 文字列 | 読み込むべきファイル名 |
example
atoms = Jacapo.read_atoms(ncfile) calc = atoms.get_calculator()
先輩の作ったncファイルを見つけたら読み込んでみよ。もしかしたら幸せになれるかもしれない。
Functions
read(ncfile) : return atoms and calculator from ncfile
使用例
atoms, calc = read('co.nc')
1)
debug level for logging could be something like logging.DEBUG or an integer 0-50. The higher the integer, the less information you see set debug level (0 = off, 10 = extreme
seminar/jacapo_man.1558427331.txt.gz · 最終更新: (外部編集)