CPMD: Difference between revisions

Jump to navigation Jump to search
408 bytes added ,  3 years ago
Marked this version for translation
(Marked this version for translation)
Line 4: Line 4:
[[Category:Software]]
[[Category:Software]]


<!--T:13-->
[https://www.cpmd.org/wordpress/ CPMD] is a plane wave/pseudopotential DFT code for ab initio molecular dynamics simulations.
[https://www.cpmd.org/wordpress/ CPMD] is a plane wave/pseudopotential DFT code for ab initio molecular dynamics simulations.


<!--T:2-->
= License limitations = <!--T:2-->
= License limitations =


<!--T:3-->
Before you can start using [http://cpmd.org CPMD], you have to register and accept the [http://cpmd.org/download/cpmd-download-1/accept-license CPMD license terms] and then [[Technical_support | send us a support request]] stating that you have in fact registered and accepted CPMD license terms. Afterwards, we will get in touch with the CPMD admins to confirm your registration, and then will grant you access to the CPMD software.
Before you can start using [http://cpmd.org CPMD], you have to register and accept the [http://cpmd.org/download/cpmd-download-1/accept-license CPMD license terms] and then [[Technical_support | send us a support request]] stating that you have in fact registered and accepted CPMD license terms. Afterwards, we will get in touch with the CPMD admins to confirm your registration, and then will grant you access to the CPMD software.
<!--T:3-->


= Module =
= Module = <!--T:14-->


<!--T:15-->
You can access CPMD by loading a [[Utiliser des modules/en|module]].   
You can access CPMD by loading a [[Utiliser des modules/en|module]].   


<!--T:16-->
<source lang="bash">
<source lang="bash">
module load intel/2020.1.217 openmpi/4.0.3 cpmd/4.3
module load intel/2020.1.217 openmpi/4.0.3 cpmd/4.3
</source>
</source>


= Local installation of CPMD =
= Local installation of CPMD = <!--T:17-->


<!--T:18-->
Recently it has been our experience that a response from CPMD admins can unfortunately take weeks or even months. If you are a registered CPMD user, you have access to the CPMD source files and can therefore build the software yourself in your home directory using our software build environment called EasyBuild, using the exact same recipe that we would use for a central installation.
Recently it has been our experience that a response from CPMD admins can unfortunately take weeks or even months. If you are a registered CPMD user, you have access to the CPMD source files and can therefore build the software yourself in your home directory using our software build environment called EasyBuild, using the exact same recipe that we would use for a central installation.


Line 70: Line 73:
You can use it now as usual in your submission script.
You can use it now as usual in your submission script.


=Example of job script =
=Example of job script = <!--T:19-->


<!--T:20-->
To run a job, you will need to set an input file and access to [https://www.cpmd.org/wordpress/index.php/documentation/pseudo-potentials/ pseudo-potential] that are available for download from CPMD website after authentication {only for registered users}.
To run a job, you will need to set an input file and access to [https://www.cpmd.org/wordpress/index.php/documentation/pseudo-potentials/ pseudo-potential] that are available for download from CPMD website after authentication {only for registered users}.


<!--T:21-->
If the input file and the pseudo-potentials are in the same directory, the command to run the program in parallel is:
If the input file and the pseudo-potentials are in the same directory, the command to run the program in parallel is:


<!--T:22-->
<code>srun cpmd.x <input files> > <output file></code> (as in the script 1)
<code>srun cpmd.x <input files> > <output file></code> (as in the script 1)


<!--T:23-->
It is also possible to put the pseudo potential on another directory and run the code as follow:
It is also possible to put the pseudo potential on another directory and run the code as follow:


<!--T:24-->
<code>srun cpmd.x <input files> <path to pseudo potentials location> > <output file></code> (as in the script 2)
<code>srun cpmd.x <input files> <path to pseudo potentials location> > <output file></code> (as in the script 2)


<!--T:25-->
<tabs>
<tabs>
<tab name="INPUT">
<tab name="INPUT">
Line 93: Line 102:
&END
&END


<!--T:26-->
&CPMD
&CPMD
  OPTIMIZE WAVEFUNCTION
  OPTIMIZE WAVEFUNCTION
Line 111: Line 121:
&END  
&END  


<!--T:27-->
&DFT
&DFT
  FUNCTIONAL LDA
  FUNCTIONAL LDA
&END   
&END   


<!--T:28-->
&ATOMS
&ATOMS
*H_MT_LDA.psp
*H_MT_LDA.psp
Line 125: Line 137:
</tab>
</tab>


<!--T:29-->
<tab name="Script 1">
<tab name="Script 1">
{{File
{{File
Line 132: Line 145:
#!/bin/bash
#!/bin/bash


<!--T:30-->
#SBATCH --account=def-someacct
#SBATCH --account=def-someacct
#SBATCH --nodes=1
#SBATCH --nodes=1
Line 138: Line 152:
#SBATCH --time=0-1:00
#SBATCH --time=0-1:00


<!--T:31-->
# Load the modules:
# Load the modules:


<!--T:32-->
module load intel/2020.1.217 openmpi/4.0.3 cpmd/4.3
module load intel/2020.1.217 openmpi/4.0.3 cpmd/4.3


<!--T:33-->
echo "Starting run at: `date`"
echo "Starting run at: `date`"


<!--T:34-->
CPMD_INPUT="1-h2-wave.inp"
CPMD_INPUT="1-h2-wave.inp"
CPMD_OUTPUT="1-h2-wave_output.txt"
CPMD_OUTPUT="1-h2-wave_output.txt"


<!--T:35-->
srun cpmd.x ${CPMD_INPUT} > ${CPMD_OUTPUT}
srun cpmd.x ${CPMD_INPUT} > ${CPMD_OUTPUT}


<!--T:36-->
echo "Program finished with exit code $? at: `date`"
echo "Program finished with exit code $? at: `date`"
}}
}}
</tab>
</tab>


<!--T:37-->
<tab name="Script 2">
<tab name="Script 2">
{{File
{{File
Line 160: Line 181:
#!/bin/bash
#!/bin/bash


<!--T:38-->
#SBATCH --account=def-someacct
#SBATCH --account=def-someacct
#SBATCH --nodes=1
#SBATCH --nodes=1
Line 166: Line 188:
#SBATCH --time=0-1:00
#SBATCH --time=0-1:00


<!--T:39-->
# Load the modules:
# Load the modules:


<!--T:40-->
module load intel/2020.1.217 openmpi/4.0.3 cpmd/4.3
module load intel/2020.1.217 openmpi/4.0.3 cpmd/4.3


<!--T:41-->
echo "Starting run at: `date`"
echo "Starting run at: `date`"


<!--T:42-->
CPMD_INPUT="1-h2-wave.inp"
CPMD_INPUT="1-h2-wave.inp"
CPMD_OUTPUT="1-h2-wave_output.txt"
CPMD_OUTPUT="1-h2-wave_output.txt"
PP_PATH=<path to the location of pseudo-potentials>
PP_PATH=<path to the location of pseudo-potentials>


<!--T:43-->
srun cpmd.x ${CPMD_INPUT} ${PP_PATH} > ${CPMD_OUTPUT}
srun cpmd.x ${CPMD_INPUT} ${PP_PATH} > ${CPMD_OUTPUT}


<!--T:44-->
echo "Program finished with exit code $? at: `date`"
echo "Program finished with exit code $? at: `date`"
}}
}}
Line 183: Line 211:
</tabs>
</tabs>


=Related limks =
=Related limks = <!--T:45-->


<!--T:46-->
* CPMD [https://www.cpmd.org/wordpress/ home page].
* CPMD [https://www.cpmd.org/wordpress/ home page].
* CPMD [https://www.cpmd.org/wordpress/index.php/documentation/ manual].
* CPMD [https://www.cpmd.org/wordpress/index.php/documentation/ manual].
Bureaucrats, cc_docs_admin, cc_staff
2,314

edits

Navigation menu