We provide modules to setup the basic environment for using LS-DYNA on our
systems. This includes adding LS-DYNA commands to your PATH variable and
setting the necessary environment variables for the LS-DYNA license. If you do
not wish to use the modules environment, the following environment variables
MUST be set for LS-DYNA licensing to function properly:
Specifies X cpus for shared memory LS-DYNA. Note, this option should be used only with the OpenMP version of LS-DYNA.
memory=XXX memory=XXXm
Specifies NNN words of memory. The argument for this option may also be specified in megawords as XXXm. A word is 4 KB while a megaword is 4 MB for LS-DYNA single precision. For double-precision LS-DYNA, a word is 8 KB while a megaword is 8 MB.
Serial Example With LS-DYNA
This is an example of using single-precision LS-DYNA using 100 megawords
(400 MB):
ls-dyna i=input.k o=outputfile memory=100m
Examples Using LS-DYNA with Multiple CPUs
These examples assume that you have already loaded the appropriate environment
module for LS-DYNA or have manually set up your environment for LS-DYNA properly.
This is an example of using single-precision LS-DYNA using 4 MPI tasks and
100 megawords (400 MB) per MPI task on hydra with the ksh shell:
This is an example of using single-precision LS-DYNA using 4 OpenMP threads
and up to 100 megawords (400 MB) on agave and hydra with the ksh shell:
export OMP_NUM_THREADS=4
# This environment variable is mandatory for OpenMP LS-DYNA on AIX
export AIXTHREAD_SCOPE=S
ls-dyna i=input.k o=outputfile ncpu=4 memory=100m
This is an example of using single-precision LS-DYNA using 4 OpenMP threads
and up to 100 megawords (400 MB) on cosmos with the bash shell: