OpenMM
|
An Element represents a chemical element. More...
Public Member Functions | |
def | __init__ |
Create a new element. More... | |
def | atomic_number |
def | name |
def | symbol |
def | mass |
def | __str__ |
def | __repr__ |
Static Public Member Functions | |
def | getBySymbol |
Get the Element with a particular chemical symbol. More... | |
def | getByAtomicNumber |
def | getByMass |
Get the element whose mass is CLOSEST to the requested mass. More... | |
An Element represents a chemical element.
The simtk.openmm.app.element module contains objects for all the standard chemical elements, such as element.hydrogen or element.carbon. You can also call the static method Element.getBySymbol() to look up the Element with a particular chemical symbol.
Element objects should be considered immutable
def __init__ | ( | self, | |
number, | |||
name, | |||
symbol, | |||
mass | |||
) |
Create a new element.
number (int) The atomic number of the element name (string) The name of the element symbol (string) The chemical symbol of the element mass (float) The atomic mass of the element
References Element._atomic_number, Element._mass, Element._name, and Element._symbol.
def __repr__ | ( | self | ) |
References Element.name(), Residue.name, Atom.name, ForceField._TemplateData.name, ForceField._TemplateAtomData.name, Modeller._ResidueData.name, and Modeller._Hydrogen.name.
def __str__ | ( | self | ) |
References Element.name(), Residue.name, Atom.name, ForceField._TemplateData.name, ForceField._TemplateAtomData.name, Modeller._ResidueData.name, and Modeller._Hydrogen.name.
def atomic_number | ( | self | ) |
References Element._atomic_number.
|
static |
|
static |
Get the element whose mass is CLOSEST to the requested mass.
This method should not be used for repartitioned masses
|
static |
Get the Element with a particular chemical symbol.
def mass | ( | self | ) |
References Element._mass.
def name | ( | self | ) |
References Element._name.
Referenced by Element.__repr__(), Element.__str__(), Modeller.addSolvent(), and ForceField.registerScript().
def symbol | ( | self | ) |
References Element._symbol.