SST Lab Dokuwiki Header header picture

ユーザ用ツール

サイト用ツール


seminar:atom_object

差分

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

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
seminar:atom_object [2020/08/18 14:08] – [Data descriptors defined here:] kimiseminar:atom_object [2022/08/23 13:34] (現在) – 外部編集 127.0.0.1
行 17: 行 17:
 Atom  Atom 
    
-<code> +===== class Atom(__builtin__.object) ===== 
-class Atom(__builtin__.object)+
        
 Class for representing a single atom. Class for representing a single atom.
    
-Parameters:+==== Parameters: ==== 
 + 
 +^Name^Type^Description^  
 +|''symbol''| str or int|    Can be a chemical symbol (str) or an atomic number (int).| 
 +|''position''| sequence of 3 floats|    Atomic position.| 
 +|''tag''| int |    Special purpose tag.| 
 +|''momentum''| sequence of 3 floats|    Momentum for atom.| 
 +|''mass''| float|    Atomic mass in atomic units.| 
 +|''magmom''| float or 3 floats|    Magnetic moment.| 
 +|''charge''| float |    Atomic charge.|
    
-symbol: str or int +==== Methods defined here: ==== 
-    Can be a chemical symbol (str) or an atomic number (int). + 
-position: sequence of 3 floats +<code>
-    Atomi position. +
-tag: int +
-    Special purpose tag. +
-momentum: sequence of 3 floats +
-    Momentum for atom. +
-mass: float +
-    Atomic mass in atomic units. +
-magmom: float or 3 floats +
-    Magnetic moment. +
-charge: float +
-    Atomic charge. +
-  +
-  +
-Methods defined here:+
 __init__(self, symbol='X', position=(0, 0, 0), tag=None, momentum=None, mass=None, magmom=None, charge=None, atoms=None, index=None) __init__(self, symbol='X', position=(0, 0, 0), tag=None, momentum=None, mass=None, magmom=None, charge=None, atoms=None, index=None)
 __repr__(self) __repr__(self)
行 69: 行 64:
 set_symbol(self, value) set_symbol(self, value)
 set_tag(self, value) set_tag(self, value)
-</code>  +</code>    
 ==== Data descriptors defined here: ==== ==== Data descriptors defined here: ====
  
seminar/atom_object.1597727305.txt.gz · 最終更新: 2022/08/23 13:34 (外部編集)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki