ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki
ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki
ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Parameters<br />
<strong>ASE</strong> <strong>Manual</strong>, <strong>Release</strong> 3.6.1.2828<br />
The description of the parameters can be found in the Gromacs manual:<br />
http://www.gromacs.org/Documentation/<strong>Manual</strong><br />
except these parameters should be fixed: integrator = ‘md’, nsteps = ‘0’<br />
and extra (ie non-gromacs) parameter:<br />
init_structure_file: str The name of the initial structure file. The structure file should be in .gro format because<br />
pdb reading in <strong>ASE</strong> is not very good.<br />
Example1: Geometry Optimization of a histidine molecule<br />
Initial pdb coordinates (file his.pdb):<br />
COMPND HIS HISTIDINE<br />
REMARK HIS Part of HIC-Up: http://xray.bmc.uu.se/hicup<br />
REMARK HIS Extracted from PDB file pdb1wpu.ent<br />
HETATM 1 N HIS 4234 0.999 -1.683 -0.097 1.00 20.00<br />
HETATM 2 CA HIS 4234 1.191 -0.222 -0.309 1.00 20.00<br />
HETATM 3 C HIS 4234 2.641 0.213 -0.105 1.00 20.00<br />
HETATM 4 O HIS 4234 3.529 -0.651 -0.222 1.00 20.00<br />
HETATM 5 CB HIS 4234 0.245 0.546 0.619 1.00 20.00<br />
HETATM 6 CG HIS 4234 -1.200 0.349 0.280 1.00 20.00<br />
HETATM 7 ND1 HIS 4234 -1.854 -0.849 0.470 1.00 20.00<br />
HETATM 8 CD2 HIS 4234 -2.095 1.176 -0.310 1.00 20.00<br />
HETATM 9 CE1 HIS 4234 -3.087 -0.752 0.006 1.00 20.00<br />
HETATM 10 NE2 HIS 4234 -3.258 0.467 -0.474 1.00 20.00<br />
HETATM 11 OXT HIS 4234 2.889 1.404 0.141 1.00 20.00<br />
REMARK HIS ENDHET<br />
First generate the initial structure in gromacs format (.gro)<br />
pdb2gmx -f his.pdb -o hish.gro -ff oplsaa -water tip3p<br />
Then setup a periodic simulation box<br />
editconf_d -f hish.gro -o hishBOX.gro -box 3 3 3<br />
Finally, relax the structure: The sample file:<br />
#!/usr/bin/env python<br />
""" An example for using gromacs calculator in ase.<br />
Atom positions are relaxed.<br />
A sample call:<br />
"""<br />
./gromacs_example_relax.py hishBOX.gro<br />
from ase import Atoms<br />
from ase.visualize import view<br />
from ase.calculators.gromacs import Gromacs<br />
from ase.optimize import BFGS<br />
from ase.optimize.bfgslinesearch import BFGSLineSearch<br />
from ase.optimize import MDMin<br />
from ase.optimize.sciopt import SciPyFminBFGS, SciPyFminCG<br />
from ase.optimize.sciopt import SciPyFmin<br />
from ase.optimize.sciopt import SciPyOptimizer<br />
import sys<br />
from ase.io import read, write<br />
from ase import units<br />
7.14. Calculators 135