v0.14.0
script_to_run_convergence_tests.sh
Go to the documentation of this file.
1 
2 rm -f gp
3 FILE=examples/analytical_bc/out_10.h5m
4 
5 for r in `seq 0 0`; do
6 
7  mpirun -np 4 ./crack_propagation \
8  -my_file $FILE \
9  -snes_monitor -ksp_monitor \
10  -ksp_type gmres \
11  -ksp_atol 1e-12 -ksp_rtol 0 \
12  -my_order 2 -my_geom_order 2 \
13  -my_ref 1 -my_ref_order 1 \
14  -my_add_singularity 1 -se_refined_integration 1 -se_number_of_refinement_levels 4 \
15  -material HOOKE \
16  -mofem_mg_coarse_order 1 -mofem_mg_levels 2 \
17  -mofem_mg_verbose 1 -mg_coarse_ksp_type preonly \
18  -mg_coarse_pc_type lu \
19  -pc_mg_smoothup 10 -pc_mg_smoothdown 10 -pc_mg_galerkin true -pc_mg_type multiplicative \
20  -pc_type lu \
21  -my_max_post_proc_ref_level 0 \
22  -test analytical_mode_1 -test_tol 1e-3 \
23  -2>&1 | tee log
24 
25  awk '
26  BEGIN {sum=0; conunt=0}
27  /griffith force at ent/ {
28  if(sqrt($7*$7)<=0.4) {
29  sum+=$11;
30  count+=1
31  }
32  }
33  /name ELASTIC Nb. local dof/ { nbdofs=$25 }
34  END {
35  g = sum/count;
36  gc = 1e-5;
37  e = sqrt((g-gc)^2)*100;
38  print nbdofs,e/gc
39  }
40  ' log | tee -a gp
41 
42 done