Camry Impact Model in LS-DYNA® format
Introduction
A key feature of OpenRadioss is the ability to run models in the LS-DYNA® input format, the .key files may be submitted directly in OpenRadioss and the input is interpreted by the Solver. In this example, a full vehicle impact model may be run.
Input Files
The input files used for this demonstration of OpenRadioss capability to run LS-DYNA®* input format models are publicly available from the CCSA at GMU website:
CCSA Camry Model Page (LS-DYNA Format) (Model files from CCSA are 58.5 MB)
In addition, download the following file (This serves as a launch file for the CCSA files and adds the *CONTROL_UNITS card to the run)
OpenRadioss Launch File (1 KB)
After feedback from OpenRadioss Community users, some combinations of compiler and CPU architecture have been found to be unstable for this model with it failing to reach termination time. If you find this for your setup, then it may be beneficial to try reducing the running timestep slightly, you may use the following alternate launch file (an additional timestep control is added to the launch file)
OpenRadioss Launch File With Additional Timestep Control (1 KB)
If necessary. You may further experiment by modifying the dt2ms value in the file (e.g. to -0.755e-06)
*CONTROL_TIMESTEP
$# dtinit tssfac isdo tslimt dt2ms lctm erode ms1st
0.9 -0.750e-06
Instructions For Use
Download the input files from the CCSA at GMU site and the additional ‘Launch’ File (adding *CONTROL_UNITS card) or alternate launch file (modifying timestep) and submit in OpenRadioss
see also: Running OpenRadioss
Note: This model is computationally demanding compared with most demo models, run time on a laptop or desktop machine with 4 cores will take around 60 hours.
Simplified running and post-processing with ParaView
The bash script below, takes a .key jobname and number of cpu as input, runs the job on the requested number of cpu (in mpi mode), converts Anim files to vtk and T01 to csv, then opens the results in paraview
The paths for radioss execs and converter execs (lines 3,4,12 and 15) are coded as local, you can update the paths to your installation locations
once edited save as e.g. ‘runkeyfile.sh’ and make executable chmod -777 runkeyfile.sh
once saved, the terminal input to use the script is e.g. ./runkeyfile.sh CamryOpenRadioss.key 4
(it should work for any .key file)
this would run the job on 4 cpu, convert the results and load them into ParaView
myjobname=$(echo "$1" | rev | cut -c5- | rev)
echo $myjobname "running in OpenRadioss"
./starter_linux64_gf -i $myjobname".key" -np $2 -nt 4
mpiexec -n $2 ./engine_linux64_gf_ompi -i $myjobname"_0001.rad" -nt 1
BASEDIR=$(dirname "$0")
cd $BASEDIR
for file in $BASEDIR/*;
do
if [ -n "${file: -3}" ] && [ "${file: -3}" -eq "${file: -3}" ] 2>/dev/null && [[ "${file: -4:1}" == "A" ]]; then
./anim_to_vtk_linux64_gf $file > "$file.vtk"
echo "$file is converted"
elif [[ "${file: -3}" == "T01" ]] ;then
./th_to_csv_linux64_gf $file
CSV="$file.csv"
fi
done
paraview $BASEDIR/$myjobname"A..vtk" $CSV
exit
Results (in HyperView)
Acknowledgments
This model is created by CCSA at GMU and the FHWA
Trademarks are the property of their respective owners. (*) LS-DYNA® is a registered trademark of Livermore Software Technology Corporation, which is an affiliate of Ansys, Inc. Hereunder, there is no actual or implied affiliation, endorsement, or sponsorship of any kind.