LS-DYNA FAQ
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 on hydra:
For ksh/bash shells:
export LSTC_FILE=/usr/local/lstc/LSTC_FILE export LSTC_LICENSE=network export LSTC_LICENSE_SERVER=sclserver-private
For csh/tcsh shells:
setenv LSTC_FILE /usr/local/lstc/LSTC_FILE setenv LSTC_LICENSE network setenv LSTC_LICENSE_SERVER sclserver-private
Commands for LS-DYNA
| System(s) | Version | Command |
|---|---|---|
| hydra | MPI, Single Precision | ls-dyna-mpi |
| hydra | MPI, Double Precision | ls-dyna-mpi_d |
| hydra | OpenMP, Single Precision | ls-dyna |
| hydra | OpenMP, Double Precision | ls-dyna_d |
Command Line Options for LS-DYNA
| Option | Description |
|---|---|
| i=inputfile | Specifies the name of the input file. |
| o=outputfile | Specifies the name of the output file. |
| ncpu=X | 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:
poe ls-dyna-mpi 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 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