ANSYS Mechanical
ANSYS Mechanical is software for structural analysis that is available on the DRP Cluster.
Usage Conditions¶
Currently licensed ANSYS Mechanical users can apply for access to the
ANSYS Mechanical install at the CCI. Email
to apply for
access.
Environment Setup¶
Before using any CFX applications first load the ANSYS module to setup your environment
drp cluster¶
module use /gpfs/u/software/x86-rhel6/lmodulefiles/
module load ansys/[14.5|15.0]
Common Commands¶
ansys[145|150] # ansys mechanical
Solve¶
The following slurm script runs mechanical 14.5 on $SLURM_NPROCS
processes. If the ansys 15.0 module is loaded replace ansys145
with
ansys150
.
Create a file named runMech.sh
with the following contents
#!/bin/bash -ex
export MPI_WORKDIR=$PWD #ANSYS will assume the working dir on rank!=0 processes is $HOME !!!!
srun hostname -s > /tmp//hosts.$SLURM_JOB_ID
if [ "x$SLURM_NPROCS" = "x" ]; then
if [ "x$SLURM_NTASKS_PER_NODE" = "x" ];then
SLURM_NTASKS_PER_NODE=1
fi
SLURM_NPROCS=expr $SLURM_JOB_NUM_NODES \* $SLURM_NTASKS_PER_NODE
fi
cat /tmp//hosts.$SLURM_JOB_ID
# format the host list for mechanical
mech_hosts=""
for host in sort -u /tmp//hosts.$SLURM_JOB_ID; do
n=grep -c $host /tmp//hosts.$SLURM_JOB_ID
mech_hosts=$(printf "%s%s:%d:" "$mech_hosts" "$host" "$n")
done
# run the solver
echo "hosts ${mech_hosts%%:}"
ansys145 -dis -b -machines ${mech_hosts%%:} -i problem.dat -o run.out
# cleanup
rm /tmp/hosts.$SLURM_JOB_ID
Submit the job to use 16 processes across two nodes with a max wall time of 10 minutes
sbatch -n 16 -N 2 -t 10 ./runMech.sh
Example¶
Tech demos can be found here:
/gpfs/u/software/x86-rhel6/proprietary/ansys/v150/ansys/data/techdemo.