03.01.2014 Views

CP/MM Tutorial

CP/MM Tutorial

CP/MM Tutorial

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

mpirun -np 2 cpmd.x dipole.inp /home/ei250498/PROGRAMS/SRC/cpmd/PP ><br />

dipole1.out &<br />

mpirun -np 2 cpmd.x dipole.inp /home/ei250498/PROGRAMS/SRC/cpmd/PP ><br />

dipole2.out &<br />

mpirun -np 2 cpmd.x dipole.inp /home/ei250498/PROGRAMS/SRC/cpmd/PP ><br />

dipole3.out &<br />

mpirun -np 2 cpmd.x dipole.inp /home/ei250498/PROGRAMS/SRC/cpmd/PP ><br />

dipole4.out &<br />

mpirun -np 2 cpmd.x dipole.inp /home/ei250498/PROGRAMS/SRC/cpmd/PP ><br />

dipole5.out &<br />

mpirun -np 2 cpmd.x dipole.inp /home/ei250498/PROGRAMS/SRC/cpmd/PP ><br />

dipole6.out &<br />

mpirun -np 2 cpmd.x dipole.inp /home/ei250498/PROGRAMS/SRC/cpmd/PP ><br />

dipole7.out &<br />

mpirun -np 2 cpmd.x dipole.inp /home/ei250498/PROGRAMS/SRC/cpmd/PP ><br />

dipole8.out &<br />

mpirun -np 2 cpmd.x dipole.inp /home/ei250498/PROGRAMS/SRC/cpmd/PP ><br />

dipole9.out &<br />

mpirun -np 2 cpmd.x dipole.inp /home/ei250498/PROGRAMS/SRC/cpmd/PP ><br />

dipole10.out &<br />

Note: you could have skipped this procedure by using the keyword <br />

DIPOLE DYNAMICS SAMPLE<br />

1000<br />

in the previous <strong>CP</strong> calculation. Such a keyword makes <strong>CP</strong>MD save the <br />

coordinates of the dipole moments every 1000 steps on a file called DIPOLE. An <br />

example is saved in the folder: <br />

/home/ei250498/TUTORIALS/ACETONE/9-<strong>CP</strong>MD-<strong>MM</strong>/4-PRODUCTION-RUN/DIPOLE/<br />

However, these values are polarizations (in a.u.): they have to be multiply by the <br />

volume to obtain the correct values of the dipole in a.u. <br />

At this point you have only to extract each value of the dipole moment: <br />

grep -B 1 -A 4 "X<br />

grep -B 1 -A 4 "X<br />

Y" dipole1.out<br />

Y" dipole2.out<br />

…<br />

and calculate the arithmetic mean D. <br />

What is the difference with respect the value in vacuum we calculate in the <br />

second paragraph?

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!