SST Lab Dokuwiki Header header picture

ユーザ用ツール

サイト用ツール


ase:atoms

差分

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

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
ase:atoms [2019/05/21 19:05] – [コンストラクタ] kimiase:atoms [2022/08/23 13:34] (現在) – 外部編集 127.0.0.1
行 14: 行 14:
 jacapo = Jacapo(atoms = atoms) jacapo = Jacapo(atoms = atoms)
 </code> </code>
-atoms get_atoms(self) set_atoms(self, atoms) + 
-===== get_nc ===== +===== get_atoms ===== 
-return the ncfile used for output+return the atoms attached to a calculator()
 <code python> <code python>
-jacapo = Jacapo(nc 'out.nc'+atoms = Atoms([Atom('H')]) 
-print jacapo.get_nc()+jacapo = Jacapo(atoms atoms
 +jacapo.get_atoms()
 </code> </code>
  
-===== set_nc ===== +===== set_atoms ===== 
-set filename for the netcdf and text output for this calculation+attach an atoms to the calculator and update the ncfile
 <code python> <code python>
 +atoms = Atoms([Atom('H')])
 jacapo = Jacapo() jacapo = Jacapo()
-jacapo.set_nc(nc = 'out.nc')+jacapo.set_atoms(atoms)
 </code> </code>
 +
 ==== Parameters ==== ==== Parameters ====
-|nc string filename for netcdf file +atoms ASE.Atoms instance   計算対象のAtomsクラスインスタンス   
-  +
-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.1558433153.txt.gz · 最終更新: 2022/08/23 13:34 (外部編集)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki