ANSYS LS-DYNA


Ansys LS-DYNA is the industry-leading explicit simulation software used for applications like drop tests, impact and penetration, smashes and crashes, occupant safety, and more.

ANSYS LS-DYNA can make use of built in MPI to utilize multiple cross node CPU and can scale to hundreds of cores.

Caution

ANSYS users can now use a maximum of 400 concurrent cores, across all devices on campus, including personal machines and HPC clusters, and regardless of the number of ANSYS applications they have open. Please see ANSYS license restrictions for more detail.


Module loading

After connecting to Bessemer (see Establishing a SSH connection), you can start an interactive graphical session or submit a batch job using ANSYS programs activating them and making them available with one of the module load commands below:

module load ANSYS/19.4
module load ANSYS/20.1/binary
module load ANSYS/20.2/binary
module load ANSYS/21.1/binary
module load ANSYS/21.2/binary

Interactive jobs

While using a X11 GUI forwarding supported SSH client, an interactive session can be started on Bessemer as linked above. You can load an ANSYS module above and then use the LS-DYNA executables as below. To use more than a single core, you should write a batch job script like one of the examples below.

The following code can be used in an interactive session to launch a single core ANSYS LS-DYNA process:

module load ANSYS/21.1/binary

#Set license type and LM server
export LSTC_LICENSE_FILE=network
export LSTC_LICENSE_SERVER=ansyslm.shef.ac.uk
export LSTC_LICENSE=ANSYS


# Add the LS-DYNA executables to the PATH
export PATH=$ANSYSPATH/ansys/bin/linx64/:$PATH

# Add the MPI executables and libs to the PATH / LD_LIBRARY_PATH
# Depending on ANSYS version the MPI paths may require changing.
export PATH=$ANSYSPATH/commonfiles/MPI/Intel/2018.3.222/linx64/bin/:$PATH
export LD_LIBRARY_PATH=$ANSYSPATH/commonfiles/MPI/Intel/2018.3.222/linx64/lib/:$LD_LIBRARY_PATH

# Setup my variables
#
# lsdyna_sp.e is for LS-DYNA single precision.
# lsdyna_dp.e is for LS-DYNA double precision.

lsdyna_dp.e i=i.k memory=50m ncpu=$SLURM_NTASKS

Batch jobs

ANSYS LS-DYNA is capable of running in both MPI and SMP parallel environments.

On Bessemer, cross node jobs are not permitted and there is no mpi parallel environment. This necessitates the use of the default SMP OpenMP parallel environment (up to 40 cores on a single node only).

The adjusted options compared to ANSYS LS-DYNA on ShARC is as a result of execution on a single node not requiring these options.

Batch Submission Script

Sample SMP LS-DYNA Batch Job Script

#SBATCH --ntasks-per-node=4
#SBATCH --mem=4000
#SBATCH --job-name=ANSYS-LSDYNA-Example
#SBATCH --output=ANSYS-LSDYNA-Example
#SBATCH --time=01:00:00
#SBATCH --mail-user=a.person@sheffield.ac.uk
#SBATCH --mail-type=ALL

#Only load ANSYS
module load ANSYS/21.2/binary

#Set license type and LM server
export LSTC_LICENSE_FILE=network
export LSTC_LICENSE_SERVER=ansyslm.shef.ac.uk
export LSTC_LICENSE=ANSYS

# Add the LS-DYNA executables to the PATH
export PATH=$ANSYSPATH/ansys/bin/linx64/:$PATH

# Add the MPI executables and libs to the PATH / LD_LIBRARY_PATH
# Depending on ANSYS version the MPI paths may require changing.
export PATH=$ANSYSPATH/commonfiles/MPI/Intel/2018.3.222/linx64/bin/:$PATH
export LD_LIBRARY_PATH=$ANSYSPATH/commonfiles/MPI/Intel/2018.3.222/linx64/lib/:$LD_LIBRARY_PATH

# Setup my variables
#
# lsdyna_sp.e is for LS-DYNA single precision.
# lsdyna_dp.e is for LS-DYNA double precision.

SOLVER=lsdyna_dp.e
INPUT=i.k
MEMORY=50m

#Run your LS-DYNA work below:
$SOLVER i=$INPUT memory=$MEMORY ncpu=$SLURM_NTASKS

Further details about how to construct batch jobs can be found on the batch submission guide page

The job is submitted to the queue by typing:

sbatch my_job_script.sh

ANSYS LS-DYNA training and help resources

Important

Academic support requests should be directed to the IT Services’ Research and Innovation team or the ANSYS Learning Forum (ensure you register with your University email for priority support).

ANSYS provides numerous academic training and help resources including tutorials, video lectures and examples. A short list of these resources is summarised below:


Notes

Due to the limited number of licenses available if issues are encountered with running jobs please check the logs to see if the program is indicating an insufficient number of available licenses. If this is the case, please resubmit your job until it runs.

For other issues or if you wish to purchase some reserved licenses please contact IT Services.

If desired to perform post modelling analysis etc… the ANSYS Workbench GUI executable can be launched with the runwb2 command.