Note:
Ls-dyna single cpu job submission:
#your script begins here
#!/bin/sh
#name the program
#PBS -N dyna_singlecpu
#default output and error file
#PBS -o output_dyna
#PBS -e error_dyna
#asking for 1 node and 1 processor for 50 hours
#PBS -l nodes=1:ppn=1,walltime=50:00:00
#set your directory path, you can see it by "pwd"
#PBS -d /home/au_user_id/dyna_singlecpu/
#follwing 2 line ensures you'll be notified by email when your job is done
#PBS -M au_user_id@auburn.edu
#PBS -m e
#printing hostname just to see which compute node is working and initial #time
/bin/hostname > output
date >> output
/opt/ls-dyna/ls-dyna.singlecpu I=li.k >> output
#time stamping to see how long it took
date >> output
#end of your script
Ls-dyna multiple cpu job submission:
#your script begins here
#!/bin/sh
#Name the program
#PBS -N dyna_multiplecpu
#default output and error file
#PBS -o output_dyna
#PBS -e error_dyna
#asking for 1 node 10 processor for 50 hours
#PBS -l nodes=1:ppn=10,walltime=50:00:00
#set the directory, you can find your current directory by "pwd" command
#PBS -d /home/au_user_id/dyna_testing/
#following 2 lines ensures you'll be notified by email after job is done
#PBS -M au_user_id@auburn.edu
#PBS -m e
#loading path
export PATH=/opt/mpich2-1.2.1p1/bin:$PATH
#printing the host name just to see which host is performing computation
/bin/hostname > output
#initial timestamp
date >> output
#writing mpd_nodes file to boot mpd and assigning variable nhosts
sort -u $PBS_NODEFILE > mpd_nodes
nhosts=`cat mpd_nodes | wc -l`
#dynamically creating pfile
cp /dev/null pfile
export TMPDIR=`pwd`/local
echo "general { nodump }" | cat > pfile
echo "dir { global $PBS_O_WORKDIR local $TMPDIR }" >> pfile
#booting mpd
mpdboot -n $nhosts -v -f mpd_nodes
#starting mpp ls-dyna with 10 processor
mpirun -np 10 /opt/ls-dyna/ls-dyna I=li.k p=pfile >> output
#time stamping end time
date >> output
#stopping mpd
mpdallexit
#end of your script
LSTC maintaining different queue:
Note:
Running two or more Ls-dyna job simultaneously:
For single cpu Ls-dyna, you can submit 2 job simultaneously, it does not require any additional change in script
For MPP-dyna, you need to change your script like this
`sort -u $PBS_NODEFILE > mpd_nodes`
nhosts=`cat mpd_nodes | wc -l`
mpdboot -n $nhosts -v -f mpd_nodes
mpdallexit
compute-1
compute-2
compute-3
compute-4
ssh compute-1
/opt/mpich2-1.2.1p1/bin/mpdboot -n 4 -v -f mpd_nodes
#PBS -d /home/au_user_id/dyna_testing/
Ls-dyna helpful links:
https://wiki.anl.gov/tracc/LS-DYNA
http://www.osc.edu/supercomputing/software/docs/lsdyna/struct.pdf
http://www.osc.edu/supercomputing/software/docs/lsdyna/keyword.pdf
http://www.osc.edu/supercomputing/software/docs/lsdyna/theory.pdf
http://www.osc.edu/supercomputing/software/docs/lsdyna/prepost-tutorial.pdf
http://www.mne.psu.edu/cimbala/Learning/Fluent/fluent_2D_Couette_flow.pdf