( Slope analysis.
  Mohr-Coulomb.
  Excavation in four stages.
  Then extra groundflow force.
)

echo -yes
number_of_space_dimensions 2
materi_velocity
materi_strain_elasti
materi_strain_plasti
materi_stress
materi_plasti_kappa
end_initia

start_define
  left_edge geometry_line 0
end_define
start_define
  right_edge geometry_line 1
end_define
start_define
  lower_edge geometry_line 2
end_define
start_define
  excavate_1 geometry_quadrilateral 1
end_define
start_define
  excavate_2 geometry_quadrilateral 2
end_define
start_define
  excavate_3 geometry_quadrilateral 3
end_define
start_define
  excavate_4 geometry_quadrilateral 4
end_define
start_define
  groundflow_area geometry_quadrilateral 5
end_define

node  1   0.  0.
node  2  12.  0.
node  3  24.  0.
node  4  36.  0.
node  5   0.  6.
node  6  12.  6.
node  7  24.  6.
node  8  36.  6.
node  9  24.  12.0
node 10  36.  12.0
node 11   0.  12.0
node 12  12.  12.0

element 1 -tria3 1 5 6
element 2 -tria3 1 6 2
element 3 -tria3 2 6 7
element 4 -tria3 2 7 3
element 5 -tria3 3 7 8
element 6 -tria3 3 8 4
element 7 -tria3 6 9 7
element 8 -tria3 7 9 10
element 9 -tria3 7 10 8
element 10 -tria3 6 12 9
element 11 -tria3 5 11 12
element 12 -tria3 5 12 6

left_edge    0. 0.  0. 12.0 1.e-5
right_edge  36. 0. 36. 12.0 1.e-5
lower_edge   0. 0. 36.  0.  1.e-5

excavate_1   0.0 10.5 21.0 10.5  0.0 12.0 24.0 12.0 1.e-5
excavate_2   0.0  9.0 18.0  9.0  0.0 12.0 24.0 12.0 1.e-5
excavate_3   0.0  7.5 15.0  7.5  0.0 12.0 24.0 12.0 1.e-5
excavate_4   0.0  6.0 12.0  6.0  0.0 12.0 24.0 12.0 1.e-5
groundflow_area  12.0 6.0 16.0 6.0 24.0 12.0 28.0 12.0 1.e-5

bounda_unknown 0  -left_edge -velx
bounda_time    0  0. 0. 1.e10 0.
bounda_unknown 1  -right_edge -velx
bounda_time    1  0. 0. 1.e10 0.
bounda_unknown 2  -lower_edge -velx -vely
bounda_time    2  0. 0. 1.e10 0.

group_type 0  -materi
group_materi_memory 0  -updated
group_materi_density 0  18.e3
group_materi_elasti_young 0 207.e6
group_materi_elasti_poisson 0  0.3
group_materi_plasti_mohrcoul 0 0.5236 1.e3 0.1

force_gravity  0. -1.
force_gravity_time 0. 0. 1.e4 1. 1.e10 1.

force_element_volume  0  -1.e4 -0.577e4
force_element_volume_geometry  0  -groundflow_area
force_element_volume_time  0  0. 0. 6.e4 0. 7.e4 1.

post_point 1  24. 12.

control_mesh_refine_locally               1  100.
control_mesh_refine_locally               2  100.
control_mesh_refine_locally               3  100.

control_timestep                         30  1.e3 2.e4
control_timestep_iterations_automatic    30  1.e-3 1.e2
control_print                            30  -time_current -dtime -number_iterations 
			                                 -post_node_rhside_ratio

control_print_gid                        40  -separate

control_timestep                         50  1.e2 1.e4
control_mesh_delete_geometry             50  -excavate_1
control_print                            50  -time_current -dtime -number_iterations 
			                                 -post_node_rhside_ratio

control_print_gid                        60  -separate

control_timestep                        150  1.e2 1.e4
control_mesh_delete_geometry            150  -excavate_2
control_print                           150  -time_current -dtime -number_iterations 
			                                 -post_node_rhside_ratio

control_print_gid                       160  -separate

control_timestep                        250  1.e2 1.e4
control_mesh_delete_geometry            250  -excavate_3
control_print                           250  -time_current -dtime -number_iterations 
			                                 -post_node_rhside_ratio

control_print_gid                       260  -separate

control_timestep                        350  1.e2 1.e4
control_mesh_delete_geometry            350  -excavate_4
control_print                           350  -time_current -dtime -number_iterations 
			                                 -post_node_rhside_ratio

control_print_gid                       360  -separate

control_timestep                        450  1.e2 0.4e4
control_timestep_iterations_automatic   450  1.e-3 1.e3
control_print                           450  -time_current -dtime -number_iterations 
			                                 -post_node_rhside_ratio

control_print_gid                       460  -separate

end_data
