ase:jacapo:psp
差分
このページの2つのバージョン間の差分を表示します。
| 次のリビジョン | 前のリビジョン | ||
| ase:jacapo:psp [2019/05/24 16:41] – 作成 kimi | ase:jacapo:psp [2022/08/23 13:34] (現在) – 外部編集 127.0.0.1 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== Pseudopotential related method ====== | ====== Pseudopotential related method ====== | ||
| + | ===== Pseudopotential file ===== | ||
| + | < | ||
| + | set_pseudopotentials(self, | ||
| + | </ | ||
| + | Set all the pseudopotentials from a dictionary. | ||
| + | The dictionary should have this form:: | ||
| + | |||
| + | {symbol1: path1, | ||
| + | | ||
| + | |||
| + | < | ||
| + | get_psp(self, | ||
| + | </ | ||
| + | ^argument^type^notes^ | ||
| + | |sym |string | ||
| + | |z |integer | ||
| + | |||
| + | * '' | ||
| + | * you can only specify '' | ||
| + | |||
| + | === set_psp === | ||
| + | |||
| + | < | ||
| + | set_psp(self, | ||
| + | </ | ||
| + | |||
| + | ^argument^type^notes^ | ||
| + | |sym |string | ||
| + | |z |integer | ||
| + | |psp |string | ||
| + | |||
| + | * '' | ||
| + | * you can only set '' | ||
| + | |||
| + | == examples == | ||
| + | < | ||
| + | set_psp(' | ||
| + | set_psp(z=6, | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | |||
| + | set_psp_database(self, | ||
| + | get the xc-dependent psp database | ||
| + | |||
| + | : | ||
| + | |||
| + | xc : string | ||
| + | one of ' | ||
| + | |||
| + | |||
| + | not all the databases are complete, and that means | ||
| + | some psp do not exist. | ||
| + | |||
| + | note: this function is not supported fully. only pw91 is | ||
| + | imported now. Changing the xc at this point results in loading | ||
| + | a nearly empty database, and I have not thought about how to | ||
| + | resolve that | ||
| + | </ | ||
| + | ===== Nuclear charge ===== | ||
| + | |||
| + | < | ||
| + | |||
| + | get_psp_nuclear_charge(self, | ||
| + | get the nuclear charge of the atom from teh psp-file. | ||
| + | |||
| + | This is not the same as the atomic number, nor is it | ||
| + | necessarily the negative of the number of valence electrons, | ||
| + | since a psp may be an ion. this function is needed to compute | ||
| + | centers of ion charge for the dipole moment calculation. | ||
| + | |||
| + | We read in the valence ion configuration from the psp file and | ||
| + | add up the charges in each shell. | ||
| + | </ | ||
| + | ===== Valence charge ===== | ||
| + | |||
| + | < | ||
| + | get_number_of_electrons = get_valence(self, | ||
| + | get_psp_valence(self, | ||
| + | get the psp valence charge on an atom from the pspfile. | ||
| + | </ | ||
| + | < | ||
| + | |||
| + | get_valence(self, | ||
| + | return the total number of valence electrons for the | ||
| + | atoms. valence electrons are read directly from the | ||
| + | pseudopotentials. | ||
| + | |||
| + | the psp filenames are stored in the ncfile. They may be just | ||
| + | the name of the file, in which case the psp may exist in the | ||
| + | same directory as the ncfile, or in $DACAPOPATH, | ||
| + | may be defined by an absolute or relative path. This function | ||
| + | deals with all these possibilities. | ||
| + | |||
| + | </ | ||
ase/jacapo/psp.1558683691.txt.gz · 最終更新: (外部編集)