Skip to content

API Reference

AutoPoly's public API, generated from the source docstrings.

Core classes

Class Module Purpose
System AutoPoly.core.system Output directory and path management
Polymer AutoPoly.models.polymer Polymer chains from complement SMILES sequences
Molecule AutoPoly.models.molecule Small molecules (solvents, additives)
generate AutoPoly.pipeline.workflow One-shot pipeline: geometry → typing → packing → LAMMPS files

Coarse-grained

Class Module Purpose
BeadSpringPolymer AutoPoly.models.bead_spring Direct LAMMPS data files for bead-spring models
BeadType / AngleType AutoPoly.models.bead_spring Bead species and angle parameters
MCConfig / SAWConfig AutoPoly.models.bead_spring Generation and equilibration tuning

Nanocomposites

Class Module Purpose
Nanoparticle AutoPoly.nanoparticles Finite inorganic particle (material, phase, shape, surface, motion, inorganic FF)
Grafting AutoPoly.nanoparticles.grafting Covalently grafted chains on silica
CGFiller AutoPoly.nanoparticles.cg Coarse-grained filler for BeadSpringSystem
get_material / MaterialSpec AutoPoly.materials Material registry and capability states
qualification_matrix AutoPoly.materials.qualification md_ready combinations and their evidence
NanocompositePacking AutoPoly.packing Fillers-first, obstacle-aware packing configuration
run_smoke AutoPoly.pipeline.smoke Short LAMMPS health check of a generated project

Building blocks

Module Purpose
AutoPoly.monomers.monomer_generator SMILES → moltemplate .lt monomer templates
AutoPoly.mc Monte Carlo placement: collision detection, SAW chain growth
AutoPoly.core.exceptions Exception hierarchy

RDKit-dependent modules

Polymer, Molecule, generate, MonomerGenerator, and mc require RDKit. System and BeadSpringPolymer work without it.