Download MADYMO Coupling Manual

Transcript
MADYMO Coupling Manual
9
Release 7.2
Example Startup Scripts
This section shows some examples to run coupling executables with LS-DYNA, MPPDYNA, PAM CRASH/SAFE and Radioss. In general, the coupling is started with the
following command line:
madymocli -coupling direct <input.xml> -x /path/to/coupling_exe -arg <partner args>
where <input.xml> is the MADYMO input deck, /path/to/coupling_exe is the PARTNER coupling executable and <partner args> are all arguments needed by this coupling executable.
The benefit of this approach is that MADYMO handles all environment variables that
MADYMO needs to run in coupling, including adapting the run time library search
path ($LIBPATH, $LD_LIBRARY_PATH or $SHLIB_PATH, depending on the OS).
9.1 PAM CRASH/SAFE
#!/bin/sh
# example script to run MADYMO/PAM coupling
# use with options: input.xml input.pc #cpu
#
PAMEXE=/path/to/pam2006/psolid.x
# PAMLIB is usually a subdir of the dir where psolid.x resides
PAMLIB=/path/to/pam2006/lib
XML=$1
PC=$2
CPU=$3
export OMP_NUM_THREADS=${CPU}
export PAMLIC=CRASHSAF
export LD_LIBRARY_PATH=${PAMLIB}
# assuming madymo64 is in the search path
madymo64 -coupling direct -nrproc ${CPU} -x ${PAMEXE} ${XML} -arg ${PC}
9.2 LS-DYNA
#!/bin/sh
# example script to run MADYMO/LSDYNA coupling
# use with options: <input.xml> <input.key>
XML=$1
K=$2
# lsdyna executable
LSEXE=/path/to/ls970.madymo64
# assuming madymo64 is in the search path
madymo64 -coupling direct $XML -x ${LSEXE} -arg y=madymo i="$K"
37