Skip to main content

DYNA

LS-DYNA is an advanced, general-purpose multiphysics simulation package developed by Livermore Software Technology Corporation (LSTC), which was acquired by Ansys in 2019. The package continues to expand its computational capabilities for many complex real-world problems, with its origins and core competency lying in highly nonlinear transient dynamic finite element analysis (FEA) using explicit time integration. LS-DYNA is used in the automotive, aerospace, architectural and civil engineering, military, manufacturing, and bioengineering industries.

License required

Please purchase, download, and install the LS-DYNA license independently. For assistance with installation or usage, contact us and provide proof that your research group holds an LS-DYNA license.


1. Script Template

submit.sh
#!/bin/bash
#SBATCH --nodes=1 # Number of nodes
#SBATCH --ntasks-per-node=56 # Number of cores per node
#SBATCH --ntasks=56 # Total number of cores
#SBATCH --partition=g1_share # Queue partition; must specify the correct partition
#SBATCH --job-name=hello # Job name
#SBATCH --output=hello.%j.out # Normal log output (%j parameter value is jobId)
#SBATCH --error=hello.%j.err # Error log output (%j parameter value is jobId)

##############################################
# Software Envrironment #
##############################################
unset I_MPI_PMI_LIBRARY # Unset default MPI library, use Intel's built-in
export I_MPI_JOB_RESPECT_PROCESS_PLACEMENT=0 # Parameter modification required for Intel multi-node jobs
# module load intel/2022 intelmpi/2022 # Load Intel environment

##############################################
# Run job #
##############################################
nameflag=`scontrol show hostname $SLURM_JOB_NODELIST`
for line in $nameflag
do
tempflag="$line:56:"
beginflag=$beginflag$tempflag
done
eflag=`echo $beginflag | sed 's/.\{0\}.$//'`
endflag=$eflag$endflag
echo $endflag > test.log

# JOBNAME=`ls | grep inp | sed 's/.\{3\}.$//'`
JOBNAME=000_Master.k
# change scratch to the actual directory
lsdyna -dis -machines $endflag i=$JOBNAME memory=800m memory2=200m
# mpirun -hosts `scontrol show hostname $SLURM_JOB_NODELIST |tr '\n' ',' | head -c-1` lsdyna_dp_mpp.e i=$JOBNAME memory=1200m memory2=400m

2. The meanings of the command-line parameters are as follows:

  • lsdyna: LS-DYNA is a general-purpose finite element analysis software used to simulate various physical phenomena and engineering problems.
  • -dis: An option indicating that output should be sent to the display.
  • -machines $endflag: Another option used to specify the computer name or IP address. In this example,$endflagis a variable, likely defined in the script.
  • i=$JOBNAME: A parameter used to specify the name of the input file. In this example,$JOBNAMEis a variable, likely defined in the script.
  • memory=800m: An option used to specify the memory limit. In this example, the limit is set to 800 megabytes.
  • memory2=200m: Another option used to specify a second memory limit. In this example, the limit is set to 200 megabytes.

3. Other Reference Scripts

submit.sh
#!/bin/bash
#SBATCH --nodes=1 # Number of machine nodes
#SBATCH --ntasks-per-node=56 # Number of cores per machine
#SBATCH --partition=g1_share # Queue partition; must specify the correct partition (will be notified)
#SBATCH --job-name=hello # Job name (recommended to modify for distinction)
#SBATCH --output=hello.%j.out # Normal log output (%j parameter value is jobId)
#SBATCH --error=hello.%j.err # Error log output (%j parameter value is jobId)
export LSTC_LICENSE=network
export LSTC_LICENSE_SERVER=License_Server_IP
export PATH=$HOME/lsdyna/platform/bin:$PATH
export LD_LIBRARY_PATH=$HOME/lsdyna/platform/lib/linux_amd64:$LD_LIBRARY_PATH
export PATH=$HOME/lsdyna/ls-dyna_mpp_s_R11_2_2_x64_centos610_ifort160_avx2_platformmpi:$PATH
JOBNAME=Master.key
lsdyna=$HOME/lsdyna/ls-dyna_mpp_s_R11_2_2_x64_centos610_ifort160_avx2_platformmpi/ls-dyna_mpp_s_R11_2_2_x64_centos610_ifort160_avx2_platformmpi
mpirun -np 56 -ibv -prot $lsdyna i=$JOBNAME memory=800m memory2=200m