D'Alembert function for exact non-smooth modal analysis of the bar in unilateral contact. (December 2021)