summaryrefslogtreecommitdiff
path: root/cad/src/model/elements_data_other.py
blob: d47893253dfff3309b8d791b32333e0b94c1549d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright 2008 Nanorex, Inc.  See LICENSE file for details. 
"""
elements_data_other.py -- data for miscellaneous kinds of elements
which are neither chemical nor PAM pseudoatoms
(for example, virtual site indicators)

@author: Bruce
@version: $Id$
@copyright: 2008 Nanorex, Inc.  See LICENSE file for details. 

See also: the "handle" Ah5, which is defined as a PAM5 pseudoelement
for code-convenience reasons.
"""

## from model.elements_data import tetra4, flat, tetra2, onebond

_DIRECTIONAL_BOND_ELEMENTS_OTHER = ()

# ==

_defaultRadiusAndColor = {
    "Vs0" : (1.0, [0.8, 0.8, 0.8]), #bruce 080515 guess, "very light gray"
    }
  
_alternateRadiusAndColor = {
    }
                 
# Format of _mendeleev: see elements_data.py

_mendeleev = [
    # For indicators of virtual sites.
    # (We might add more, whose element names correspond to
    #  virtual site pattern names, but which have the same role value.)
    ("Vs0", "virtual-site",    400, 1.0, None, dict(role = 'virtual-site')),

 ]

#    symb   hybridization     FC   need prov c-rad geometry
_otherAtomTypeData = [
    ["Vs0", None,              0,    0,  0,  0.00, None],
]

# ==

def init_other_elements( periodicTable):
    periodicTable.addElements( _mendeleev,
                               _defaultRadiusAndColor,
                               _alternateRadiusAndColor,
                               _otherAtomTypeData,
                               _DIRECTIONAL_BOND_ELEMENTS_OTHER,
                               default_options = dict()
                              )
    return

# end