Fundamental Principles of Drill-String Mechanics and Their Qualitative Simulation