CO₂ in a CC3 cage
Does the CC3 cage bind CO₂ more strongly than N₂ or CH₄, and does confinement change the guest? The model is the 168-atom cage C₇₂H₈₄N₁₂ with one guest at the cavity center and the host coordinates frozen. All energies are g-xTB on an Apple M4 Max GPU.
Build script · Run script · Calculation records
Build the model
Section titled “Build the model”The host comes from CCDC 991214 / NODVIN with the solvent removed.
The CIF carries a padding cell, so set_pbc(False) selects an isolated molecule.
The build step writes the host, the three guests and the CO₂ complex as extxyz files. It uses no calculator.
from atomli.build import moleculefrom atomli.io import read, write
host = read("cc3-nodvin-991214-host.cif")host.set_pbc(False)host.set_positions(host.get_positions() - host.get_positions().mean(axis=0))
guest = molecule("CO2") # placed at the origin, the host centerwrite("cc3-host-start.extxyz", host)CC3 host with a CO₂ guest at the cavity center, before optimization
Calculate
Section titled “Calculate”The run step reads those files. It relaxes the empty host to a maximum force below 0.05 eV/Å and each free guest below 0.002 eV/Å. It then places each relaxed guest at the host center, freezes the 168 host atoms and relaxes the guest to 0.002 eV/Å:
from atomli.calculators import XTBfrom atomli.constraints import FixAtomsfrom atomli.optimize import BFGS
complex_atoms.calc = XTB(method="gxtb", device="gpu")complex_atoms.set_constraint(FixAtoms(indices=list(range(168))))BFGS(complex_atoms).run(fmax=0.002, steps=500)The binding energy uses the same g-xTB settings for all three terms:
Host optimization trajectory (29 frames)
GPU optimization of the empty CC3 host
Results
Section titled “Results”g-xTB binding energies of CO₂, N₂ and CH₄ in the frozen CC3 host
| Guest | Electronic binding energy (eV) |
|---|---|
| CO₂ | −0.4163 |
| N₂ | −0.2789 |
| CH₄ | −0.2224 |
CO₂ lies 0.137 eV below N₂. Each value is one optimized pose in the same frozen host. The optimized CO₂ stays linear (O–C–O angle 179.995°) with C–O distances of 1.156 and 1.150 Å. In the cage the carbon charge is +0.673 e against +0.654 e for the free molecule, and the oxygens are −0.363 and −0.314 e against −0.327 e each. The labels in the viewer show these g-xTB charges.
Optimized CO₂ in the CC3 cage with g-xTB charges
Guest trajectory and force convergence
Constrained CO₂ optimization trajectory in the CC3 cage
Energy and maximum force over the CO₂ optimization steps
The ranking and the small charge shift indicate weak confinement in this model. They do not show covalent CO₂ activation or guest selectivity: each guest has one centered starting orientation, the host is frozen, and solvent, host motion, thermal sampling and association entropy are omitted.
Reproduce
Section titled “Reproduce”python python/co2-cage-build.py --output modelspython python/co2-cage-run.py --models models --output cc3-results