(Generate contactspring test in 1D)

echo -no
number_of_space_dimensions 1
materi_velocity
materi_velocity_integrated
materi_strain_total
materi_stress
end_initia

node 1  0
node 2  1
node 3  1
node 4  2

element 1 -bar2 1 2
element 2 -bar2 3 4

bounda_unknown 0  1 -velx
bounda_time    0  0. 1. 100. 1.

geometry_point 1 1. 1.e-4

group_type 0 -materi
group_materi_elasti_young 0 1.

group_type 1 -contactspring
group_contactspring_stiffness 1  1. 1.
group_contactspring_friction 1  1.
group_contactspring_direction 1 1. 0. 0.

control_mesh_generate_contactspring  10 1 -geometry_point 1

control_timestep                     20  1.e-2 1.e-2
control_timestep_iterations          20  2
(
control_print                        20  -time_current -node_dof
)

target_item    0  -node_dof 4 -velx
target_value   0  1. 1.e-8
end_data
