SMS: Fundamentals of gas dynamics