-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·47 lines (37 loc) · 2.05 KB
/
Copy pathrun.sh
File metadata and controls
executable file
·47 lines (37 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/zsh
# create a directory for the results if it does not exist
if [ ! -d output ]; then
mkdir output
fi
# ################# simple example #################
echo "Running simple example, please wait..."
python3 simple_example.py
echo "Finished, check the results in output/simple_example"
echo "Press enter to continue..."
read ans
# ###################### demo ######################
echo "Running demo, please wait..."
python3 demo.py
echo "Finished, press enter to continue..."
read ans
###################### tube ######################
echo "Running tube problem, please wait..."
python3 tube_opt.py
echo "Finished, check the results in output/tube"
echo "Press enter to continue..."
read ans
# ###################### beam ######################
echo "Running beam problem, check log file in output/beam"
python3 topo_opt.py --domain beam --objf frequency --confs volume_ub --nx 200 --r0 1.0 --vol-frac-ub 0.5 --maxit 100 --r0 1.0
echo "Finished, press enter to continue..."
read ans
# python3 topo_opt.py --domain beam --objf frequency --confs volume_ub displacement --nx 200 --maxit 100 --vol-frac-ub 0.5 --dis-ub 0.3 --r0 1.0
# python3 topo_opt.py --domain beam --objf frequency --confs volume_ub displacement stress --nx 200 --maxit 100 --vol-frac-ub 0.5 --dis-ub 0.3 --stress-ub 2.5e+12 --r0 1.0
# ###################### square ######################
echo "Running square problem, check log file in output/square"
python3 topo_opt.py --domain square --objf frequency --confs volume_ub --nx 100 --r0 1.0 --vol-frac-ub 0.4 --maxit 100 --r0 1.2
echo "Finished, press enter to continue..."
read ans
# python3 topo_opt.py --domain square --objf frequency --confs volume_ub stress --nx 100 --vol-frac-ub 0.4 --maxit 100 --stress-ub 6.0e+12 --r0 1.0
# python3 topo_opt.py --domain square --objf frequency --confs volume_ub displacement --nx 100 --maxit 100 --vol-frac-ub 0.4 --dis-ub 0.080 --r0 1.0
# python3 topo_opt.py --domain square --objf frequency --confs volume_ub displacement stress --nx 100 --maxit 100 --vol-frac-ub 0.4 --dis-ub 0.034 --stress-ub 3.6e+12 --r0 1.0