Resumen: River floods can be simulated with the 2D shallow water system of equations using finite volume methods, where the terrain is discretized in cells that form the computational mesh. Usually a proper treatment of wet/dry fronts is required. River levees can be modelled as part of the topography by means of sufficiently small cells of higher elevation than the rest of the bed level in locally refined meshes. This procedure is associated with a large computational time since the time step depends directly on the cell size. The alternative proposed in this work includes the levees as internal boundary conditions in the 2D numerical scheme. In particular, levees have been defined by a weir law that, depending on the relative values of water surface levels on both sides, can formulate the discharge for different situations (i.e. free flow and submerged flow). In addition, having identified numerical difficulties in cases of low discharge under free flow conditions, a novel procedure to avoid oscillations has been developed and called volume transport method. The validation and comparison between methods has been carried out with benchmark test cases and, in addition, with a real flood event in the Ebro River (Spain). Idioma: Inglés DOI: 10.1007/s10652-018-09658-6 Año: 2019 Publicado en: Environmental Fluid Mechanics 19 (2019), 1253 - 1271 ISSN: 1567-7419 Factor impacto JCR: 1.512 (2019) Categ. JCR: OCEANOGRAPHY rank: 38 / 66 = 0.576 (2019) - Q3 - T2 Categ. JCR: MECHANICS rank: 94 / 136 = 0.691 (2019) - Q3 - T3 Categ. JCR: WATER RESOURCES rank: 65 / 94 = 0.691 (2019) - Q3 - T3 Categ. JCR: ENVIRONMENTAL SCIENCES rank: 204 / 265 = 0.77 (2019) - Q4 - T3 Categ. JCR: METEOROLOGY & ATMOSPHERIC SCIENCES rank: 73 / 93 = 0.785 (2019) - Q4 - T3 Factor impacto SCIMAGO: 0.522 - Water Science and Technology (Q2) - Environmental Chemistry (Q3)