Difference between revisions of "LS-DYNA"
MSummerbell (talk | contribs) (→Application Details) |
MSummerbell (talk | contribs) (→Job Submission Script) |
||
Line 10: | Line 10: | ||
<pre style="background-color: #C8C8C8; color: black; border: 2px solid blue; font-family: monospace, sans-serif;"> | <pre style="background-color: #C8C8C8; color: black; border: 2px solid blue; font-family: monospace, sans-serif;"> | ||
#!/bin/bash | #!/bin/bash | ||
− | #SBATCH -c 1 | + | #SBATCH -c 1 # Number of CPUS per Node |
#SBATCH --mem-per-cpu=4G | #SBATCH --mem-per-cpu=4G | ||
#SBATCH -J LS-DYNA # Name of Job | #SBATCH -J LS-DYNA # Name of Job | ||
− | #SBATCH -D /home/ | + | #SBATCH -D /home/lsdyna/ |
− | #SBATCH -p | + | #SBATCH -p compute |
#SBATCH -o %N.%j.%a.out | #SBATCH -o %N.%j.%a.out | ||
#SBATCH -e %N.%j.%a.err | #SBATCH -e %N.%j.%a.err | ||
− | |||
module purge | module purge | ||
Line 28: | Line 27: | ||
lsdyna i=all.k memory=${memory}M ncpu=$SLURM_CPUS_PER_TASK | lsdyna i=all.k memory=${memory}M ncpu=$SLURM_CPUS_PER_TASK | ||
</pre> | </pre> | ||
− | Details<br/> | + | Details:<br/> |
− | + | Line 1 - just a standard line that needs to be at the top of the file<br /> | |
+ | Line 2 - The -c flag sets the number of CPUs for the job. This must be set to 1 as LS-DYNA is not licensed for more than 1 CPU <br/> | ||
+ | Line 3 - The -J flag sets the name of the job, in the case to LS-DYNA<br/> | ||
+ | Line 4 - The -D flag sets the directory of the output and error files<br/> | ||
+ | Line 5 - The -p flag sets the partition to use e.g. compute, high memory<br/> | ||
+ | Line 6 - The -o flag sets the output file name<br/> | ||
+ | Line 7 - The -e flag sets the output error<br/> | ||
+ | Line 8 - Remove all loaded modules<br/> | ||
+ | Line 9 - Load Ansys V17.2<br/> | ||
+ | Line 10 - Intel MPI<br/> | ||
+ | Line 11 - Memory divided between cores<br/> | ||
+ | Line 12 - This is the run command Note i specifies the input file, memory the memory available and ncpu the number of CPUs used<br/> | ||
<pre style="background-color: #C8C8C8; color: black; border: 2px solid blue; font-family: monospace, sans-serif;"> | <pre style="background-color: #C8C8C8; color: black; border: 2px solid blue; font-family: monospace, sans-serif;"> | ||
[username@login01 lsdyna5]$ sbatch ls-dyna.job | [username@login01 lsdyna5]$ sbatch ls-dyna.job | ||
Submitted batch job 306050 | Submitted batch job 306050 | ||
</pre> | </pre> |
Revision as of 14:24, 1 February 2017
Application Details
- Description:
- Versions: V17.0, V17.2
- Module names: ansys/v170, ansys/v172
- License:
- Forum Support: [1]
- Further information: Ansys
Job Submission Script
#!/bin/bash #SBATCH -c 1 # Number of CPUS per Node #SBATCH --mem-per-cpu=4G #SBATCH -J LS-DYNA # Name of Job #SBATCH -D /home/lsdyna/ #SBATCH -p compute #SBATCH -o %N.%j.%a.out #SBATCH -e %N.%j.%a.err module purge module load ansys/v172 module load intel/mpi/64/5.1.3.181 memory=$(($SLURM_MEM_PER_CPU/8)) lsdyna i=all.k memory=${memory}M ncpu=$SLURM_CPUS_PER_TASK
Details:
Line 1 - just a standard line that needs to be at the top of the file
Line 2 - The -c flag sets the number of CPUs for the job. This must be set to 1 as LS-DYNA is not licensed for more than 1 CPU
Line 3 - The -J flag sets the name of the job, in the case to LS-DYNA
Line 4 - The -D flag sets the directory of the output and error files
Line 5 - The -p flag sets the partition to use e.g. compute, high memory
Line 6 - The -o flag sets the output file name
Line 7 - The -e flag sets the output error
Line 8 - Remove all loaded modules
Line 9 - Load Ansys V17.2
Line 10 - Intel MPI
Line 11 - Memory divided between cores
Line 12 - This is the run command Note i specifies the input file, memory the memory available and ncpu the number of CPUs used
[username@login01 lsdyna5]$ sbatch ls-dyna.job Submitted batch job 306050