# CHARMM-Gui Script

**URL:** <https://gromacs.bioexcel.eu/t/charmm-gui-script/525>\
**Category:** User discussions\
**Created:** [July 19, 2020, 9:16am UTC](https://gromacs.bioexcel.eu/t/charmm-gui-script/525 "2020-07-19T09:16:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![veerubiotech](https://avatars.discourse-cdn.com/v4/letter/v/e480ec/32.png) [@veerubiotech](https://gromacs.bioexcel.eu/u/veerubiotech)\
**Post date:** [July 19, 2020, 9:16am UTC](https://gromacs.bioexcel.eu/t/charmm-gui-script/525/1 "2020-07-19T09:16:40Z")

</div>

GROMACS version:2020.2  
GROMACS modification: No  
Here post your question  
Dear All,  
I am naive and learning Gromacs simulation. I prepared inputs from CHARMM-Gui. I got the following script from charmm-gui. It basically runs one cycle of minimization and equilibration. finally 10 cycle of md production, each for 1ns. as i understood, the new cycle takes input from previous cycle. so is it considered 10ns simulation at the end of 10th cycle? Because each cycle continues from previous cycle. if answer is yes, then how can i get .xtc or .tpr files for 10 ns to plot rmsd? and if answer is no, then whats the purpose of running 10 production cycle. Thank you  
Script is here-

#!/bin/cshs

# 

# Generated by CHARMM-GUI ([http://www.charmm-gui.org](http://www.charmm-gui.org))

# This folder contains GROMACS formatted CHARMM36 force fields, a pre-optimized PDB structure, and GROMACS inputs.

# All input files were optimized for GROMACS 2019.2 or above, so lower version of GROMACS can cause some errors.

# We adopted the Verlet cut-off scheme for all minimization, equilibration, and production steps because it is

# faster and more accurate than the group scheme. If you have a trouble with a performance of Verlet scheme while

# running parallelized simulation, you should check if you are using appropriate command line.

# For MPI parallelizing, we recommand following command:

# mpirun -np $NUM\_CPU gmx mdrun -ntomp 1

# Minimization

# In the case that there is a problem during minimization using a single precision of GROMACS, please try to use

# a double precision of GROMACS only for the minimization step.

# step4.0

gmx grompp -f step4.0\_minimization.mdp -o step4.0\_minimization.tpr -c step3\_input.gro -r step3\_input.gro -p topol.top -maxwarn 1  
gmx\_d mdrun -v -deffnm step4.0\_minimization

# Equilibration

# step4.1

gmx grompp -f step4.1\_equilibration.mdp -o step4.1\_equilibration.tpr -c step4.0\_minimization.gro -r step3\_input.gro -p topol.top  
gmx mdrun -v -deffnm step4.1\_equilibration

# Production

set cnt = 1  
set cntmax = 10

while ( {cnt} \<= {cntmax} )  
if ( {cnt} == 1 ) then gmx grompp -f step5\_production.mdp -o step5\_{cnt}.tpr -c step4.1\_equilibration.gro -p topol.top  
gmx mdrun -v -deffnm step5\_{cnt} else @ pcnt = {cnt} - 1  
gmx grompp -f step5\_production.mdp -o step5\_{cnt}.tpr -c step5\_{pcnt}.gro -t step5\_{pcnt}.cpt -p topol.top gmx mdrun -v -deffnm step5\_{cnt}  
endif  
@ cnt += 1  
end

---

<div class="post-metadata">

**Author:** ![veerubiotech](https://avatars.discourse-cdn.com/v4/letter/v/e480ec/32.png) [@veerubiotech](https://gromacs.bioexcel.eu/u/veerubiotech)\
**Post date:** [July 19, 2020, 9:20am UTC](https://gromacs.bioexcel.eu/t/charmm-gui-script/525/2 "2020-07-19T09:20:17Z")

</div>

> [@veerubiotech](#):
>
> Missing superscript or subscript argument{cnt} == 1 ) then gmx grompp -f step5\_production.mdp -o step5\_

Missing superscript or subscript argument==$

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [July 19, 2020, 10:52am UTC](https://gromacs.bioexcel.eu/t/charmm-gui-script/525/3 "2020-07-19T10:52:38Z")

</div>

> [@veerubiotech](#):
>
> so is it considered 10ns simulation at the end of 10th cycle?

Yes.

> [@veerubiotech](#):
>
> Because each cycle continues from previous cycle. if answer is yes, then how can i get .xtc or .tpr files for 10 ns to plot rmsd?

Use `trjcat` to concatenate trajectories. Use any `.tpr` file for analysis that makes sense for what you want to compute (e.g. if you want RMSD relative to the crystal structure, use the `.tpr` file from energy minimization, which has the original coordinates; if you want RMSD relative to the equilibrated coordinates, use the first production `.tpr` as the reference).

---

<div class="post-metadata">

**Author:** ![veerubiotech](https://avatars.discourse-cdn.com/v4/letter/v/e480ec/32.png) [@veerubiotech](https://gromacs.bioexcel.eu/u/veerubiotech)\
**Post date:** [July 19, 2020, 10:54am UTC](https://gromacs.bioexcel.eu/t/charmm-gui-script/525/4 "2020-07-19T10:54:08Z")

</div>

Thank you Dr Jalekul for quick response.

Best  
Veeru

---

<div class="post-metadata">

**Author:** ![newbie](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/newbie/32/283_2.png) [@newbie](https://gromacs.bioexcel.eu/u/newbie)\
**Post date:** [July 19, 2020, 5:55pm UTC](https://gromacs.bioexcel.eu/t/charmm-gui-script/525/5 "2020-07-19T17:55:56Z")

</div>

Hi.  
I think you can help me with my last topic.  
My question is some thing about increasing radius of carbon and using Charmm gui…
