v0.14.0
Loading...
Searching...
No Matches
command_lines.sh
Go to the documentation of this file.
1
2# BEAM
3rm -f out_* && make -j6 && ./multifield_plasticity -file_name ./example/2D_cantilever.cub -ts_dt 0.04 -ts_max_time 0.56 -ts_adapt_type none \
4-with_plasticity -load_history load_history.in \
5-young 210e3 \
6-poisson 0.3 \
7-sigmaY 240.0 \
8-H 1e-2 \
9-order 2 -no_output | tee log
10
11
12
13rm -f out_* && make -j6 && ./multifield_plasticity -file_name ~/Desktop/Meshes/Plasticity/2D_contact_circ.cub -ts_dt 0.04 -ts_max_time 1 -ts_adapt_type none -ts_adapt_dt_max 0.2 -ts_adapt_dt_min 0.005 | tee log
14
15# Mikey mouse
16./multifield_plasticity -file_name ~/Desktop/Meshes/Plasticity/2D_contact_circ.cub -with_contact -ts_max_time 3 -load_history load_history.in -roller1 1,-1.3 -radius1 0.5 -move1 -0.15,0. -roller2 -1,,-1.3 -move2 0.15,0 -radius2 0.5 | tee log && mbconvertp out_*h5m
17
18
19# punch example
20rm -f out_* && make -j6 && ./multifield_plasticity -file_name ~/Desktop/Meshes/Plasticity/2D_bar_contact_test_fine.cub -ts_dt 0.05 -ts_max_time 2 -ts_adapt_type none \
21-with_contact -load_history load_history2.in \
22-roller3 0.,0.5 -move3 0.,-0.5 -radius3 0.25 -is_large_strain | tee log
23
24
25# clip example
26rm -f out_* && make -j6 && ./multifield_plasticity -file_name /Users/karollewandowski/Desktop/Meshes/Contact/clip_bench.cub -ts_dt 0.025 -ts_max_time 2 \
27-ts_adapt_type none \
28-with_contact -load_history load_history2.in \
29-roller3 0.,0. -move3 0.,-0.7 -radius3 0.5 -is_large_strain | tee log
30
31rm -f out_* && make -j6 && ./multifield_plasticity -file_name /Users/karollewandowski/Desktop/Meshes/Contact/clip_bench.cub -ts_dt 0.025 -ts_max_time 2 -ts_adapt_type none -with_contact -load_history load_history2.in -roller3 0.,-0.7 -move3 0.,0.7 -radius3 0.5 -is_large_strain | tee log
32
33-roller1 1.25,-0.5 -radius1 0.25 \
34-roller2 -1.25,-0.5 -radius2 0.25 \
35
36grep "Uy time" log | awk '{print $3 " " $5}' | tee log_upd
37
38gnuplot -e "set terminal x11; plot 'log_upd' using (-\$2):(\$1) with linespoints; pause -1"
39
40
41#3 rollers rotation and contact
42
43rm -f out_* && make -j6 && ./multifield_plasticity -file_name ~/Desktop/Meshes/Forming/2D_forming_test.cub -ts_dt 0.005 -ts_max_time 3 -ts_adapt_type none -with_contact -load_history load_history.in -roller3 0.,0.75 -move3 0.,-0.25 -radius3 0.25 -roller2 -0.53,-0.53 -move2 0.177,0.177 -radius2 0.25 -roller1 0.53,-0.53 -move1 -0.177,0.177 -radius1 0.25 -is_large_strain -with_plasticity -sigmaY 2 -H 2 -is_large_strain -rollers_stop 0.15 | tee log
44
45
46
47# Print Miehe graphs
48# disp disp
49egrep "Uz|Uy" log | awk '{print $7}' | awk 'NR%2{printf "%s ",$0;next;}1'
50
51# reaction disp
52egrep "Uz" log | awk '{print $7}' | tee disp; egrep "Reactions time" log | awk '{print (-4e-3)*$9}' | tee react; paste disp react
53
54# get number of iterations
55grep " Function norm " log | wc -l
56