Maqola manzili: https://www.biodasturchi.uz/posts/2023-04-23-gmx-introduction.html
sudo apt install gromacs
locate spc216.gro
cp /usr/share/gromacs/top/spc216.gro ./
-
Download Gromacs from: https://manual.gromacs.org/current/download.html
-
CUDA TOOLKIT:
https://developer.nvidia.com/cuda-downloads
Follow the steps and copy the commands
-
Gromacs Compilation Process
tar xfz gromacs-2020.2.tar.gz
cd gromacs-2020.2
mkdir build
cd build
cmake .. -DGMX_GPU=CUDA -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda
make
make check
sudo make install
# Add this code to your .bashrc or .bashrc_profile file:
source /usr/local/gromacs/bin/GMXRC
# https://manual.gromacs.org/current/install-guide/index.html
gmx pdb2gmx -f spc216.gro
default OPLS -> 16
default SPC -> 6
gmx solvate -cs conf.gro -o out_conf.gro -box 2.5 -p topol.top
min.mdp fayl kerak
gmx grompp -f min.mdp -c out_conf.gro -p topol.top -o min -maxwarn
gmx mdrun -deffnm min -v
pr.mdp fayli kerak
gmx grompp -v -f pr.mdp -c min.gro -p topol.top -o pr -maxwarn 2
gmx mdrun -v -deffnm pr
gmx grompp -v -f nvt.mdp -c pr.gro -p topol.top -o nvt -maxwarn 2
gmx mdrun -v -deffnm nvt
gmx grompp -f npt.mdp -c nvt.gro -p topol.top -o npt -maxwarn 2
gmx mdrun -deffnm npt
gmx trjconv -s npt.tpr -f npt.trr -o frames.pdb -pbc mol
gmx energy -f npt.edr -o temp.xvg
xmgrace temp.xvg
gmx energy -f npt.edr -o press.xvg