This textbook presents the basic methods, numerical schemes, and algorithms of computational fluid dynamics (CFD). Readers will learn to compose MATLAB programs to solve realistic fluid flow problems. Newer research results on the stability and boundedness of various numerical schemes are incorporated. The book emphasizes large eddy simulation (LES) in the chapter on turbulent flow simulation besides the two-equation models. Volume of fraction (VOF) and level-set methods are the focus of the chapter on two-phase flows. The textbook was written for a first course in computational fluid dynamics (CFD) taken by undergraduate students in a Mechanical Engineering major. Access the Support Materials: https://www.routledge.com/9780367687298.