Principles of fluid mechanics