Numerical analysis of two-layer beams with interlayer slip and step-wise linear interface law