High Performance Computing Center

INTRODUCTION
APPLICATION SOFTWARE
PUBLICATIONS
NEWS
LINKS
John Matrow  [Remove spaces from John . Matrow @ wichita . edu] (bio) located at 011 Jabara Hall.
LS-DYNA

*NEW* >>>   LS-PrePost Online Documentation | Tutorials    <<< *NEW*

Getting Started With LS-DYNA

LS-DYNA Examples

Keyword Manual 970

Here are instructions on LS-DYNA environment variables: README.setenv

Introduction to  LS-DYNA3D

To break jobs into 48 CPU hour chunks:
1) Using C=cpu [cpu limit in seconds] defines the maximum cpu usage allowed that if exceeded will cause LS-DYNA to terminate with a restart file. Note that 48 hours is 172800 seconds.
2) During a restart, cpu should be set to the total cpu used up to the current restart plus whatever amount of additional time is wanted.
3) Use R=rtf where rtf is the restart filename when restarting.
4) Use qsub -W depend=after:<JobID> on the second job where <JobID> is the Job ID of the first job.

Note: DYNA_SCRDIR is required!

notus example

Differences from apollo/artemis script are bold

Replace Y where Y is the number of nodes

#!/bin/csh
#PBS -q para -l nodes=
Y:notusall:ppn=2
setenv MY_DIR "/user/jmatrow/LS-DYNA/forming/2procs"
setenv DYNA_SCRDIR "/temp/jmatrow/$PBS_JOBNAME.$PBS_JOBID"
setenv DYNA_ARGS "i=forming.k"
#<---REQUIRED!
mkdir $DYNA_SCRDIR
cp $MY_DIR/forming.k $DYNA_SCRDIR
cp $MY_DIR/model.key $DYNA_SCRDIR
source /apps/LS-dyna/run_dyna.csh
cp $DYNA_SCRDIR/d3plot*
$MY_DIR
cd; rm -rf $DYNA_SCRDIR

^ ^ ^ ^ ^ This is using mpp970 and it is not working right now

v v v v v Use ls970 example below and only 1 node (2 processors)

#!/bin/csh
#PBS -q para -l nodes=1:notusall:ppn=2
setenv MY_DIR "/user/jmatrow/LS-DYNA/forming/2procs"
setenv DYNA_SCRDIR "/temp/jmatrow/$PBS_JOBNAME.$PBS_JOBID"
mkdir $DYNA_SCRDIR
cp $MY_DIR/forming.k $DYNA_SCRDIR
cp $MY_DIR/model.key $DYNA_SCRDIR
cd $DYNA_SCRDIR
setenv LSTC_FILE /apps/LS-dyna/LSTC_FILE.txt
ls970 i=forming.k ncpu=-2
cp $DYNA_SCRDIR/d3plot* $MY_DIR
cd; rm -rf $DYNA_SCRDIR

zeus example

Replace X where X is the number of processors

#!/bin/csh
#PBS -q para -l host=zeus -l ncpus=
X #<---Notice change from nodes= to host=
setenv MY_DIR "/user/jmatrow/LS-DYNA/forming/2procs"
setenv DYNA_SCRDIR "/temp/jmatrow/$PBS_JOBNAME.$PBS_JOBID"
mkdir $DYNA_SCRDIR
cp $MY_DIR/forming.k $DYNA_SCRDIR
cp $MY_DIR/model.key $DYNA_SCRDIR
cd $DYNA_SCRDIR
setenv LSTC_FILE /apps/LS-dyna/LSTC_FILE.txt
ls960 i=forming.k memory=120000000 ncpu=-
X
cp $DYNA_SCRDIR/d3plot* $MY_DIR
cd; rm -rf $DYNA_SCRDIR

You may substitute ls970 for ls960 if needed

apollo/artemis example

Replace X and Y where X is the number of processors and Y is X divided by 2

#!/bin/csh
#PBS -q para -l nodes=
Y:ia32:ppn=2
setenv MY_DIR "/user/jmatrow/LS-DYNA/forming/2procs"
setenv DYNA_SCRDIR "/temp/jmatrow/$PBS_JOBNAME.$PBS_JOBID"
mkdir $DYNA_SCRDIR
cp $MY_DIR/forming.k $DYNA_SCRDIR
cp $MY_DIR/model.key $DYNA_SCRDIR
cd $DYNA_SCRDIR
setenv LSTC_FILE /apps/LS-dyna/LSTC_FILE.txt
set path = (/opt/mpich/bin $path)   
#<---Notice correction from $PATH to $path!
mpirun -np
X /apps/LS-dyna/mpp970 i=forming.k memory=120000000
cp $DYNA_SCRDIR/d3plot*
$MY_DIR
cd; rm -rf $DYNA_SCRDIR

You may substitute mpp960 for mpp970 if needed

Contact me if you *have* to use single processor ls960

LS_OPT

lsopt and related programs are found in /apps/LS-dyna/LSOPT_EXE for zeus, apollo & artemis