#!/bin/bash nasthome=$(dirname $(dirname $(readlink -f $0))) # TEST ARGUMENT if [ $# == "0" ]; then echo "you must pass an argument" exit 1 elif [ $# != "1" ]; then echo "you must pass an unique argument" exit 2 fi if [ ! -f "$1" ]; then echo "passed argument must be a file" exit 3 fi bdf=$1 #echo $bdf bdf=${bdf%.*} #echo $bdf # ENV VARIABLES export RFDIR=/usr/share/nastran/rf export DIRCTY="${TMPDIR:-/tmp}" export FT05=$1 export FT06=$bdf.f06 export NPTPNM=$bdf.nptp # .plt, same for PLT1 or PLT2 change extension # depending on type selected with nastran card export PLTNM=$bdf.plt export PUNCHNM=$bdf.pnh export OUT11=$bdf.out11 export IN12=$bdf.in12 #was .plt before export LOGNM=$bdf.log # may need modification if SOF1 file used in other runs # copy this script to local and modify accordingly #echo "check SOF config if running substructuring" if [ -z "$SOF1" ]; then export SOF1=$bdf.sof1 fi export SOF2=$bdf.sof2 export DICTNM="none" export FTN11="none" export FTN12=$bdf.op2 export FTN13="none" export FTN14="none" export FTN15=$bdf.out15 export FTN16="none" export FTN17="none" export FTN18="none" export FTN19="none" export FTN20="none" export FTN21="none" export FTN22="none" export FTN23="none" export DBMEM="14000000" export OCMEM="14000000" export PROJ="." # RUN NASTRAN /usr/lib/nastran/nast-run #gdb /usr/lib/nastran/nast-run