Integrating simulators with ASE

To quickly integrate simulators (e.g., XTB, ABINIT, BigDFT, LAMMPS, etc.) and use them in Python within SAMSON, you can use the Atomic Simulation Environment (ASE) package. This allows you to perform interactive and scripted calculations, simulate chemical reactions, etc. More…

More

Creating replicas of structures

To create replicas of structures using SAMSON’s Python API, call their clone() function. You can then programatically edit these structures. The example below shows how to start from a single nanotube to create a model of a nanotube “fabric” through…

More

Accessing the data graph in Python

To efficiently manipulate nodes (atoms, bonds, side chains, molecules, etc.), use node indexers returned by the SAMSON.getNodes function applied to a Node Specification Language (NSL) expression. For example, SAMSON.getNodes(‘node.type atom’) returns an indexer containing all atoms in the active document.…

More

Create molecules using Python

To create molecules, Python bindings give you access to all modeling capabilities from SAMSON’s C++ core. Add atoms, bonds, molecules, crystals, automatically find covalent bonds, add hydrogens, etc., and minimize. All in a few lines. Use the Code Editor to…

More