Elastic bars with cohesive energy