Ansys LS-DYNA

From ScientificComputing
Jump to: navigation, search

Definition

LS-DYNA is an advanced general-purpose multiphysics simulation software package

Ansys LS-DYNA on Euler

On Euler the following versions of Ansys LS-DYNA are available through modules:

Version Module command
Ansys Research 2024 R2 module load ansys/24.2_research
Ansys Teaching 2024 R2 module load ansys/24.2_teaching
Ansys Research 2023 R1 module load ansys/23.1_research
Ansys Teaching 2023 R1 module load ansys/23.1_teaching
Ansys Electronics Research 2024 R2 module load ansys_em/24.2_research
Ansys Electronics Teaching 2024 R2 module load ansys_em/24.2_teaching

Licenses are available in the ETH IT Shop.
Teaching licenses can only be loaded by ETH students.
Manuals: 23.1

Multi-node execution

Because Ansys LS-DYNA does not support Slurm, a list of available nodes has to be provided to it.

Example jobscript:

#!/bin/bash
#SBATCH --nodes=1
#SBATCH --ntasks=8
#SBATCH --time=8:00:00 
#SBATCH --constraint=ib # request InfiniBand network for MPI job

# Load ANSYS module
module load ansys/23.1_research

# Required for running ANSYS products with Slurm
unset SLURM_GTIDS

# Extract hostname and number of tasks per node from SLURM
machines=""
for i in $(scontrol show hostnames=$SLURM_JOB_NODELIST); do
        machines=$machines:$i:$SLURM_NTASKS_PER_NODE
done
machines=${machines:1}
echo $machines  # For logging

# Set variables for old IntelMPI
unset I_MPI_PMI_LIBRARY
export FI_PROVIDER=verbs

# Set ANSYS input file and solver
lsdyna231 -dp -mpp i=./input.k -machines $machines