How to use LS-DYNA¶
Software
|
Version
|
Cluster
|
---|---|---|
LS-DYNA
|
9.2
|
Dardel
|
Submitting a LS-DYNA job on Dardel¶
A script for running LS-DYNA in MPI mode on Dardel called lsdyna_run.sh is shown below.
#!/bin/bash -l
# The -l above is required to get the full environment with modules
# Job account is set
#SBATCH -A <alloction-id>
# Set name of the job
#SBATCH -J my_job
# 10 hours wall-clock time will be given to this job
#SBATCH -t 10:00:00
# Number of nodes
#SBATCH --nodes=2
#SBATCH -e errorfile.e%J
# Load ls-dyna module
module load PDC
module load ls-dyna/9.2-sp
export LSTC_LICENSE=network
export LSTC_LICENSE_SERVER=10.252.1.15
# Run mppdyna with 256 MPI-rank (2 nodes x 128 cores/node)
mpirun -srun "-n 256" mppdyna I=input.k > my_output_file.$SLURM_JOBID 2>&1
Note that this script does not include all the arguments that you can supply to LS-DYNA, but you should add/modify the script to suit your needs.
Firstly, you need to start the license server:
cp -r /pdc/software/21.11/other/ls-dyna/license_manager /cfs/klemming/home/<u>/<username>
# replace <username> with your username and <u> with the first letter of the username
cd license_manager
./lstc_server -l "LS-Dyna_Log_`date +%F"_"%H%M`"
Important note: The license above belongs to a group of KTH users. You are NOT allowed to use it if you do not belong to that group Also please contact PDC support if you want to run your own license server on Dardel as it might interfere with the other LS-DYNA server
Then you can submit the job using command sbatch
sbatch lsdyna_run.sh
In case you want to disable your license server, use the LS-DYNA command server_kill to kill the process of license server
cd license_manager
./server_kill
Disclaimer¶
PDC takes no responsibility for the correctness of results produced with the binaries. Always evaluate the binaries against known results for the systems and properties you are investigating before using the binaries for production jobs.