Writing /users/jbklauda/pub/wiki/data/cache/6/6193a558dc90ed4c190004bf67ecff70.captchaip failed
simulating_hydrocarbon_mixtures
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| simulating_hydrocarbon_mixtures [2018/01/12 16:27] – edit | simulating_hydrocarbon_mixtures [2018/05/31 14:13] (current) – admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | **(Page is under construction. Editing in progress)** | ||
| - | **(The files mention below can be found at https:// | + | **(The files mention below can be found at here {{instructions_manual.zip}} )** |
| **__A) Generating the required files for a molecule (Example: Cyclohexane)__** | **__A) Generating the required files for a molecule (Example: Cyclohexane)__** | ||
| Line 40: | Line 39: | ||
| - | **__C) How to Access | + | **__C) How to Access |
| 1. Download WinSCP from https:// | 1. Download WinSCP from https:// | ||
| -- WinSCP allows you to upload files to and download files from Deep Thought 1 \\ | -- WinSCP allows you to upload files to and download files from Deep Thought 1 \\ | ||
| 2. Open WinSCP and log-in using: \\ | 2. Open WinSCP and log-in using: \\ | ||
| - | Host name: login.deepthought.umd.edu | + | Host name: login.deepthought2.umd.edu |
| Port number: 22 | Port number: 22 | ||
| - | User name: universityID | + | User name: universityID |
| Password: ‘your university password’ | Password: ‘your university password’ | ||
| -- Server files will appear on the right side and your local files will appear on the left. \\ | -- Server files will appear on the right side and your local files will appear on the left. \\ | ||
| Line 55: | Line 54: | ||
| -- Putty allows you to access Deep Thought 1 via a console and execute scripts \\ | -- Putty allows you to access Deep Thought 1 via a console and execute scripts \\ | ||
| 5. Open Putty and log-in using: \\ | 5. Open Putty and log-in using: \\ | ||
| - | Host Name: login.deepthought.umd.edu | + | Host Name: login.deepthought2.umd.edu |
| Port: 22 | Port: 22 | ||
| Click “Open” | Click “Open” | ||
| Line 62: | Line 61: | ||
| -- When you first login, you will be in the “lustre/ | -- When you first login, you will be in the “lustre/ | ||
| 6. Type “source startup.csh” to execute the script you previously uploaded \\ | 6. Type “source startup.csh” to execute the script you previously uploaded \\ | ||
| - | ** The previous step must be done every time you login into DT1** \\ | + | ** -- The previous step must be done every time you login into DT2** \\ |
| -- The startup.csh script assigns the location of the 2 programs: Packmol and CHARMM to the environment variables “$packmol” and “$charmm”, | -- The startup.csh script assigns the location of the 2 programs: Packmol and CHARMM to the environment variables “$packmol” and “$charmm”, | ||
| (see startup.csh) | (see startup.csh) | ||
| Line 69: | Line 68: | ||
| **__D) Packing a Mixture of Water and Cyclohexane__** | **__D) Packing a Mixture of Water and Cyclohexane__** | ||
| - | 1. In WinSCP, navigate to “lustre/ | + | 1. In WinSCP, navigate to “lustre/ |
| -- (to create a folder, look for the icon on the right side of the screen) \\ | -- (to create a folder, look for the icon on the right side of the screen) \\ | ||
| - | 2. Transfer “cyclohexane/ | + | 2. Transfer “cyclohexane/ |
| - | 3. Transfer the packmol script “packing/ | + | 3. Transfer the packmol script “packing/ |
| 4. The packmol script is explained via comments inside the file. \\ | 4. The packmol script is explained via comments inside the file. \\ | ||
| 5. In Putty, navigate to “lustre/ | 5. In Putty, navigate to “lustre/ | ||
| Line 79: | Line 78: | ||
| chmod 700 packing.inp | chmod 700 packing.inp | ||
| $packmol < packing.inp > packing.out | $packmol < packing.inp > packing.out | ||
| - | -- This should result in two new files being generated in the “packing” folder on DT1 \\ | + | -- This should result in two new files being generated in the “packing” folder on DT2 \\ |
| -- (you might need to Refresh | -- (you might need to Refresh | ||
| -- One of the files will be called “packing.out” which outlines the progress of Packmol as it packs the mixture. The other file will be called “mixture.pdb” which will contain the packed mixture. If the “mixture.pdb” file was not generated, then an error occurred while packing. You will need to read “packing.out” to understand and correct the error. | -- One of the files will be called “packing.out” which outlines the progress of Packmol as it packs the mixture. The other file will be called “mixture.pdb” which will contain the packed mixture. If the “mixture.pdb” file was not generated, then an error occurred while packing. You will need to read “packing.out” to understand and correct the error. | ||
| Line 90: | Line 89: | ||
| **__E) Generating a .psf file for the mixture__** | **__E) Generating a .psf file for the mixture__** | ||
| - | Now that we have packed the mixture, the next step is to generate a .psf file for the mixture. This .psf file “contains all of the molecule-specific information needed to apply a particular force field to a molecular system”[1}. We will use CHARMM to generate this file. | + | -- Now that we have packed the mixture, the next step is to generate a .psf file for the mixture. This .psf file “contains all of the molecule-specific information needed to apply a particular force field to a molecular system”(http://www.ks.uiuc.edu/Training/Tutorials/ |
| - | In WinSCP, navigate to “lustre/ | + | |
| - | In WinSCP, drag the following into the “generatingPSF” folder: | + | |
| - | water/top_tip4p_2005.rtf | + | |
| - | water/par_tip4p_2005.prm | + | |
| - | cyclohexane/ | + | |
| - | cyclohexane/ | + | |
| - | packing/mixture.pdb | + | |
| - | generatingPSF/top_all36_cgenff.rtf | + | |
| - | generatingPSF/par_all36_cgenff.prm <- contains the interaction parameters for common molecules | + | |
| - | generatingPSF/ | + | |
| - | (these should be the only files in the “generatingPSF” folder before running the CHARMM script) | + | |
| - | (the CHARMM script is explained via comments inside the file) | + | 2. In WinSCP, drag the following into the “generatingPSF” folder: \\ |
| - | In Putty, navigate to “lustre/ | + | |
| - | To run CHARMM on your CHARMM script, type the following into the console: | + | |
| - | dos2unix generatingPSF.inp | + | |
| - | chmod 700 generatingPSF.inp | + | cyclohexane/ |
| - | $charmm < generatingPSF.inp > generatingPSF.out | + | |
| - | This should result in three new files being generated in the “generatingPSF” folder on DT1: | + | generatingPSF/ |
| - | (if this is not the case, check the generatingPSF.out file to understand and correct any errors) | + | |
| - | mixture_charmm.pdb <- coordinates | + | |
| - | mixture_charmm.psf <- interaction parameters | + | |
| - | generatingPSF.out < | + | |
| - | Even if all three files are generated, this does not mean the CHARMM script executed properly. | + | |
| - | Perform a visual check of the “mixture_charmm.pdb” file. Open “mixture_charmm.pdb” in WordPad and scroll through to the bottom. If any of the atoms have “9999.000” | + | |
| - | Now we are ready to run a simulation!!! | + | |
| + | -- (these should be the only files in the “generatingPSF” folder before running the CHARMM script) \\ | ||
| + | -- (the CHARMM script is explained via comments inside the file) \\ | ||
| - | 1) http://www.ks.uiuc.edu/ | + | 3. In Putty, navigate to “lustre/universityID/generatingPSF” \\ |
| + | 4. To run CHARMM on your CHARMM script, type the following into the console: \\ | ||
| + | dos2unix generatingPSF.inp | ||
| + | chmod 700 generatingPSF.inp | ||
| + | $charmm < generatingPSF.inp > generatingPSF.out | ||
| + | -- This should result in three new files being generated in the “generatingPSF” folder on DT2: \\ | ||
| + | -- (if this is not the case, check the generatingPSF.out file to understand and correct any errors) \\ | ||
| + | mixture_charmm.pdb | ||
| + | mixture_charmm.psf | ||
| + | generatingPSF.out | ||
| - | Running a Simulation | + | -- Even if all three files are generated, this does not mean the CHARMM |
| - | We will use NAMD to run our simulations. You need to provide NAMD with your mixture system (pdb, psf, prm files) along with an input script, that outlines simulation parameters (temperature, | + | |
| - | There are two parts to running a simulation. The first part is a short (1 ns) simulation to allow the mixture to reach equilibrium. The second part an extended simulation where you can observe how your system behaves. The second part is usually done in chunks. For example, first, you simulate your system for 10 ns. After that simulation ends, you use the positions and velocities of the molecules at the end of the simulation to start another simulation for another 10ns, thus extending the simulation for another 10ns, and so on. This is done so that it is easier manage and analyze the output files generated | + | |
| - | First, let’s run the short (1ns) simulation: | + | |
| - | In WinSCP, navigate to “lustre/ | + | |
| - | In this folder, create another folder called “equalize”. | + | |
| - | In WinSCP, drag the following into the “equalize” folder: | + | |
| - | generatingPSF/ | + | |
| - | generatingPSF/ | + | |
| - | generatingPSF/ | + | |
| - | generatingPSF/ | + | |
| - | runningSim/ | + | |
| - | runningSim/ | + | |
| - | (these should be the only files in the “equalize” folder before submitting the job to Slurm) | + | |
| - | ( See comments inside “runningSim.inp” and “slurmInstructions.csh” ) | + | |
| - | ( To learn more about NAMD simulation parameters and for a full explanation of “runningSim.inp”, | + | |
| - | ( For a full explanation of “slurmInstructions.csh”, | + | |
| - | ( To learn more about Slurm and how to monitor or cancel a job submitted to Slurm, see https:// | + | |
| + | 5. Perform a visual check of the “mixture_charmm.pdb” file. \\ | ||
| + | -- Open “mixture_charmm.pdb” in WordPad and scroll through to the bottom. | ||
| + | -- If any of the atoms have “9999.000” for their x,y,z coordinates, | ||
| + | -- Now we are ready to run a simulation!!! \\ | ||
| + | **__F) Running a Simulation__** | ||
| - | In Putty, navigate to “lustre/ | + | -- We will use NAMD to run our simulations. You need to provide NAMD with your mixture system (pdb, psf, prm files) along with an input script, that outlines |
| - | To submit your job to Slurm, type the following into the console: | + | There are two parts to running a simulation. The first part is a short (1 ns) simulation to allow the mixture to reach equilibrium. The second part is an extended simulation where you can observe how your system |
| - | dos2unix slurmInstructions.csh | + | |
| - | chmod 700 slurmInstructions.csh | + | |
| - | sbatch | + | |
| - | If the job submission is successful, you should see “Submitted batch job ######” in the console. | + | |
| - | To view all jobs that you are running on DT1, type “squeue -u universityID” into the console. | + | |
| - | Tracking your simulation | + | |
| - | The file “runningSim.out” will be generated in the “equalize” folder | + | |
| - | Transfer “runningSim/ | + | |
| - | Transfer “runningSim/ | + | |
| - | Open VMD | + | |
| - | Click File > New Molecule… > Browse > navigate to and select “mixture_charmm.psf” > Ok > Load | + | |
| - | Next, Click Browse > navigate to and select “mixture_prod.dcd” > ok > Load | + | |
| - | Your mixture should appear in the VMD Display window. In the VMD main window, you will see a sliding bar along the bottom. This slide bar lets you navigate to certain snapshots (the snapshots are in chronological order). Play around with the controls below this slide bar to understand how they work. | + | |
| - | Once your equilibrium simulation is complete, you can begin to run extended simulations on your mixture. | + | __First, let’s |
| + | 1. In WinSCP, navigate to “lustre/ | ||
| + | 2. In this folder, create another folder called “equalize”. \\ | ||
| + | 3. In WinSCP, drag the following into the “equalize” folder: \\ | ||
| + | generatingPSF/ | ||
| + | generatingPSF/ | ||
| + | generatingPSF/ | ||
| + | generatingPSF/ | ||
| + | runningSim/ | ||
| + | runningSim/ | ||
| + | -- (these should be the only files in the “equalize” folder before submitting the job to Slurm) \\ | ||
| + | -- (See comments inside “runningSim.inp” and “slurmInstructions.csh”) \\ | ||
| + | -- (To learn more about NAMD simulation parameters and for a full explanation of “runningSim.inp”, | ||
| + | -- (For a full explanation of “slurmInstructions.csh”, | ||
| + | -- (To learn more about Slurm and how to monitor or cancel a job submitted to Slurm, see https:// | ||
| + | 4. In Putty, navigate to “lustre/ | ||
| + | 5. To submit your job to Slurm, type the following into the console: \\ | ||
| + | dos2unix slurmInstructions.csh | ||
| + | chmod 700 slurmInstructions.csh | ||
| + | sbatch -A energybio-hi slurmInstructions.csh | ||
| + | -- If the job submission is successful, you should see “Submitted batch job ######” in the console. \\ | ||
| + | -- To view all jobs that you are running on DT2, type “squeue -u universityID” into the console. \\ | ||
| + | __Tracking your simulation: | ||
| + | -- The file “runningSim.out” will be generated in the “equalize” folder that will outline the progress of the simulation. After all the files have been read and the simulation has begun, you will start to see estimates of time remaining until the simulation is complete in “runningSim.out”. A few other files will be generated as well. The file that will allow you to watch the progression of your simulation is the .dcd file. Snapshots of your system are taken periodically and added to this dcd file. While the simulation is running, the dcd file should be increasing in size. To view these snapshots, we will use VMD: | ||
| + | 6. Transfer “runningSim/ | ||
| + | 7. Transfer “runningSim/ | ||
| + | 8. Open VMD \\ | ||
| + | 9. Click File > New Molecule… > Browse > navigate to and select “mixture_charmm.psf” > Ok > Load \\ | ||
| + | 10. Next, Click Browse > navigate to and select “mixture_prod.dcd” > ok > Load \\ | ||
| + | -- Your mixture should appear in the VMD Display window. In the VMD main window, you will see a sliding bar along the bottom. This slide bar lets you navigate to certain snapshots (the snapshots are in chronological order).\\ | ||
| + | -- Play around with the controls below this slide bar to understand how they work. \\ | ||
| + | -- Once your equilibrium simulation is complete, you can begin to run extended simulations on your mixture. \\ | ||
| + | __Running Extended Simulations: | ||
| + | 11. In WinSCP, navigate to the “runningSim” folder on DT2 and create a folder called “sim1”. \\ | ||
| + | 12. In WinSCP, drag the following into the “sim1” folder: \\ | ||
| + | runningSim/ | ||
| + | runningSim/ | ||
| + | runningSim/ | ||
| + | runningSim/ | ||
| + | runningSim/ | ||
| + | runningSim/ | ||
| + | runningSim/ | ||
| + | runningSim/ | ||
| + | runningSim/ | ||
| + | -- (See comments inside “runningSim.inp” and “slurmInstructions.csh”) \\ | ||
| + | -- The process for submitting a job is the same: \\ | ||
| + | |||
| + | 13. In Putty, navigate to “lustre/ | ||
| + | 14. To submit your job to Slurm, type the following into the console: | ||
| + | dos2unix slurmInstructions1.csh | ||
| + | chmod 700 slurmInstructions1.csh | ||
| + | sbatch -A energybio-hi slurmInstructions1.csh | ||
| + | -- If the job submission is successful, you should see “Submitted batch job ######” in the console. | ||
| + | -- To view all jobs that you are running on DT2, type “squeue -u universityID” into the console. \\ | ||
| + | -- Once the first simulation finishes running, you transfer the output the “.coor”, | ||
| - | Running Extended Simulations | + | If you have any question, feel free to email me at kmanayer(at)yahoo(dot)com \\ |
| - | In WinSCP, navigate to the “runningSim” folder on DT1 and create a folder called “sim1”. | + | |
| - | In WinSCP, drag the following into the “sim1” folder: | + | |
| - | runningSim/ | + | |
| - | runningSim/ | + | |
| - | runningSim/ | + | |
| - | runningSim/ | + | |
| - | runningSim/ | + | |
| - | runningSim/ | + | |
| - | runningSim/ | + | |
| - | runningSim/ | + | |
| - | runningSim/ | + | |
| - | | + | |
| - | ( See comments inside “runningSim.inp” and “slurmInstructions.csh” ) | + | |
| - | The process for submitting a job is the same: | + | |
| - | In Putty, navigate to “lustre/ | + | |
| - | To submit your job to Slurm, type the following into the console: | + | |
| - | dos2unix slurmInstructions1.csh | + | |
| - | chmod 700 slurmInstructions1.csh | + | |
| - | sbatch -A energybio-hi slurmInstructions1.csh | + | |
| - | If the job submission is successful, you should see “Submitted batch job ######” in the console. | + | |
| - | To view all jobs that you are running on DT1, type “squeue -u universityID” into the console. | + | |
| - | + | ||
| - | Once the first simulation finishes running, you transfer the output the “.coor”, | + | |
| - | + | ||
| - | + | ||
| - | This is the end of part 2. I will work on a guide for the program I used to create the hydrate crystal that are needed for hydrate simulations. | + | |
simulating_hydrocarbon_mixtures.1515792475.txt.gz · Last modified: 2018/01/12 16:27 by edit