CAPSChain Assembly and Packing Suite

Theory · 23 methods

Growth

What CAPS computes, as it computes it: the equation, its symbols with CAPS's defaults, when to use the method, the source file, the tests that check it, and any departure from the cited method.

Configurational-bias regrowth of chain ends

A Monte Carlo move that samples chain conformations of a built, typed cell. It picks a chain, one of its free ends and one to a few of the rotatable backbone bonds nearest that end, and regrows the end bond by bond from the inside out: at each bond k torsion angles are drawn uniformly on the circle, each weighted by the Boltzmann factor of the energy of the atoms it places, and one is chosen by its weight. The old end is retraced the same way (its own torsion counted as one of the trials) and the new end is accepted with probability min(1, W_new/W_old). Trial energies are the assigned force field's: van der Waals (shifted to zero at the cut-off, 1-4 pairs scaled), damped shifted force electrostatics and the torsion terms about each regrown bond, class II cross terms included. Bond lengths, angles, impropers and every stereo configuration are untouched; ring, double, aromatic and carbonyl C–N/C–O bonds are held.

$$W = \prod_i \sum_j e^{-\beta u_{ij}}, \qquad P_\mathrm{acc} = \min\left(1,\, \frac{W_\mathrm{new}}{W_\mathrm{old}}\right)$$

Siepmann & Frenkel 1992; Rosenbluth & Rosenbluth 1955

SymbolMeaningIn CAPS
ktorsion trials per bond8
torsions per moverotatable backbone bonds regrown at most4
cut-offpair energies (at most half the cell's narrowest width)9 Å

When to use it

After growth and a first minimisation, before dynamics: it relaxes chain-end conformations and local packing far faster than MD at the same temperature. It does not move chain interiors (double-bridging and end-bridging moves would) and does not change the density.

Source
core/src/cbmc.cpp (cbmc_regrow)
Tested by
Cbmc.ButaneTorsionsFollowBoltzmann (trans population equals the grid-integrated Boltzmann one), Cbmc.MeltKeepsGeometryAndCountsEnergy (energy change equals the Evaluator's to 1e-6; bond lengths kept to 1e-9 Å)
Departure from the reference
uniform torsion trials at fixed bond lengths and angles (the rigid-geometry ensemble, no Fixman term); electrostatics by damped shifted force, not Ewald

References

  1. Siepmann, J. I., Frenkel, D., "Configurational bias Monte Carlo: a new sampling scheme for flexible chains", Mol. Phys. 75, 59–70 (1992). doi:10.1080/00268979200100061
  2. Rosenbluth, M. N., Rosenbluth, A. W., "Monte Carlo calculation of the average extension of molecular chains", J. Chem. Phys. 23, 356–359 (1955). doi:10.1063/1.1741967

Functional groups on nanotubes, sheets and fillers

Groups grafted covalently onto a filler: the sidewalls, ends and edges of carbon and boron nitride nanotubes and sheets (and any sp² framework), or the atoms chosen. A group is a preset (hydroxyl, carboxyl, amine, methyl, fluoro, phenyl, nitrophenyl, amide, ester, hydroxymethyl, vinyl, thiol, aminopropyl, octadecylamide, PEG) or a SMILES with one attachment point. The sites follow a pattern: at random, every site at a spacing, a band along the axis, a helix round a tube, the tube's rim or the flake's edge hydrogens, or the selected atoms; only the elements named (e.g. boron of h-BN). A sidewall group sits on its site's outward normal, the normal of the three bonds, turned away from the filler's centre (outside a tube, on top of a sheet; inside or below, or both at random, on request); sites stay at least the spacing apart.

$$\text{degree} = \frac{\text{grafted sites}}{\text{framework atoms}} \times 100$$
SymbolMeaningIn CAPS
spacingbetween grafted sites3 Å
shareof the eligible sites (random, band)0.05
pitchhelix: Å per turn20 Å

When to use it

Functionalised CNT, graphene and BN fillers for polymer and rubber composites: build the filler, graft the groups, relax (the grafted sp² atoms pyramidalise), then embed it in the matrix or compare adsorbates on it with the Adsorption locator.

Source
core/src/functionalize.cpp (functionalize)
Tested by
Functionalize.TubeSidewallOutsideAndInside, SheetSidesSpacingAndElements, EndsAndHelix
Departure from the reference
the grafted atoms keep their sp² places until relaxed; no two neighbouring sites are grafted (by the spacing)

Chain growth by trial placement

Chains grow unit by unit inside the periodic cell. Each step places the next backbone atom and its substituents from internal coordinates (NeRF) and draws many trials of the free torsions. The draw depends on the bond: between two sp³ atoms trans or gauche± with 15° Gaussian jitter, and in 30 % of draws any angle (crowded units such as methacrylates need the room between); next to an sp² atom 30° steps from the template's angle with 5° jitter; between two sp² atoms (conjugated) 0 or 180° with 8° jitter; ester and amide links trans with 8° jitter. The default method keeps the roomiest trial: the one whose worst distance to any atom already in the cell, minus its contact limit, is largest. Two Rosenbluth methods instead draw one of the trials within the contact limits with probability ∝ exp(−E/kT) at 450 K: method 1 with a soft-sphere overlap energy, method 2 with UFF Lennard-Jones between atoms (cut at 6 Å); both add Jorgensen's butane torsion energy about sp³–sp³ bonds, and the chains' Rosenbluth weights are reported. Units with more than three heavy-atom torsions get twice the trials for each extra one (at most eight times). A poor step backs up a few units; a chain that cannot continue restarts elsewhere.

$$\begin{gathered}\text{best of }k:\ \ \argmax_\text{trials}\ \min_j\left(|r - r_j| - \ell(z, z_j)\,s\right), \qquad \ell(a, b) = 0.88\,(R_a + R_b) - 0.08\,n_\mathrm{H} \\ \text{Rosenbluth: } P(\text{trial}) = \frac{e^{-E/k_\mathrm{B}T}}{\sum_\text{trials} e^{-E/k_\mathrm{B}T}}, \qquad W = \prod_\text{steps}\frac{1}{k}\sum_\text{trials} e^{-E/k_\mathrm{B}T}\end{gathered}$$

CAPS's own scheme; the Rosenbluth methods after Theodorou & Suter 1985 (method 1), without a Monte Carlo acceptance step

SymbolMeaningIn CAPS
ℓcontact limit from Bondi radii R (n_H: hydrogens in the pair)C–C 2.99, C–H 2.47, H–H 1.95 Å; 0.5 Å more at an arm's reserved head
scontact scale1, or lowered step by step when crowded (then push-off)
trialsper growth step (k)120; doubled per heavy-atom torsion beyond three, at most × 8
ERosenbluth trial energymethod 1: 20 kcal/mol (1 − d/ℓ)² inside ℓ (ℓ × 0.85 for 1-4, × 0.9 for 1-5 to 1-7 pairs); method 2: UFF D[(x/r)¹² − 2(x/r)⁶] shifted to 0 at 6 Å; both plus ½V1(1 + cos φ) + ½V2(1 − cos 2φ) + ½V3(1 + cos 3φ), V = 1.411, −0.271, 3.145 kcal/mol, about sp³–sp³ bonds
Ttemperature of the Boltzmann factors450 K
seedrandom streammt19937-64 from the run's seed

When to use it

Building amorphous cells, films on surfaces and blends at a chosen density. Measure chain dimensions only after equilibration. Around a filler periodic along z with a hollow core (a nanotube, caps nano tube … --units), no chain atom comes inside the innermost wall, and the empty core does not count as room for the matrix.

Source
core/src/grow.cpp · core/src/polymer.cpp
Tested by
Grow and polymer tests (tests/test_polymer.cpp)
Departure from the reference
the default best-of-k method is not configurational-bias Monte Carlo: trials are ranked by geometric room, not Boltzmann weights, so its chains are not a Rosenbluth-weighted ensemble; the Rosenbluth methods draw by weight but have no acceptance step, so they are not either. The polystyrene-only grower (core/src/grow.cpp) keeps fixed limits C–C 3.0, C–H 2.45, H–H 2.0 Å

References

  1. Parsons, J., Holmes, J. B., Rojas, J. M., Tsai, J., Strauss, C. E. M., "Practical conversion from torsion space to Cartesian space for in silico protein synthesis", J. Comput. Chem. 26, 1063–1068 (2005). doi:10.1002/jcc.20237
  2. Matsumoto, M., Nishimura, T., "Mersenne twister: a 623-dimensionally equidistributed uniform pseudo-random number generator", ACM Trans. Model. Comput. Simul. 8, 3–30 (1998). doi:10.1145/272991.272995
  3. Theodorou, D. N., Suter, U. W., "Detailed molecular structure of a vinyl polymer glass", Macromolecules 18, 1467–1478 (1985). doi:10.1021/ma00149a018

Thiolate ligands on metal particles

Surface atoms of a gold (silver, copper, platinum, palladium) particle are those with fewer neighbours than the bulk. Sulfur sits in three-fold hollows of three mutually neighbouring surface atoms, 2.45 Å from each (on top of an atom where the surface has no hollow), sites at least √3 times the metal's nearest-neighbour distance apart: the √3 × √3 R30° packing of thiolates on Au(111). Each ligand's chain is straightened (all anti) and points out of the surface, rolled about its axis away from the others.

$$h = \sqrt{d_\mathrm{MS}^2 - R^2}\ \text{ above the hollow's centre } (R\text{: its distance to the three atoms}), \qquad d_\mathrm{SS} \ge \sqrt{3}\,d_\mathrm{MM}$$

packing as reviewed by Love et al. 2005

SymbolMeaningIn CAPS
d_MSmetal–sulfur distance2.45 Å
d_MMnearest-neighbour distance of the metal2.88 Å in gold

When to use it

Model a capped nanoparticle to embed or solvate; relax with a force field that has metal–sulfur terms before dynamics (no metal–S bonds are written).

Source
core/src/edit.cpp (cap_thiolates) · core/src/nano.cpp
Tested by
Nano.GoldParticleCappedWithThiolates
Departure from the reference
a geometric placement, not an equilibrated monolayer; adatom (staple) motifs of small clusters are not built

References

  1. Love, J. C., Estroff, L. A., Kriebel, J. K., Nuzzo, R. G., Whitesides, G. M., "Self-assembled monolayers of thiolates on metals as a form of nanotechnology", Chem. Rev. 105, 1103–1170 (2005). doi:10.1021/cr0300789

Clusters from periodic structures

The periodicity removed: every molecule made whole and moved by lattice vectors to its image nearest a centre; molecules whose centroid (or any atom) lies within the radius are kept, the cell dropped. Radius 0 keeps them all.

$$\left|\mathbf c_M + \mathbf T - \mathbf r_0\right| \le R$$

c_M the centroid of the whole molecule; a network larger than the cell keeps its atoms by their own nearest images

SymbolMeaningIn CAPS
c_Mcentroid of molecule MÅ
r₀centre (cell centre or the selection's)Å
RradiusÅ

When to use it

A finite model around a site (a crosslink, an additive, a filler contact) for quantum chemistry or a gas-phase check; a whole-molecule snapshot of a melt without the cell.

Source
core/src/lattice.cpp
Tested by
tests/test_crystal.cpp Lattice.ClusterFromAPeriodicMelt (radius 0 keeps every atom, no cell; 12 Å keeps whole chains, centroids inside, no stretched bonds)
Departure from the reference
the surface of the cluster is a vacuum surface: no embedding or boundary charges

Cleaving molecular crystals

A slab of a molecular crystal (polymer crystal, cellulose, organic solid) with each molecule placed in the layer of its centroid, whole: the surfaces are made of complete molecules and no covalent bond is broken by the cut.

$$L_M = \left\lfloor \bar g_M - \frac{z_{\mathrm{cut}}}{d} \right\rfloor$$

molecules followed through the bonds to their images; one endless along the surface normal (a chain along it) is cut at the atomic planes, and said

SymbolMeaningIn CAPS
ḡ_Mcentroid's fractional coordinate along the stacking vector—
dplane spacingÅ

When to use it

Fibre surfaces from crystal structures (cellulose Iβ, PE, PET, aramid) for fibre–rubber interfaces, with chains along the surface kept whole.

Source
core/src/crystal.cpp
Tested by
tests/test_crystal.cpp Crystal.CleaveKeepsMoleculesWhole (N₂ across the cell boundary: broken by the plain cut, whole and bonded with the option)
Departure from the reference
the slab's thickness follows the molecules, not the planes: its faces are rougher than a plane cut

Chain shape: backbone torsions

Every backbone dihedral of a chain set in turn from its first end to a repeating pattern: all-trans for the planar zig-zag, TG for a 3₁ helix, TTGG, or any list of angles. Each bond's far side turns about it; ring bonds stay.

$$\phi_k \leftarrow p_{\,k \bmod n}$$

the backbone is the longest heavy-atom path outside rings (or through them when rings are in the main chain); the side groups turn with the atoms beyond each bond

SymbolMeaningIn CAPS
φ_kk-th backbone dihedral°
pthe pattern°
N_bbackbone atoms—

When to use it

Crystalline chain models for fibres and lamellae (PE zig-zag, helices of isotactic and syndiotactic polypropylene), extended chains for pulling or for a crystal cell from one chain.

Source
core/src/torsion.cpp
Tested by
tests/test_torsion.cpp Torsion.BackboneTorsionPatterns (decane all-trans: every dihedral 180°; TG: alternately 180° and 60°)
Departure from the reference
bond lengths and angles are kept as they are: minimise afterwards to settle them and remove clashes

Polymer brushes on surfaces

Chains grafted by one end to sites on a fibre or filler surface: a site atom near the top face with a hydrogen pointing up (a silanol's O) loses that hydrogen and the chain's head bonds in its place, leaving along it. Sites are drawn at random at least a spacing apart, at a grafting density σ; the chains grow upward with the same contact rules as any growth.

$$N = \operatorname{round}(\sigma A),\qquad \sigma_{\mathrm{achieved}} = \frac{N}{A}$$

the head–site bond and the atoms within three bonds of it are bonded neighbours, not contacts; the first unit's torsions are referenced to the site's own neighbours (Si–O–C)

SymbolMeaningIn CAPS
σgrafting densitychains/nm²
Asurface area of the cellnm²
Nchains grafted—

When to use it

Silane-coupled or polymer-grafted silica in rubber, sized fibre surfaces, brushes between a filler and the matrix: the grafted layer before the matrix is added (stack a melt on it) or relaxed on its own.

Source
core/src/interface.cpp
Tested by
tests/test_crystal.cpp Crystal.PolymerBrushOnSilanols (polyisoprene on hydroxylated quartz: one H fewer per graft, each head bonded to an O at a C–O length, every O two-coordinate, σ = N/A)
Departure from the reference
the chains start stretched from the surface as grown: equilibrate before reading the brush height

Semicrystalline lamellar stacks

A crystal lamella cut from a cell of the polymer crystal library (PE, PVDF, iPP, PEO, POM, nylon 6 and 66, PET, PLLA, natural rubber, PTFE), with an amorphous layer between it and its periodic image holding loops, bridges and tails. The stems run along the crystal's c, the fold surfaces are its ab plane and the stack normal is z, so a monoclinic or triclinic cell gives stems that lean by the angle between c and z. The amorphous segments are grown from the crystal's own repeat unit: the shortest period of its chain (CH2 for PE, CH2-CF2 for PVDF, the whole repeat of nylon 6), each backbone atom with the crystal's bond length, angle and side atoms in its local frame, so the stereochemistry is the crystal's (isotactic iPP, L-lactide). Torsions are held in rings, amides, esters and C=C, take two states between trigonal atoms and come from a trans-gauche set elsewhere. A loop or bridge closes in phase with the stem it enters, and for a chain with a direction (nylon 6, iPP, PLLA, natural rubber) it joins two stems that point opposite ways along the chain. Tails end at an sp3-sp3 bond, capped with H. The force field is chosen per polymer (OPLS-AA 2024 or PCFF, the one that types every atom of the cell).

$$S\,(2 - f_t) = 2N,\qquad P_2 = \left\langle \tfrac{1}{2}\left(3\cos^2\theta - 1\right)\right\rangle$$

N stems have 2N ends; a loop or bridge takes two, a tail one. θ is the angle between a backbone chord r(i+w) − r(i−w) and the stems' direction; w is 1 for a zig-zag and 2 to 5 for a helix, whichever lines the stems up best

SymbolMeaningIn CAPS
Samorphous segments (loops, bridges, tails)—
f_tfraction of the segments that are tails—
Nstems in the lamella—
P2chain order parameter of a backbone atom—
θangle of the chord to the stems°

When to use it

Semicrystalline fibres and matrices in a composite (PE, PP, PVDF, nylons, PET, PLA, strain-crystallised natural rubber): the starting cell for MD of the crystal-amorphous interphase, its stiffness, thermal conductivity or yield.

Source
core/src/semicrystal.cpp
Tested by
tests/test_thermal.cpp Semicrystalline.* and SemicrystallinePolymers.* (each of the 14 library crystals: crystal at the library density, every atom in a stem, loop, bridge or tail, every atom typed by the polymer's force field, bonds near their lengths, stem tilt as the cell's)
Departure from the reference
the thicknesses and fractions of the polymers other than PE are PE's (Olsson, in 't Veld & Andreasson 2018): no lamellar-stack MD with loops, bridges and tails was found for them. The amorphous densities are room-temperature values from the Wunderlich data reviews (J. Phys. Chem. Ref. Data 1981 and 1983) or from the paper that measured them (PET, PLLA, natural rubber); the PVDF, PEO, POM and PTFE values in those reviews come from handbooks, not from a measurement the review names. A few closures in stiff chains (PET) are left strained for the relaxation

Nanotube ropes and walls of any chirality

Multi-walled tubes with each wall's own (n, m), and ropes of identical tubes: 7, 19 or 37 in hexagonal rings, or the periodic triangular lattice of an endless rope, each tube its own molecule. A periodic multi-walled tube is made long enough for every wall's period, each wall stretched to the common length by at most 2 %.

$$R = \frac{a\sqrt{n^2 + nm + m^2}}{2\pi},\qquad D = 2R_{\mathrm{out}} + g,\qquad \varepsilon_{\mathrm{wall}} = \frac{L}{kT} - 1$$

a = √3 a_CC; T the wall's period along the axis, k its whole periods in the length L; neighbouring axes D apart (g wall to wall, 3.4 Å by default); the rope lattice's cell D × D√3 with two tubes

SymbolMeaningIn CAPS
Rwall radiusÅ
Daxis-to-axis distanceÅ
gwall-to-wall gapÅ
Tperiod along the axisÅ

When to use it

Carbon-nanotube bundles in rubber (aggregated filler), double- and triple-walled tubes with mixed chiralities as grown, the inter-tube gap's effect on load transfer.

Source
core/src/nano.cpp
Tested by
tests/test_nano.cpp Nano.WallChiralitiesAndRopes ((5,5)@(10,10)@(26,0): atoms per period and every atom on its wall's radius; walls too close and lengths too short refused; seven tubes as seven molecules; the lattice cell D × D√3)
Departure from the reference
the walls of a periodic mixed-chirality tube carry a small axial strain (stated); the rope's tubes are identical and in register

Point defects: vacancies and doping, graded

A share (or a count) of one element's sites, in the whole structure or the selection, picked at random, at least a spacing apart, and either emptied (vacancies) or given another element (substitutional doping). The charge the removed atoms carried is reported. Graded substitution (core–shell particles, gradient alloys) gives each candidate site its own chance, linear from the inner value at the candidates' centroid to the outer value at the farthest of them (radial), or from the low end to the high end along an axis (axial). Every site is drawn once; the notes give the count expected (the sum of the chances) and the fraction reached in each third, centre to surface, against the expected one.

$$N = \operatorname{round}(f\,N_X),\qquad |\mathbf r_i - \mathbf r_j| \ge d_{\min},\qquad p_i = p_{\mathrm{in}} + \left(p_{\mathrm{out}} - p_{\mathrm{in}}\right) t_i,\qquad t_i = \frac{|\mathbf r_i - \bar{\mathbf r}|}{\max_j |\mathbf r_j - \bar{\mathbf r}|}$$

distances by the minimum image in a periodic cell; picked in a random order (seeded), skipped when too close to one already picked

SymbolMeaningIn CAPS
fshare of the element's sites—
N_Xatoms of the element—
d_minleast spacingÅ

When to use it

Defective fillers (oxygen vacancies in silica or titania, missing atoms in a metal nanoparticle), doped particles (Cu in Al, Zn in a sulphide), a carbon lattice with nitrogen in it.

Source
core/src/edit.cpp
Tested by
tests/test_nano.cpp Nano.VacanciesAndDoping (an Al particle: 10 % vacancies exactly; Cu on five sites at least 5 Å apart); tests/test_nano.cpp Nano.GradedSubstitution (an aluminium particle, gold from chance 1 at the centre to 0 at the surface: the centre-most site always taken, the outermost never, the count within four standard deviations of the sum of the chances, the inner third above 60 % and the outer below 30 %; axial along x the same the other way; a chance above 1 refused); tests/python/test_bindings.py
Departure from the reference
no relaxation and no charge compensation: minimise afterwards and assign the charges again

Analogs from R groups

A core SMILES with numbered attachment points [*:1] … [*:9] and, for each, a list of substituents: every combination built as its own structure (the 3D embedding and clean-up as for one molecule). A substituent's first atom bonds to the core (or a leading * marks the atom that does); H leaves the core atom's own hydrogen.

$$N = \prod_k n_k$$

each joined by a ring-closure bond across '.' (%9k), so any substituent SMILES works as written

SymbolMeaningIn CAPS
n_ksubstituents of R group k—

When to use it

A family of curatives, antioxidants or coupling agents (different alkyl chains, leaving groups), plasticiser series, monomers with different side groups, built side by side and run through the same steps.

Source
core/src/smiles.cpp
Tested by
tests/test_molecule.cpp Molecule.AnalogsFromRGroups (benzene with two R groups: six analogs, each one molecule, toluene and anisic acid among them)
Departure from the reference
the substituents are joined as written: stereochemistry at the attachment is not enumerated

Substitutional disorder: quasirandom structures and distinct arrangements

A fraction x of the sites of one element in a periodic cell (usually a supercell made first) take another element; site i carries σ_i = +1 for the original element and −1 for the substituent. Pair shells m are the distinct distances between sites of that sublattice (minimum image), and Π_m is the mean of σ_iσ_j over the pairs of shell m. A truly random alloy has Π_m = (1 − 2x)² on every shell. The special quasirandom structure is the arrangement in the cell whose first shells come closest to that: the weighted sum of |Π_m − (1 − 2x)²| (weight 1/m) is minimised by simulated annealing of swaps between unlike sites, from several random starts, each swap updating the shell sums from the two sites' neighbours only. For a few substituents the arrangements can instead be listed in full: every set of k sites out of n is mapped by each symmetry operation of the cell (the integer rotations of the cell basis that keep its metric, combined with each translation that sends every atom onto an atom of its element), the lexicographically smallest image is kept as the representative, and the orbit sizes, which add up to C(n, k), are the arrangements' weights in a configurational average.

$$\begin{gathered}\Pi_m = \frac{1}{N_m} \sum_{(i<j) \in m} \sigma_i \sigma_j, \qquad \Pi_m^{\mathrm{random}} = (1 - 2x)^2, \qquad f = \sum_{m=1}^{M} \frac{1}{m}\,\left|\Pi_m - (1 - 2x)^2\right| \\ \sum_{\mathrm{orbits}} g = \binom{n}{k}\end{gathered}$$

Zunger, Wei, Ferreira & Bernard 1990; Kirkpatrick et al. 1983

SymbolMeaningIn CAPS
σ_ioccupation of site i: +1 original element, −1 substituent—
N_mpairs of sites in shell m—
xfraction of the sites substituted—
Mshells matched—
gorbit size: arrangements equivalent by symmetry—
n, ksites of the sublattice, substituents—

When to use it

Mixed-cation fillers and pigments (solid solutions such as Zn/Mg oxides), doped crystals and alloy contacts in a composite: a disordered phase modelled by one ordered cell whose short-range order is that of the random alloy, or every inequivalent placement of a few dopants with its weight.

Source
core/src/sqs.cpp (special_quasirandom, enumerate_occupations)
Tested by
Sqs.FccConventionalOrbits (one and two substituents in copper's 4-site cell: one orbit each, of 4 and 6); Sqs.FccSupercellPairOrbits (two substituents in the 32-site 2 × 2 × 2 cell: the five separation classes, orbits 192, 48, 192, 48, 16 = C(32, 2), 1536 operations; three substituents add up to C(32, 3) = 4960); Sqs.FccHalfAlloy (x = ½: Π₁ = Π₂ = 0 exactly, Π₁ recounted from the returned structure)
Departure from the reference
pair correlations only (no triplets or larger clusters); one sublattice at a time and no vacancies; the enumeration works on the cell given, not over all supercells of a size, and refuses more than 200000 arrangements

References

  1. Zunger, A., Wei, S.-H., Ferreira, L. G., Bernard, J. E., "Special quasirandom structures", Phys. Rev. Lett. 65, 353–356 (1990). doi:10.1103/PhysRevLett.65.353
  2. Kirkpatrick, S., Gelatt, C. D., Vecchi, M. P., "Optimization by simulated annealing", Science 220, 671–680 (1983). doi:10.1126/science.220.4598.671

Disorder in CIF files: groups, mixed and split sites, vacancies

A CIF marks disorder with the site occupancy and, for alternative arrangements of several atoms, a disorder assembly and group per site (_atom_site_occupancy, _atom_site_disorder_assembly, _atom_site_disorder_group; group '.' or 0 is ordered). Every site is generated through the space group's operations; partially occupied sites without a group that fall within 0.8 Å of each other are alternatives for one place (split positions, two elements sharing a site), and what their occupancies leave is a vacancy. By default each assembly keeps its group of the largest occupancy and each place its occupant of the largest occupancy (a lone site below 0.5 is left out), which gives one ordered cell with no overlapping atoms. A named group can be kept instead in every assembly, and either ordered cell can be repeated into a supercell. Or a supercell is filled at random to the occupancies: one group is drawn for each copy of an assembly, a copy being one symmetry operation in one cell, worked out from the unwrapped image so that a disordered molecule cut by the cell edge stays whole, and one occupant or a vacancy is drawn for each place. The composition the occupancies give is reported beside the one written.

$$P(g) = \mathrm{occ}(g), \qquad P(j) = \mathrm{occ}_j, \quad P(\varnothing) = 1 - \sum_j \mathrm{occ}_j, \qquad \mathbf{c} = \mathbf{R} - \lfloor \mathbf{f} \rfloor$$

Hall, Allen & Brown 1991 (the CIF data items)

SymbolMeaningIn CAPS
occsite occupancy (a group's: the largest of its sites)—
Rthe supercell's cell an atom is placed in—
fthe atom's fractional position before wrapping into the cell—
cthe cell of the copy it belongs to—

When to use it

Clays, doped and mixed oxides and polymer or solvate crystals whose CIF carries split or shared sites: an ordered cell for a force field, or a supercell with the disorder statistics of the file.

Source
core/src/crystal.cpp (parse_cif with CifDisorder)
Tested by
CifDisorder.GroupsMajorNamedAndRandom (major and named groups; in 1000 cells every copy holds one whole group, group 1 in 694 for 0.7); CifDisorder.CopiesStayWholeAcrossTheCellEdge (a P-1 molecule cut by the cell edge keeps each atom's partner 1.2 Å away in every copy); CifDisorder.MixedSitesVacanciesAndSplitPositions (Mg/Fe 0.6/0.4 keeps Mg, at random 397 Fe in 1000 for 400; a 0.25 site filled 254 times in 1000; a half-and-half split position gives one atom)
Departure from the reference
no correlation between neighbouring copies (each drawn independently); an assembly's groups are not checked to add up to 1 (what is missing is a vacancy); hydrogens added to a disordered group in a file are kept with their group only if they carry its label

References

  1. Hall, S. R., Allen, F. H., Brown, I. D., "The crystallographic information file (CIF): a new standard archive file for crystallography", Acta Cryst. A 47, 655–685 (1991). doi:10.1107/S010876739101067X

Shaped crystal cuts that keep whole molecules

A particle of a given shape (sphere, cube, octahedron, rod, cone and the rest of the particle builder's shapes) is cut from a crystal by copying the cell along its lattice vectors. Atom by atom, each copied atom is kept when it lies inside the shape. For a molecular crystal the molecules are found first from the bonds with every lattice image (a chain along a short axis bonds an atom to two images of one neighbour), by a flood fill that keeps each atom's lattice offset; each molecule is made whole that way, and every copy of it is kept or left out as a whole by where its centroid falls, so no molecule is cut. A component that meets one of its own atoms at another lattice offset is a periodic network (a polymer chain, a covalent framework) and is still cut atom by atom, with a note. The shape's base can be put on a family of lattice planes: the shape is turned so that its z axis lies along the plane normal h a* + k b* + l c*, and the particle is written with that normal along z.

$$\text{kept} \iff \mathsf{R}\,(\mathbf{c}_m + \mathbf{T} - \mathbf{c}_0) \in \text{shape}, \qquad \mathbf{n} = h\,\mathbf{a}^* + k\,\mathbf{b}^* + l\,\mathbf{c}^*, \quad \mathsf{R}\,\hat{\mathbf{n}} = \hat{\mathbf{z}}$$

c_m: a molecule's centroid; T: a lattice translation; c₀: the cut's centre; R: the rotation taking the plane normal to z

SymbolMeaningIn CAPS
c_mcentroid of molecule m (made whole)Å
Tlattice translationÅ
c₀centre of the cutÅ
Rrotation taking the (hkl) normal to z—

When to use it

Cellulose Iβ nanocrystals, S₈ or zinc stearate particles, fibrils of molecular crystals: particles whose surface molecules are whole, ready to embed in a rubber matrix.

Source
core/src/nano.cpp (nanoparticle: whole_molecules, hkl)
Tested by
MolecularCuts.SphereKeepsWholeDimers (every dimer of a sphere cut is complete, and exactly those whose centres lie within the radius are kept, though the cell's edge cuts each dimer); MolecularCuts.BaseNormalToPlanes (with (100) as the base, dimers along a lie along z); MolecularCuts.NetworksAreCutAtomByAtom (polyethylene's chains are found as periodic networks and cut atom by atom, with the note)
Departure from the reference
periodic networks are not kept whole (no finite molecule exists); the fibre shape keeps its own periodic cut

The space group kept with the structure

A structure keeps the space group it was read with (a CIF's operations, when every operation maps the ordered atoms onto themselves), built in (the crystal builder) or found (the highest group its atoms have within a tolerance, as operations in the structure's own coordinates). A CIF is then written as the asymmetric unit, one atom of every orbit, with the operations, as long as the group still holds after any edits; otherwise as P 1. A supercell or a primitive cell drops the group, because its operations belong to the old cell. The cell editor fits six numbers to the crystal system by averaging the lattice metric over the group's rotations. Moving an atom moves every symmetry image of it. On a special position the move is first projected onto the displacements the site symmetry allows, so the atom stays there.

$$\mathbf G = \mathbf M^{\mathsf T}\mathbf M,\qquad \mathbf G \leftarrow \frac{1}{|P|}\sum_{\mathbf R\in P}\mathbf R^{\mathsf T}\mathbf G\,\mathbf R,\qquad \Delta \leftarrow \frac{1}{|S|}\sum_{\mathbf R\in S}\mathbf R\,\Delta,\qquad \mathbf f_j' = \mathbf R(\mathbf f_i + \Delta) + \mathbf t + \mathbf n$$

a lattice's metric is unchanged by its symmetry operations (RᵀGR = G); S the site-symmetry group of the moved atom, n the lattice vector of each image

SymbolMeaningIn CAPS
Gmetric tensor of the cellŲ
Ppoint group (the distinct rotation parts)—
Ssite-symmetry group—
Δmove in fractional coordinates—

When to use it

Crystals of fillers and polymers kept in their space group through edits, and CIFs others can read with their symmetry.

Source
core/src/spacegroup.cpp
Tested by
tests/test_symmetry_kept.cpp (rock salt built in F m -3 m written as two sites with 192 operations and read back as the same eight atoms; quartz kept as P 32 2 1, written as two sites, found again after the group is stripped, written as P 1 once an edit breaks it; a cubic cell from a = 5, b = 6, c = 7, β = 95° becomes a = b = c = √((25 + 36 + 49)/3) with right angles, quartz's γ = 118° becomes 120° with the fractional coordinates kept; an oxygen's move carries its five images, a silicon on a twofold axis moves along it with its two images, and the group holds after both); tests/python/test_bindings.py symmetry
Departure from the reference
fitting the cell averages the whole metric, so lengths can change too (quartz a = 4.913 Å with γ = 117° gives a = 4.988 Å with γ = 120°): set the lengths after the angles if they matter. Other writers than CIF write the full cell.

Lattice planes in the view

The planes (hkl) of the cell drawn in the structure view. Their spacing is d_hkl = 1/|h a* + k b* + l c*|, with the reciprocal vectors written without 2π (a* = b × c / V and so on), and their normal runs along h a* + k b* + l c*. The planes are h u + k v + l w = m + s in fractional coordinates, for every integer m whose plane crosses the cell. The shift s moves them off the origin in units of d. Each plane is cut to the cell: its corners are where it meets the cell's twelve edges, ordered round the plane. The indices are kept as given, so (222) is spaced half as far as (111), as in diffraction. View onto turns the camera to look straight down the normal. The view turns by the yaw about y and then by the pitch about x, so yaw = atan2(−n_x, n_z) and pitch = atan2(n_y, √(n_x² + n_z²)) bring the normal onto the line of sight.

$$d_{hkl} = \frac{1}{\left|h\,\mathbf a^* + k\,\mathbf b^* + l\,\mathbf c^*\right|},\qquad \mathbf a^* = \frac{\mathbf b\times\mathbf c}{V},\quad \mathbf b^* = \frac{\mathbf c\times\mathbf a}{V},\quad \mathbf c^* = \frac{\mathbf a\times\mathbf b}{V}$$

V = a · (b × c); n the unit normal; the planes sit at m + s in units of d from the cell origin

SymbolMeaningIn CAPS
h, k, lMiller indices—
a*, b*, c*reciprocal cell vectorsÅ⁻¹
d_hklinterplanar spacingÅ
sshift of the planesd

When to use it

Finding the cleavage and growth planes of a filler or polymer crystal before cutting a surface, checking the planes behind a powder line, and orienting a view of a lamella or a fibre crystal for a figure.

Source
core/src/miller.cpp
Tested by
tests/test_miller.cpp (cubic d = a/√(h²+k²+l²) and (222) = (111)/2; hexagonal 1/d² = 4(h²+hk+k²)/(3a²) + l²/c² for four reflections; a triclinic cell against hᵀG⁻¹h with the metric tensor, to 10⁻¹²; the cube's (111) planes are two triangles of side a√2, shifted by half a spacing a triangle, the regular hexagon of side a/√2 and area 3√3a²/4, and a triangle; every corner on its plane; (100) shifted by half is one face-sized square; the view angles put five normals exactly on the line of sight); tests/python/test_bindings.py (copper (111): d = a/√3, two planes); quartz (101) gives d = 3.3434 Å
Departure from the reference
Planes of the cell as it is: a supercell's planes are those of the supercell's indices. Planes that only touch an edge or a corner of the cell are not drawn. The camera has no roll: looking down a normal, the picture can stand at any turn about it.

References

  1. Shmueli, U., "Reciprocal space in crystallography", (2006). doi:10.1107/97809553602060000549

Molecular point groups and symmetrisation

The symmetry operations a molecule has within a tolerance, its Schoenflies point group, and the molecule made exactly symmetric. The candidate axes, following the strategy of Beruski and Vidal, are the principal axes of inertia and the directions of atoms, of midpoints of like atoms, of differences and normals of pairs of like atoms, and of normals to planes through three like atoms (C₃ axes through the faces of octahedra and icosahedra). An operation holds when every atom lands within the tolerance on an atom of its element, and a C_n only when every atom off its axis lies in a cycle of n atoms (so a six-ring never passes as C₇). C_n up to n = 8 and mirror planes are tested on every candidate, S_2n and S_n on every rotation axis, and the inversion. Linear molecules give C∞v or D∞h. Otherwise the operations are closed on the atoms' permutations, with each operation's sign, so a planar molecule's own mirror counts. Every operation of the closed group, including products no single test saw, must also carry the atoms onto their partners within the tolerance; when the full set does not, the group is the largest subgroup found whose operations all do, and a note gives the group the full set would close into and its miss. The Schoenflies name is read from that same group: its order, the orders of its rotations, and the reflections and inversion among its improper operations. The name, the order and the largest miss therefore always describe one group, and the miss never exceeds the tolerance. Symmetrisation replaces every atom by the mean of its images over the group, g⁻¹ x_π(i), where each operation's matrix is the orthogonal polar factor that best carries the atoms onto their partners. It repeats, with the axes found again, until the atoms stop moving.

$$\mathbf x_i \leftarrow \frac{1}{|G|}\sum_{g\in G} \mathbf R_g^{\mathsf T}\,\mathbf x_{\pi_g(i)},\qquad \mathbf R_g = \mathbf H_g\left(\mathbf H_g^{\mathsf T}\mathbf H_g\right)^{-1/2},\qquad \mathbf H_g = \sum_i \mathbf x_{\pi_g(i)}\,\mathbf x_i^{\mathsf T}$$

positions about the centre of mass; π_g the permutation of operation g; R_g its matrix, refitted at each pass

SymbolMeaningIn CAPS
Gthe point group—
π_gatom i's partner under g—
R_gmatrix of operation g—

When to use it

Naming a molecule's symmetry before a QM or vibrational calculation, cleaning a drawn or embedded monomer, curative or cluster to exact symmetry, and checking a built cage or complex.

Source
core/src/pointgroup.cpp
Tested by
tests/test_pointgroup.cpp (water C2v, ammonia C3v, methane Td, benzene D6h, SF₆ Oh, a B₁₂ icosahedron Ih, staggered and eclipsed ethane D3d and D3h, H₂O₂ C2, CHFClBr C1, CO₂ D∞h and HCN C∞v, with the group orders 4, 6, 24, 24, 48, 120, 12, 12, 2, 1; methane and benzene with every atom moved by up to 0.04 Å symmetrised back to Td and D6h with the images meeting to 10⁻⁹ Å, equal bonds and the tetrahedral angle to 10⁻⁷°); tests/python/test_bindings.py
Departure from the reference
C_n is tested up to n = 8. Pair candidates are used up to 300 atoms and three-atom planes up to 60; a larger molecule is searched along its principal axes and atom directions only. A cell, if any, is ignored: the group is that of the atoms as they are.

References

  1. Beruski, O., Vidal, L. N., "Algorithms for computer detection of symmetry elements in molecular systems", J. Comput. Chem. 35, 290–299 (2014). doi:10.1002/jcc.23493

Copolymers of several units: terminal and penultimate models, drift with conversion

The order of the units along a chain is a Markov chain. In the terminal model the last unit decides the next: P_ij = (f_j / r_ij) / Σ_k (f_k / r_ik), with f the feed and r_ij = k_ii / k_ij the reactivity ratios (r_ii = 1, every r_ij ≥ 0). A ratio r_ij = 0 means unit i never adds its own monomer (maleic anhydride, for example): the units j with r_ij = 0 then share the whole row in proportion to their feed, so r1 = r2 = 0 gives a strictly alternating chain. For two units this is the Mayo–Lewis model, for more the Alfrey–Goldfinger and Walling–Briggs one. A transition matrix can also be given directly. In the penultimate model (two units) the last two decide: r1 = k111/k112 and r1′ = k211/k212 for a chain ending in A, r2 and r2′ for one ending in B. The copolymer composition is the stationary distribution of the chain (solved directly), the dyad and triad fractions are its joint probabilities along the chain, and the number-average run length of a unit a is F_a / Σ_(b≠a) D_ba. In a batch the faster monomer is used up first, so the feed drifts: the unreacted monomer M loses F_i dM of unit i, d f_i / d ln M = F_i − f_i, which is integrated by fourth-order Runge–Kutta in ln M up to the chosen conversion (for two units this reproduces the closed form of Meyer and Lowry). With drift between chains each chain is made at a conversion drawn evenly up to the final one, from the feed left then; with drift along the chain (living growth) position i of a chain belongs to conversion X (i + ½)/DP. The builder reports the composition, dyads, triads and run lengths of the cell it grew against the model.

$$\begin{gathered}P_{ij} = \frac{f_j / r_{ij}}{\sum_k f_k / r_{ik}}, \qquad \mathbf{F}\,\mathsf{P} = \mathbf{F}, \quad \sum_i F_i = 1, \qquad D_{ij} = F_i P_{ij}, \qquad \bar n_a = \frac{F_a}{\sum_{b \ne a} D_{ba}} \\ \frac{d f_i}{d \ln M} = F_i(\mathbf{f}) - f_i\end{gathered}$$

Mayo & Lewis 1944; Alfrey & Goldfinger 1944; Walling & Briggs 1945; Merz, Alfrey & Goldfinger 1946; Skeist 1946; Meyer & Lowry 1965

SymbolMeaningIn CAPS
f_ifeed fraction of monomer i—
r_ijreactivity ratio k_ii / k_ij—
P_ijprobability that unit j follows unit i—
F_icopolymer composition (stationary)—
D_ijdyad fraction—
n̄_anumber-average run length of unit aunits
Munreacted monomer, fraction of the start (conversion X = 1 − M)—

When to use it

SBR and NBR whose composition drifts in emulsion batches, EPDM and other terpolymers, gradient copolymers from living chains, and checking that a built cell holds the sequence statistics the chemistry implies before its properties are computed.

Source
core/src/polystats.cpp (terminal_model, transition_model, penultimate_model, composition_drift, sequence_statistics); polymer.cpp (chain_sequence, sequence_report)
Tested by
Copolymer.TerminalModelIsMayoLewis (composition and run lengths equal Mayo–Lewis to 1e-12 over 48 cases); Copolymer.TerminalModelZeroRatios (r1 = r2 = 0 alternates strictly, one zero ratio still equals Mayo–Lewis, a negative ratio is refused); Copolymer.TernaryIsAlfreyGoldfinger (three units equal the Alfrey–Goldfinger equation to 1e-12); Copolymer.PenultimateComposition (the Merz–Alfrey–Goldfinger composition to 1e-12; equal primed ratios give the terminal triads); Copolymer.DriftIsMeyerLowry (the integrated feed equals the Meyer–Lowry conversion to 1e-8, the cumulative composition closes the mass balance); Copolymer.BuiltChainsFollowTheModel (300 chains of 300 units: composition, dyads, triads and run lengths of terminal, given-matrix and penultimate chains within sampling error; drift along the chain)
Departure from the reference
the penultimate model and the drift need a feed (not a given matrix); the penultimate model is for two units; the drift assumes long chains formed at once (radical) or chains that live through the batch, not depropagation or a changing radical concentration

References

  1. Mayo, F. R., Lewis, F. M., "Copolymerization. I. A basis for comparing the behavior of monomers in copolymerization; the copolymerization of styrene and methyl methacrylate", J. Am. Chem. Soc. 66, 1594–1601 (1944). doi:10.1021/ja01237a052
  2. Alfrey, T., Goldfinger, G., "Copolymerization of systems of three and more components", J. Chem. Phys. 12, 322 (1944). doi:10.1063/1.1723949
  3. Walling, C., Briggs, E. R., "Copolymerization. III. Systems containing more than two monomers", J. Am. Chem. Soc. 67, 1774–1778 (1945). doi:10.1021/ja01226a047
  4. Merz, E., Alfrey, T., Goldfinger, G., "Intramolecular reactions in vinyl polymers as a means of investigation of the propagation step", J. Polym. Sci. 1, 75–82 (1946). doi:10.1002/pol.1946.120010202
  5. Skeist, I., "Copolymerization: the composition distribution curve", J. Am. Chem. Soc. 68, 1781–1784 (1946). doi:10.1021/ja01213a031

Graft copolymers: grafts grown with the backbone or onto an existing structure

Grafts are side chains of their own repeat units. Grown with the backbone (architecture graft), each backbone unit of the chosen kind carries a graft with a set probability, at most a set number per chain; the graft starts on the unit's atom marked with an atom class of 3 or more in its SMILES ([CH:3], the methine of a natural-rubber unit written [*]CC(C)=[CH:3]C[*]), replacing that atom's hydrogen, or on its head or tail atom when nothing is marked. The grafts have their own sequence kind and length, and grow once their backbone is complete, as comb side chains do. Grafted onto an existing structure (a cell, a chain or a molecule), the sites are atoms picked by number (a hydrogen stands for the atom it sits on), each optionally standing for every atom equivalent to it (same element, hydrogens, heavy neighbours and residue name); each candidate is kept with a probability, at least a set distance from the others, up to a set total. Each site gives up the hydrogen pointing into most room, and a chain grows from there along that hydrogen's direction while the structure is held fixed; a structure without a cell is put in a box with room around it. Molecules are renumbered by connectivity, so a graft belongs to the molecule it hangs on.

$$P(\text{graft on unit } u) = p, \qquad \lvert \mathbf{r}_i - \mathbf{r}_j \rvert \ge d_{\min} \ \text{for kept sites } i, j$$

construction rules; no physical model

SymbolMeaningIn CAPS
pgraft probability per eligible backbone unit (or per candidate site)—
d_minsmallest distance between graft sitesÅ

When to use it

NR-g-PMMA and PP-g-MA compatibilisers, long-chain branches added to a grown cell, grafting chains onto a filler's or a fibre's chosen atoms, interphases with tethered chains.

Source
core/src/polymer.cpp (Architecture::Graft in grow_chains), core/src/graft_chains.cpp (graft_chains, equivalent_atoms)
Tested by
Graft.GraftsGrowOnTheMarkedAtom (PMMA grafts on polyisoprene only on the marked methine, which gives up its hydrogen; at most the limit per chain); Graft.EquivalentSites (a CH2 of polyethylene stands for its 58 CH2 carbons); Graft.OntoAnExistingChain (four grafts at least 5 Å apart, the host's atoms unmoved, one hydrogen fewer per graft, one molecule; the same without a cell)
Departure from the reference
one graft per site atom unless more are asked for and it has the hydrogens; grafts are linear chains; the host is not relaxed while they grow (relax with push-off before dynamics)

Layer stacks: oblique cells, flip, shift, shared strain, kept volume

Each added layer can be turned upside down (180° about x, so its other face meets the layer below and its handedness is kept) and shifted in the plane to set its registry; the lateral mismatch can be shared by every layer instead of taken by the upper ones alone. Cells may be oblique: a and b anywhere in the xy plane, c along z. Each layer is turned about z so its a lies along x, and is then mapped onto the stack's lateral vectors by the in-plane linear map F that carries its repeated vectors (n_a a, n_b b) onto them. The strains along a and b and the change of the angle between them are reported. With the volume kept, a layer's thickness is scaled by 1/det F, so a layer stretched in the plane thins and one compressed thickens.

$$(x, y, z) \to (x,\, b - y,\, -z),\qquad A = \frac{1}{N}\sum_l n_l a_l,\qquad \mathbf F = \left[\mathbf T_A\ \mathbf T_B\right]\left[n_a\mathbf a\ \ n_b\mathbf b\right]^{-1},\qquad t' = \frac{t}{\det\mathbf F}$$

n_l the repeats that bring layer l nearest the cell; each layer then strained by A/(n_l a_l) − 1 (and the same along b); T_A, T_B the stack's lateral vectors, t a layer's thickness

SymbolMeaningIn CAPS
a_llayer l's own cell edgeÅ
n_lits repeats—
Athe stack's edgeÅ

When to use it

A film between two identical fibre or filler surfaces facing it with the same face; two crystals of close spacing (e.g. bilayers of 2D fillers) without putting all the strain on one; stacking registry (AB against AA).

Source
core/src/layers.cpp
Tested by
tests/test_layers.cpp Layers.AverageFlipAndShift (20 and 21 Å cells meet at 20.5 Å, ±2.5 % each; a flipped layer's top face at its bottom; a 1.5 Å shift exact); Layers.ObliqueAndKeepVolume (hexagonal 2.46 Å and 2.50 Å sheets, the second turned by 30° in its file: a hexagonal stack cell with γ = 120° to 10⁻⁹°, strains 2.46/2.50 − 1 along both axes, no shear, every atom in the cell; with the volume kept the second layer's thickness × (2.46/2.50)² equals its own to 10⁻¹²); tests/python/test_bindings.py
Departure from the reference
a shared strain strains a crystal too: check its stress after relaxing. Kept volume scales the thickness as an incompressible layer would (Poisson's ratio 1/2 in effect); a crystal's own response differs, so relax at constant pressure along z afterwards.

Rings, inserted atoms and joined pieces

Three sketcher edits that work in 3D. A ring of 3 to 8 atoms is fused onto a picked bond or made spiro on a picked atom. For a fused ring, one hydrogen of each bond atom on the same side makes way, and the new atoms complete a regular polygon with the bond as one side, in the plane of the bond and those hydrogens. For a spiro ring, two hydrogens of the atom make way (or, with one or none, its two open tetrahedral directions). The polygon lies in their plane, symmetric about their bisector, its side the mean covalent sum of the ring bonds. Six- to eight-rings start puckered by ±0.25 Å so the minimiser can leave the plane. The new atoms are written in ring order (O for an epoxide, N C=O C C for a γ-lactam, C C C N with Aromatic for a pyridine ring), hydrogens fill their valences, and UFF relaxes the new atoms with the two bond atoms. An inserted atom X goes into the bond i–j with both new bonds at covalent sums and the angle i–X–j tetrahedral. An open chain gives way, the smaller side moving out along the bond; in a ring, i and j stay and X sits off the bond away from the ring. A piece from another file is joined through two leaving atoms with one bond each, usually hydrogens. The piece is turned so its bond points back along the structure's, the new bond is set at the covalent sum, and the piece is turned about it to the torsion asked or, by default, to the turn with the largest closest contact.

$$R = \frac{L}{2\sin(\pi/n)},\qquad a = \frac{L}{2\tan(\pi/n)},\qquad d_{ij} = \sqrt{r_1^2 + r_2^2 - 2 r_1 r_2 \cos\theta_t},\quad \cos\theta_t = -\tfrac{1}{3},\qquad r_{AB} = r_A + r_B$$

n ring atoms; L the polygon side; R its circumradius and a its apothem; r₁ = r_i + r_X and r₂ = r_X + r_j from the covalent radii; d_ij the distance i–j after an insertion into an open chain

SymbolMeaningIn CAPS
nring atoms, 3–8—
Lpolygon side: |ij| fused, mean covalent sum spiroÅ
R, acircumradius and apothem of the polygonÅ
r_Acovalent radius of element AÅ
θ_tthe tetrahedral angle, 109.47°°

When to use it

Epoxide and cyclic carbonate groups on chains and fillers, lactams, cyclosiloxane rings for silicone networks, spiro and fused rings in curatives, one more sulfur in a polysulfide crosslink, a CH₂ or O put into a backbone, and a coupling agent, end group or side chain from its own file bonded onto a structure.

Source
core/src/ring_edit.cpp
Tested by
tests/test_ring_edit.cpp (ethane + O is ethylene oxide, C₂H₄O, the O at |CC| from both carbons before clean-up; a carbon six-ring on ethane is cyclohexane, a chair after UFF with ring torsions alternating in sign; C C C N aromatic on benzene is quinoline, C₉H₇N, with 11 aromatic bonds and 120° angles; four carbons spiro on cyclohexane give spiro[3.5]nonane, C₉H₁₆, a square of side 2r_C, and N C=O C C gives C₉H₁₅NO with one H on N; S into dimethyl disulfide gives C₂H₆S₃ with S–S = 2r_S and S–S–S = 109.47°, each side unchanged; C into cyclohexane gives C₇H₁₄ with the shared atoms fixed; two ideal methanes joined are staggered ethane, C–C = 2r_C, and a torsion asked is set to 10⁻⁹°); tests/python/test_bindings.py
Departure from the reference
Starting geometries only: polygons, covalent sums and the tetrahedral angle, then UFF where the edit cleans. Aromatic is offered for fused six-rings, and a ring nitrogen there takes no hydrogen (pyridine type). Insertion makes both new bonds single. A joined piece keeps its own geometry and charges; its cell is dropped.

References

  1. Cordero, B., Gómez, V., Platero-Prats, A. E., Revés, M., Echeverría, J., Cremades, E., Barragán, F., Alvarez, S., "Covalent radii revisited", Dalton Trans. , 2832–2838 (2008). doi:10.1039/b801115j

Dendrimers and hyperbranched molecules from AB_n units

A branching unit is a SMILES with its A site written [*:1] and its n B sites written [*:2]. A core has B sites only, an end group one A site, and a focal group one B site for the first unit when there is no core. Units are joined site to site in 3D: the two site atoms leave, the new bond is set at the covalent sum, and each unit is turned about it to the clearest position (the join of the ring tools). UFF then relaxes the molecule. A perfect dendrimer fills every B site, shell after shell. Slow monomer addition adds the units one at a time, each onto a B site drawn uniformly from all open ones, on the core too. Flory's statistics of AB_n polycondensation (equal reactivity, no cycles) make a molecule, seen from its focal unit, a Galton–Watson tree in which each B site reacts independently. A molecule of exactly N units is that tree conditioned on its size. It is drawn exactly: the site occupations are redrawn until N − 1 sites are used, and the sequence is rotated by the cycle lemma into a tree. The report gives the units per shell and by the number of B sites used. For AB₂ it also gives Frey's and Fréchet's degrees of branching. Presets: PAMAM on ethylenediamine (generation g has g + 1 shells), PPI on 1,4-diaminobutane (generation g has g shells) and bis-MPA polyester on trimethylolpropane.

$$\mathrm{DB}_{\mathrm{Frey}} = \frac{2D}{2D + L},\qquad \mathrm{DB}_{\mathrm{Fr\acute{e}chet}} = \frac{D + T}{D + T + L},\qquad \frac{dT}{dN} = 1 - \frac{2T}{F},\quad \frac{dL}{dN} = \frac{2T - L}{F},\quad \frac{dD}{dN} = \frac{L}{F}$$

D, L, T: AB₂ units with 2, 1, 0 B sites carrying a unit (end groups do not count); the limits are for large N. In slow addition each new unit turns a T into an L with chance 2T/F or an L into a D with chance L/F (F = 2T + L open sites, growing by one per unit), so the fractions settle at 1/3 each

SymbolMeaningIn CAPS
D, L, Tdendritic, linear and terminal units—
Nunits in the molecule—
Fopen B sites—
nB sites per unit—

When to use it

Dendrimer and hyperbranched modifiers, curing agents and fillers for rubber and epoxy (PAMAM, PPI, bis-MPA polyesters), and hyperbranched molecules whose degree of branching matters for viscosity and end-group density.

Source
core/src/dendrimer.cpp
Tested by
tests/test_dendrimer.cpp (PAMAM generation 0 is C₂₂H₄₈N₁₀O₄ and generation 1 C₆₂H₁₂₈N₂₆O₁₂ with 4 and 8 units per shell and both DB 1; PPI generation 1 (DAB-Am-4) is C₁₆H₄₀N₆ and generation 2 C₄₀H₉₆N₁₄, relaxed with no two atoms within 0.9 Å; eight acetyl ends make PAMAM G0 C₃₈H₆₄N₁₀O₁₂; Flory AB₂ trees of 4000 units have T = D + 1 and DB 0.5 ± 0.03; slow addition has T = D + 1 and DB 2/3 ± 0.02; 20-unit bis-MPA molecules by either growth are C₁₀₀H₁₆₂O₆₁). The PAMAM masses for generations 0 to 4 come out at 516.7, 1429.9, 3256.2, 6909.0 and 14214.5 g/mol; tests/python/test_bindings.py
Departure from the reference
Geometry from joining and a UFF relaxation, not a sampled conformation of the molecule in solvent. Flory growth has no core. For n > 2 the report gives the units by B sites used and no degree of branching. Sites are unreactive towards each other: no intramolecular cycles, no back-biting or side reactions. Molecules are limited to 15 000 atoms.

References

  1. Tomalia, D. A., Baker, H., Dewald, J., Hall, M., Kallos, G., Martin, S., Roeck, J., Ryder, J., Smith, P., "A new class of polymers: starburst-dendritic macromolecules", Polym. J. 17, 117–132 (1985). doi:10.1295/polymj.17.117
  2. de Brabander-van den Berg, E. M. M., Meijer, E. W., "Poly(propylene imine) dendrimers: large-scale synthesis by heterogeneously catalyzed hydrogenations", Angew. Chem. Int. Ed. Engl. 32, 1308–1311 (1993). doi:10.1002/anie.199313081
  3. Ihre, H., Hult, A., Söderlind, E., "Synthesis, characterization, and $^1$H NMR self-diffusion studies of dendritic aliphatic polyesters based on 2,2-bis(hydroxymethyl)propionic acid and 1,1,1-tris(hydroxyphenyl)ethane", J. Am. Chem. Soc. 118, 6388–6395 (1996). doi:10.1021/ja954171t
  4. Flory, P. J., "Molecular size distribution in three dimensional polymers. VI. Branched polymers containing A–R–B$_f-1$ type units", J. Am. Chem. Soc. 74, 2718–2723 (1952). doi:10.1021/ja01131a008
  5. Hawker, C. J., Lee, R., Fréchet, J. M. J., "One-step synthesis of hyperbranched dendritic polyesters", J. Am. Chem. Soc. 113, 4583–4588 (1991). doi:10.1021/ja00012a030
  6. Hölter, D., Burgath, A., Frey, H., "Degree of branching in hyperbranched polymers", Acta Polym. 48, 30–35 (1997). doi:10.1002/actp.1997.010480105
  7. Hanselmann, R., Hölter, D., Frey, H., "Hyperbranched polymers prepared via the core-dilution/slow addition technique: computer simulation of molecular weight distribution and degree of branching", Macromolecules 31, 3790–3801 (1998). doi:10.1021/ma971197r
  8. Devroye, L., "Simulating size-constrained Galton–Watson trees", SIAM J. Comput. 41, 1–11 (2012). doi:10.1137/090766632
  9. Dvoretzky, A., Motzkin, Th., "A problem of arrangements", Duke Math. J. 14, 305–313 (1947). doi:10.1215/S0012-7094-47-01423-3
  10. Cordero, B., Gómez, V., Platero-Prats, A. E., Revés, M., Echeverría, J., Cremades, E., Barragán, F., Alvarez, S., "Covalent radii revisited", Dalton Trans. , 2832–2838 (2008). doi:10.1039/b801115j
  11. Rappé, A. K., Casewit, C. J., Colwell, K. S., Goddard, W. A., Skiff, W. M., "UFF, a full periodic table force field for molecular mechanics and molecular dynamics simulations", J. Am. Chem. Soc. 114, 10024–10035 (1992). doi:10.1021/ja00051a040