SST Lab Dokuwiki Header header picture

ユーザ用ツール

サイト用ツール


seminar:jacapo_man

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
次のリビジョン両方とも次のリビジョン
seminar:jacapo_man [2019/05/21 17:33] – [Valid kwargs] kimiseminar:jacapo_man [2019/05/21 18:57] – [コンストラクタパラメータ] 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, nc='out.nc', outnc=None, deletenc=False, debug=30, stay_alive=False, **kwargs) +__init__(self, nc = 'out.nc', outnc = None, deletenc = False,  
-Initialize the Jacapo calculator+               debug = 30, stay_alive = False, **kwargs)
 </code> </code>
  
行 11: 行 18:
  
    
-^ nc | string | output netcdf file, or input file if nc already exists |+[[ase:nc|nc]] | string | output netcdf file, or input file if nc already exists |
 | outnc | string | output file. by default equal to nc | | 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. | | deletenc | Boolean | determines whether the ncfile is deleted on initialization so a fresh run occurs. If True, the ncfile is deleted if it exists. |
行 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 ['PZ', 'VWN', 'PW91', PBE', 'RPBE', 'revPBE'],+| xc | string | set the exchange-correlation functional. one of ['PZ', 'VWN', 'PW91', PBE', 'RPBE', 'revPBE'],|
 | 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 {'status': False, 'mixpar': 0.2, 'initval': 0.0, 'adddipfield': 0.0, 'position': None} | | | dictionary |  of parameters to fine-tune behavior {'status': False, 'mixpar': 0.2, 'initval': 0.0, 'adddipfield': 0.0, 'position': None} |
行 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
    
->>> calc = Jacapo('CO.nc'+<code python> 
- +calc = Jacapo('CO.nc'
 +</code> 
 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.
    
->>> calc = Jacapo('CO.nc', pw=300)+<code python> 
 +calc = Jacapo('CO.nc', pw=300) 
 +</code>
    
 reads the calculator from CO.nc or initializes it if reads the calculator from CO.nc or initializes it if
行 49: 行 62:
 300eV 300eV
  
- >>> atoms = Jacapo.read_atoms('CO.nc')+<code python> 
 +atoms = Jacapo.read_atoms('CO.nc') 
 +</code>
    
 returns the atoms in the netcdffile CO.nc, with the calculator returns the atoms in the netcdffile CO.nc, with the calculator
 attached to it. attached to it.
    
->>> atoms, calc = read('CO.nc'+<code python> 
- +atoms, calc = read('CO.nc'
 +</code>
 ===== クラスメソッド ===== ===== クラスメソッド =====
  
seminar/jacapo_man.txt · 最終更新: 2022/08/23 13:34 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki