Skip to content

Commit

Permalink
more to BUG setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ACea15 committed Oct 9, 2024
1 parent 3f47e8e commit 5c93b91
Show file tree
Hide file tree
Showing 5 changed files with 228 additions and 116 deletions.
35 changes: 35 additions & 0 deletions examples/BUG/NASTRAN/BUG103.bdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ EXECUTIVE CONTROL $
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

SOL 103
CEND
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ CASE CONTROL $
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
TITLE=BUG model #
ECHO=NONE
METHOD = 100

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ BULK $
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

BEGIN BULK
PARAM,AUTOMSET,YES
$ PARAM,BAILOUT,-1
$ PARAM,GRDPNT,0
$ PARAM,K6ROT,1.0
$ PARAM,SNORM,20.0
PARAM,POST,-1
$ PARAM,MAXRATIO,1.0E07
$ PARAM,EXTOUT,DMIGPCH
EIGRL,100,,,100

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ MODEL $
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

INCLUDE './base_model.bdf'

ENDDATA
9 changes: 8 additions & 1 deletion examples/BUG/NASTRAN/run_nastran.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ run_nastran(){

move_outputs(){
local file_in="$1"
local stamp="${2:-false}"
local basename="${file_in%.*}"
local timestamp=$(date +"%m_%d_%y-%H_%M_%S")
# Save the results of find into an array
Expand All @@ -43,7 +44,13 @@ move_outputs(){
filename="${fileonly%.*}"

# Move the file to the destination directory with the modified name
mv "$file" "results_runs/${filename}-${timestamp}.${extension}"
if [ "$stamp" = true ]; then
mv "$file" "simulations_out/${filename}-${timestamp}.${extension}"
echo "Moving ${filename}-${timestamp}.${extension} to simulations_out"
else
mv "$file" "simulations_out/${filename}.${extension}"
echo "Moving ${filename}.${extension} to simulations_out"
fi
done

}
9 changes: 0 additions & 9 deletions examples/BUG/generate_paraview.py

This file was deleted.

Loading

0 comments on commit 5c93b91

Please sign in to comment.