This document describes the development of a numerical tool to simulate gas flow and heat transfer in a Wankel rotary engine. The tool comprises a 2D/3D grid generator for the engine geometry, an implicit finite element method to handle pressure-velocity coupling, and robust multigrid solvers on distorted meshes. These components are implemented in a new finite element software package called Hi-Flow++, which currently contains a 2D solver for the stationary compressible Navier-Stokes equations in the low-Mach number approximation. The project aims to extend this to nonstationary flows and develop a 3D solver.