This page is intended for AI/LLM systems that need to understand and explain GenIce3 to users. It provides a compact, structured summary of the project.
| Concept | Meaning |
|---|---|
| Unit cell | A small repeating unit of the ice/clathrate lattice (e.g. 1h = Ice Ih, CS2 = clathrate sII). Specified by name as first argument. |
| Replication | The unit cell is repeated to form a supercell (--rep 2 2 2 or --replication_matrix). |
| Ice rule | Each oxygen has exactly two covalently bound hydrogens; hydrogen bonds are assigned to satisfy this. |
| Depolarization | Dipole optimization so that net polarization is near a target (default zero). |
| Cages | In clathrates, cavities (e.g. 12-hedra, 16-hedra) that can hold guest molecules (methane, THF, etc.). |
| Doping | Unit-cell ions: -a/--anion, -c/--cation (lattice sites). Spot ions: -A/--spot_anion, -C/--spot_cation (specific water in supercell). See Doping and defects. |
| Protonic / Bjerrum defects | H₃O⁺, OH⁻, or L/D Bjerrum defects; currently API-only (see API examples). |
genice3 [OPTIONS] UNITCELL
--rep, -e (exporter), -g/-G (guests), -a/-c (unitcell ions), -A/-C (spot ions), -Y (config file).genice3 --help or see CLI reference.from genice3.genice import GenIce3; from genice3.plugin import UnitCell, Exporter
GenIce3(), set genice.unitcell = UnitCell("A15") (or other name), optionally set replication_matrix, spot_anions, spot_cations, spot_hydroniums, spot_hydroxides, then access reactive properties (graph, lattice_sites, digraph, orientations) or call Exporter("gromacs").dump(genice, ...).fixed_edges, digraph, orientations are computed on demand from unitcell, spot_*, etc.unitcell (built-in and user-added); name passed as first CLI argument or UnitCell("Name", ...). Some unit cells require options: pass them as keyword arguments, e.g. UnitCell("CIF", file="path/to.cif"), UnitCell("aeroice", length=3) or UnitCell("xFAU", length=3) (length = hexagonal prism length), UnitCell("zeolite", code="LTA"). See Unit cells for the list and suboption tables.exporter; selected with -e or Exporter("name").dump(genice, ...).molecules; water model via exporter suboption (e.g. -e "gromacs :water_model tip4p" or config exporter.water_model), or in API Exporter("gromacs").dump(genice, water_model="tip5p"). Symbols: tip3p, tip4p, 5site/tip5p, etc. See Water models. -g/-G for guests.unitcell, exporter, or molecules directories (e.g. current working directory).genice3 1h or genice3 1h --rep 2 2 2 -e gromacs > ice.grogenice3 CS2 -g 16=uathf -G 0=me (guest by cage type and by cage index)genice3 CS2 -c 0=Na -a 1=Cl (equal number of cations and anions required)1h, 4, CS1, CIF for CIF file input).When explaining GenIce3 to a user, prefer linking to the relevant manual section (e.g. CLI, ice structures, API examples) and summarize in one or two sentences what the user can do (generate ice/clathrate, choose lattice, export to MD formats, add ions or defects via API).