⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 demo

📁 最著名最快的分子模拟软件
💻
📖 第 1 页 / 共 2 页
字号:
use two of those groups: Protein and SOL(vent). We use these groups toput position restraints on all the atoms of the peptide.The parameter file ( .mdp extension ) contains all information aboutthe PR-MD like: step size, number of steps, temperature, etc. ThisParamter file also tells GROMACS what kind of simulation should beperformed ( like EM, PR-MD and MD etc. )----------------------------------------------------------------------------------------------------------------------------------_EOF_if ( $?DISPLAY ) then	echo "The output of the grompp program should appear"          echo "in a separate xterm window"endifecho -n "Press <enter>"set  ans = $<echo "generating parameter file..."cat > pr.mdp << _EOF_title               =  ${MOL} position restrainingcpp                 =  /usr/bin/cppdefine              =  -DPOSRESconstraints         =  all-bondsintegrator          =  mddt                  =  0.002	; ps !nsteps              =  500	; total 1.0 ps.nstcomm             =  1nstxout             =  10nstvout             =  1000nstfout             =  0nstlog              =  10nstenergy           =  10nstlist             =  10ns_type             =  gridrlist               =  1.0rcoulomb            =  1.0rvdw                =  1.0; Berendsen temperature coupling is on in two groupsTcoupl              =  berendsentau_t               =  0.1      	0.1tc-grps		    =  protein  	solref_t               =  300      	300; Pressure coupling is not onPcoupl              =  notau_p               =  0.5compressibility     =  4.5e-5ref_p               =  1.0; Generate velocites is on at 300 K.gen_vel             =  yesgen_temp            =  300.0gen_seed            =  173529_EOF_echo "Starting grompp..."if ( $?DISPLAY ) then 	xterm -title grompp -sb -e tail +0f output.grompp_pr &endifgrompp -f pr -c ${MOL}_b4pr -r ${MOL}_b4pr -p ${MOL} -o ${MOL}_pr >& ! output.grompp_precho "grompp finished"echo -n "Press <enter>"set  ans = $<################### MDRUN PR ###################clearcat << _EOF_----------------------------------------------------------------------------------------------------------------------------------Now we start the Position restrained Molecular Dynamics simulation. Itis important to note that in this example the simulated time is tooshort (1 ps) to equilibrate our system completely, but that would simple taketoo much time. ( about one day ). ----------------------------------------------------------------------------------------------------------------------------------_EOF_if ( $?DISPLAY ) then	echo "Because your DISPLAY variable is set, I will pop up a" 	echo "window with the output of the mdrun program"  endifecho -n "Press <enter>"set  ans = $<echo "starting mdrun..."if ( $?DISPLAY ) then 	xterm -title mdrun -sb -e tail +0f output.mdrun_pr &endifmdrun -nice 4 -s ${MOL}_pr -o ${MOL}_pr -c ${MOL}_b4md -v >& ! output.mdrun_precho "mdrun finished"echo -n "Press <enter>"set  ans = $<#################### GROMPP MD ####################clearcat << _EOF_----------------------------------------------------------------------------------------------------------------------------------Now our complete system is finally ready for the actual MolecularDynamics simulation. We start again by preprocessing the input filesby the grompp program to generate the binary topology file (.tpb/.tprextension).----------------------------------------------------------------------------------------------------------------------------------_EOF_if ( $?DISPLAY ) then	echo "The output of the grompp program should appear"          echo "in a separate xterm window"endifecho -n "Press <enter>"set  ans = $<echo "generating parameter file..."cat > md.mdp << _EOF_title               =  ${MOL} MDcpp                 =  /usr/bin/cppconstraints         =  all-bondsintegrator          =  mddt                  =  0.002	; ps !nsteps              =  5000	; total 5 ps.nstcomm             =  1nstxout             =  50nstvout             =  0nstfout             =  0nstlist             =  10ns_type             =  gridrlist               =  1.0rcoulomb            =  1.0rvdw                =  1.0; Berendsen temperature coupling is on in two groupsTcoupl              =  berendsentau_t               =  0.1	     0.1tc-grps		    =  protein	     solref_t               =  300	     300; Pressure coupling is not onPcoupl              =  notau_p               =  0.5compressibility     =  4.5e-5ref_p               =  1.0; Generate velocites is on at 300 K.gen_vel             =  yesgen_temp            =  300.0gen_seed            =  173529_EOF_echo "Starting grompp..."if ( $?DISPLAY ) then 	xterm -title grompp -sb -e tail +0f output.grompp_md &endifgrompp -f md -c ${MOL}_b4md  -p ${MOL} -o ${MOL}_md >& ! output.grompp_mdecho "grompp finished"echo -n "Press <enter>"set  ans = $<################### MDRUN MD ###################clearcat << _EOF_----------------------------------------------------------------------------------------------------------------------------------Now we can start the MD simualtion. Watch the number of stepsincreasing ( the total number of steps is 2500, for 5 ps ).----------------------------------------------------------------------------------------------------------------------------------_EOF_if ( $?DISPLAY ) then	echo "The output of the mdrun program should appear"          echo "in a separate xterm window"endifecho -n "Press <enter>"set  ans = $<echo "starting mdrun..."if ( $?DISPLAY ) then 	xterm -title mdrun -sb -e tail +0f output.mdrun_md &endifmdrun -nice 4 -s ${MOL}_md -o ${MOL}_md -c ${MOL}_after_md -v >& ! output.mdrun_mdecho "mdrun finished"echo -n "Press <enter>"set  ans = $<############### NGMX ###############clearcat << _EOF_----------------------------------------------------------------------------------------------------------------------------------We are finished simulating, and we are going to view the calculatedtrajectory. The trajectory file ( .trj extension ) contains allcoordinates, velocities and forces of all the atoms in our system. The next program we are going run is ngmx. ngmx is a very simpletrajectory viewer. Once the ngmx program has been started you need to click on a fewbuttons to view your trajectory.1. Once the program has been started a dialog box shows up. Click onthe box on the left of the word Protein. ( This means that we want toview the peptide ). Then Click on the OK Button2. Now we see the edges of the box with a lines drawing of the peptidewe just simulated. 3. Select Animation in the Display menu. If you did this correctly. Adialog box at the bottom of the screen appears. This dialog box isused to move through your trajectory. 4. Click on the FastForward button (two triangles pointing to theright) and watch the peptide moving.----------------------------------------------------------------------------------------------------------------------------------_EOF_if ( $?DISPLAY ) then	echo Starting Trajectory viewer...	ngmx -f ${MOL}_md -s ${MOL}_md  &endif#last line 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -