First Successful Run
This page gives a small first calculation for a new user who wants to check that PyAR works before learning all command-line options.
The example builds a small water dimer search. It is simple, fast, and easy to inspect visually.
1. Create a working folder
mkdir pyar_first_run
cd pyar_first_run
2. Create the input file
Create a file named water.xyz with a text editor. Put the following lines
in the file:
3
water
O 0.000000 0.000000 0.000000
H 0.758602 0.000000 0.504284
H -0.758602 0.000000 0.504284
3. Run a small job
Run a small solvation-style growth job with xTB:
pyar-cli solvate water.xyz water.xyz --software xtb -ss 1 -N 4 -c 0 0 -m 1 1
If xTB is not installed, PyAR should report that the executable is missing. See Installation and xTB Guide for backend setup.
4. Inspect the output
After the run, look for folders such as:
solvation/
state.json
state/
geometries/
aggregate_002/
For most users, the important files are the selected XYZ structures from the final growth or aggregate directory. Open those XYZ files in a molecular viewer that supports XYZ files.
5. Make an energy table
If you have a folder of selected structures, print their relative energies with:
pyar-energy-table selected/*.xyz
If your selected structures are in another directory, use that path instead. For example:
pyar-energy-table aggregate_002/selected/*.xyz
6. What success looks like
A successful first run should give you:
no missing-executable error
one or more output XYZ files
an energy table if the selected XYZ files contain energy information
a
state.jsonfile recording restart and provenance information
7. What the common options mean
Option |
Meaning |
|---|---|
|
Use xTB as the computational backend. |
|
Generate four trial structures or orientations at each placement step. |
|
Add one solvent or growth unit around the starting structure. |
|
Use charge 0 for the two input fragments. |
|
Use singlet multiplicity for the two input fragments. |
Next steps
After this first run, try the task pages:
Aggregation and Cluster Search for clusters and noncovalent complexes
Solvation and Growth Around a Core for adding molecules or ligands around a core
Reaction Search for AFIR-style reaction searches
Bond Scan for a simple distance-coordinate probe