Database¶
Metals¶
mdinterface.database.metals.Metal111
¶
Bases: Specie
FCC metal (111) surface slab as a Specie.
Generates a minimal orthogonal (1 x 2 x 3) unit cell using ASE
:func:ase.build.fcc111, ready to be tiled by :meth:SimCell.add_slab.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
metal
|
str
|
Element symbol (e.g. |
required |
lj
|
list of float
|
Custom |
None
|
**kwargs
|
Forwarded to :class: |
{}
|
Examples:
::
from mdinterface.database import Metal111
gold = Metal111("Au")
Source code in mdinterface/database/metals.py
Water¶
mdinterface.database.molecules.Water
¶
Bases: Specie
Water molecule with pre-parameterised force-field parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
str
|
Water model to use:
|
``"ewald"``
|
**kwargs
|
Forwarded to :class: |
{}
|
Examples:
::
from mdinterface.database import Water
water = Water(model="ewald")
Source code in mdinterface/database/molecules.py
Ions¶
mdinterface.database.ions.Ion
¶
Bases: Specie
Monatomic ion Specie with tabulated force-field parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element
|
str
|
Ion element symbol (e.g. |
required |
ffield
|
str
|
Force-field name. See :func: |
``"Jorgensen"``
|
chg_scaling
|
float
|
Multiplicative scale factor applied to the formal charge. Use values less than 1 (e.g. 0.8) to mimic electronic polarisability in non-polarisable force fields. |
1.0
|
**kwargs
|
Forwarded to :class: |
{}
|
Examples:
::
from mdinterface.database import Ion
na = Ion("Na", ffield="Cheatham")
cl = Ion("Cl", ffield="Cheatham")
Source code in mdinterface/database/ions.py
mdinterface.database.ions.lookup_parameters(element, ffield)
¶
Retrieve charge and LJ parameters for an ion from the database.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element
|
str
|
Ion element symbol (e.g. |
required |
ffield
|
str
|
Force-field name (case-insensitive): |
required |
Returns:
| Name | Type | Description |
|---|---|---|
charge |
float
|
Formal charge in elementary charge units. |
lj |
list of float
|
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If element or ffield is not found in the database. |
Source code in mdinterface/database/ions.py
Noble gases¶
mdinterface.database.nobles.NobleGas
¶
Bases: Specie
Class representing a noble gas atom with LJ parameters.
Args: element (str): The chemical symbol of the noble gas (He, Ne, Ar, Kr, Xe, Rn). ffield (str): The force field to use for parameters (default is "opls"). **kwargs: Additional keyword arguments to pass to the Specie superclass.
Source code in mdinterface/database/nobles.py
Graphene¶
mdinterface.database.graphene.Graphene
¶
Bases: Specie
Single graphene sheet with OPLS-AA force-field parameters.
The unit cell is built with :func:ase.build.graphene and the
interlayer spacing is set to 3.35 Å. Bond, angle, dihedral, and
improper parameters follow the OPLS-AA graphene parametrisation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
Forwarded to :class: |
{}
|
Examples:
::
from mdinterface.database import Graphene
grap = Graphene()