Fundamentals of fluid mechanics