0% found this document useful (0 votes)
97 views

Abaqus Script

This document is a Bash script that sets up and runs an Abaqus simulation job. It configures the Abaqus input and command files, checking if it is a restart run. It then submits the job to the queue, calling the Abaqus Python script to run the simulation.

Uploaded by

Amit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
97 views

Abaqus Script

This document is a Bash script that sets up and runs an Abaqus simulation job. It configures the Abaqus input and command files, checking if it is a restart run. It then submits the job to the queue, calling the Abaqus Python script to run the simulation.

Uploaded by

Amit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

#!

/bin/bash

#$ -S /bin/bash

#$ -N SCP_NG_250x360_fam22_PHSH01_Random_NewModBaseFrame02_witMotor_07

#$ -cwd

#$ -o OUT.$USER.$JOB_NAME.$JOB_ID

#$ -e ERR.$USER.$JOB_NAME.$JOB_ID

#$ -q abaqus.q

#$ -l abaqus=10

#$ -m abe

#$ -M [email protected]

export binPath=/opt/apps/abaqus/2016/Commands/abq2016

INPUT=`basename
SCP_NG_250x360_fam22_PHSH01_Random_NewModBaseFrame02_witMotor_07.inp`

INPUTNAME=`echo $INPUT | awk -F. '{print $1}'`

COM=.com

COMFILE=$JOB_NAME$COM

JOBNAME=$JOB_NAME

echo $COMFILE

cp /opt/apps/abaqus/config/abaqus.com.base $COMFILE

sed -i "18s/CPUS/$NSLOTS/g" $COMFILE

sed -i "36s/FILENAME/$INPUTNAME/g" $COMFILE

sed -i "38s/JOBNAME/$JOBNAME/g" $COMFILE

export NPROCS=6

if [[ Standard == Explicit ]]

then

sed -i 's/Standard/Explicit/g' $COMFILE

sed -i 's/STANDARD/EXPLICIT/g' $COMFILE

sed -i 's/direct_solver/domains/g' $COMFILE


sed -i "s/DMP/$NSLOTS/g" $COMFILE

fi

if sed -n '1p'
SCP_NG_250x360_fam22_PHSH01_Random_NewModBaseFrame02_witMotor_07.inp | grep -iq
restart

then

echo "Restart input file"

cp /opt/apps/abaqus/config/abaqus.com.base.restart $COMFILE

sed -i "18s/CPUS/$NSLOTS/g" $COMFILE

sed -i "36s/FILENAME/$INPUTNAME/g" $COMFILE

sed -i "38s/JOBNAME/$JOBNAME/g" $COMFILE

if [[ Standard == Explicit ]]

then
sed -i 's/Standard/Explicit/g' $COMFILE
sed -i 's/STANDARD/EXPLICIT/g' $COMFILE
sed -i 's/direct_solver/domains/g' $COMFILE
sed -i "s/DMP/$NSLOTS/g" $COMFILE
fi
oldRunePath=
cp $oldRunePath/*.res .
cp $oldRunePath/*.prt .
cp $oldRunePath/*.mdl .
cp $oldRunePath/*.stt .
cp $oldRunePath/*.odb .
INC=`sed -n '1p'
SCP_NG_250x360_fam22_PHSH01_Random_NewModBaseFrame02_witMotor_07.inp | awk '{print
$4}' | awk -F= '{print $2}' | sed 's/[^0-9]*//g' `
STEP=`sed -n '1p'
SCP_NG_250x360_fam22_PHSH01_Random_NewModBaseFrame02_witMotor_07.inp | awk '{print
$3}' | awk -F= '{print $2}' | sed 's/[^0-9]*//g' `
sed -i "55s/JOLDNAME//g" $COMFILE
sed -i "65s/0/$INC/g" $COMFILE
sed -i "66s/0/$STEP/g" $COMFILE
else
if sed -e "1d" SCP_NG_250x360_fam22_PHSH01_Random_NewModBaseFrame02_witMotor_07.inp
| grep -iq restart
then
echo "restart type job "
sed -i "57s/OFF/ON/g" $COMFILE
sed -i "60s/OFF/ON/g" $COMFILE
sed -i "66s/OFF/ON/g" $COMFILE
fi
fi
#$ -pe make 6
if [[ v2016 == 614 ]]
then
$binPath python /opt/apps/abaqus/6.14/6.14-6/SMA/site/abaJobHandler.py
SCP_NG_250x360_fam22_PHSH01_Random_NewModBaseFrame02_witMotor_07 "INPUT" "JOBNAME"
else
$binPath python
/opt/apps/abaqus/2016/SimulationServices/V6R2016x/linux_a64/SMA/site/abaJobHandler.
py SCP_NG_250x360_fam22_PHSH01_Random_NewModBaseFrame02_witMotor_07 "INPUT"
"JOBNAME"
fi

You might also like