A) study on the analysis of rigid and flexible body dynamics with contact