Examples¶
In this chapter we present example PLAMS scripts covering various applications, from very simple tasks (like running the same calculation for multiple molecules) to more advanced dynamic workflows.
The example scripts use computational engines from the Amsterdam Modeling Suite, and you will need a license to run them. Contact license@scm.com for further questions.
In order to run the examples, the AMSBIN
environment variable should be properly set. You can test this by typing $AMSBIN/amspython -h
in a terminal: this should print the help message. If this is not the case (e.g. you get ‘No such file or directory’), you need to set up the environmental variable $AMSBIN
(see the Linux Quickstart guide for details).
Getting Started¶
Molecule analysis¶
- PLAMS Molecule: store/load many file formats, convert to/from ASE, RDKit, pymatgen, and more
- Extract frames from ams.rkf trajectory
- Table molecule counts and bond count from reactive MD ams.rkf
- Molecule substitution: Attach ligands to substrates
- Convert to ams.rkf trajectory with bond guessing
- Correlation plots for output from different AMS jobs
- Convert RKF to DCD while mapping all atoms into molecules
- Hydrogen bonds from MD
MD trajectory analysis¶
Benchmarks¶
Workflows¶
COSMO-RS and property prediction¶
For more examples, see the COSMO-RS documentation.
Packmol and AMS-ASE interfaces¶
ParAMS, Simple Active Learning, and pyZacros¶
See the respective documentation pages:
Other AMS calculations¶
Pymatgen¶
Pre-made recipes¶
The examples presented in here are simple job types built using basic PLAMS elements.
They are shipped with PLAMS in the recipes
subpackage and can be directly used in your scripts.
In other words, the code presented there is already included in PLAMS and (unlike examples from two other sections) does not need to be copied to your script.
The source code of recipes
modules is presented here to demonstrate how easy it is to build on top of existing PLAMS elements and create your own fully customized job types.
- ADF: Task COSMO-RS Compound
- Generating multiple conformers for use with COSMO-RS
- AMS Molecular Dynamics PLAMS jobs
- ADF fragment job
- Reorganization Energy
- NBO with ADF
- Numerical gradients
- Numerical Hessian
- Vibronic Density of States using the AH-FC method
- Vibronic Density of States with ADF
- Reuse force field atom types and charges