dimer
Module for pairs of molecules, handling symmetry relations and more.
Dimer
Storage class for symmetry information about a dimers.
Dimers are two molecules that may or may not be symmetry related.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mol_a |
Molecule
|
one of the molecules in the pair (symmetry unique) |
required |
mol_b |
Molecule
|
the neighbouring molecule (may be symmetry related to mol_a) |
required |
separation |
float
|
set the separation of the molecules (otherwise it will be calculated) |
None
|
transform_ab |
ndarray
|
specify the transform from mol_a to mol_b (otherwise it will be calculated) |
None
|
frac_shift |
ndarray
|
specify the offset in fractions of a unit cell, which combined with transform_ab will yield mol_b |
None
|
Source code in chmpy/core/dimer.py
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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
|
separations
property
The closest atom, centroid-centroid, and center of mass - center of mass separations of mol_a and mol_b.
__eq__(other)
__init__(mol_a, mol_b, separation=None, transform_ab=None, frac_shift=None)
Initialize a Dimer.
Source code in chmpy/core/dimer.py
__repr__()
calculate_transform()
Calculate the transform (if any) from mol_a to mol_b.
Source code in chmpy/core/dimer.py
transform_string()
The transform from mol_a to mol_b as a string (e.g. x,-y,z).