Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

Ansys Learning Forum Forums Discuss Simulation LS Dyna Issue with Running LS-PrePost in Batch Mode on an HPC Reply To: Issue with Running LS-PrePost in Batch Mode on an HPC

Raman Babu
Ansys Employee

Hello,

Does the linux box have a graphics card?
If No, we need to send display to Xvfb

If it is not installed, you need to install it and can create a X virtual framebuffer.
Please see the below a shell script to create X virtual framebuffer.

#!/bin/sh
# Usage lsprepost_xvfb.sh arguments
# the paramter arguments are sent across to prepost 

LSPP_BIN_DIR=/data/cae/grp048/nbak/cae008/ref14/lzqq41/LSDYNA-ONESTEP/Linux/LSPP/lsprepost3.2_opensuse102/
display_id=$$
Xvfb="/usr/X11R6/bin/Xvfb"
LSPREPOST="${LSPP_BIN_DIR}/lsprepost"
export LD_LIBRARY_PATH=$LSPP_BIN_DIR/lib:$LD_LIBRARY_PATH
if [ "x${Xvfb}" = "x" ] ; then
    echo "Running LS-Prepost using no graphics mode"
    ${LSPREPOST} -nographics $@
else
    echo "Running LSPREPOST using VirtualFrameBuffer (VFB)"
#    ${Xvfb} :${display_id} -nolisten tcp -fbdir -screen 0 1920x1080x64 &
    ${Xvfb} :${display_id} -screen 0 800x600x24&
    pid=$!
    DISPLAY=":${display_id}"; export DISPLAY
    ${LSPREPOST} $@
    kill -9 ${pid} 
    rm -rf /tmp/.X${pid}"-lock"
fi
echo "Done.."

exit

[bingo_chatbox]