Abstract. This investigation addresses the tsunami inundation in Lima and Callao caused by the massive 1746 earthquake (Mw 9.0) along the Peruvian coast. Numerical modeling of the tsunami inundation processes in the nearshore includes strong nonlinear numerical terms. In a comparative analysis of the calculation of the tsunami wave effect, two numerical codes are used, Tsunami-HySEA and TsunAWI, which both solve the shallow water (SW) equations but with different spatial approximations. The comparison primarily evaluates the flow velocity fields in inundated areas. The relative importance of the various parts of the SW equations is determined, focusing on the nonlinear terms. Particular attention is paid to the contribution of momentum advection, bottom friction, and volume conservation. The influence of the nonlinearity on the degree and volume of inundation, flow velocity, and small-scale fluctuations is determined. The sensitivity of the solution concerning the bottom friction parameter is also investigated, showing the effects of nonlinearity processes in the inundated areas, wave heights, current velocity, and the spatial structure variations shown in tsunami inundation maps.