Download Dymo Version 7.5 User`s guide

Transcript
MADYMO Coupling Manual
8
Release 7.5
Example Startup Scripts
This section shows some examples to run coupling executables with LS-DYNA, MPP-DYNA,
PAM CRASH/SAFE and Radioss.
8.1 Direct coupling
In general, the direct 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).
8.1.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 madymo75 is in the search path
madymo75 -coupling direct -nrproc ${CPU} -x ${PAMEXE} ${XML} -arg ${PC}
8.1.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.madymo75
# assuming madymo75 is in the search path
madymo75 -coupling direct $XML -x ${LSEXE} -arg y=madymo i="$K"
37