(Generate spring test in 2D)

echo -no
number_of_space_dimensions 2
materi_velocity
materi_velocity_integrated
materi_strain_total
materi_stress
end_initia

node 1  0 0
node 2  1 0
node 3  0 1
node 4  1 1
node 5  0 1
node 6  1 1
node 7  0 2
node 8  1 2

element 1 -quad4 1 2 3 4
element 2 -quad4 5 6 7 8

bounda_unknown 0  -all -velx
bounda_time    0  0. 0. 100. 0.
bounda_unknown 1  -ra 1 2 -ra -vely
bounda_time    1  0. 1. 100. 1.

geometry_line 1 0. 1. 1. 1. 1.e-4

group_type 0 -materi
group_materi_elasti_young 0 1.

group_type 1 -spring
group_spring_stiffness 1 1.
group_spring_direction 1 0. 1.

control_mesh_generate_spring2   10 1 -geometry_line 1

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

target_item    0  -node_dof 8 -vely
target_value   0  1. 1.e-8
end_data
