We investigate the behavior of granular materials immersed in a viscous fluid by means of extensive simulations based on the Discrete Element Method for particle dynamics coupled with the Lattice Boltzmann method for the fluid. We show that, for a broad range of parameters such as shear rate, confining stress and viscosity, the internal friction coefficient and packing fraction are well described by a single "visco-inertial" dimensionless parameter combining inertial and Stokes numbers. The frictional behavior under constant confining pressure is mapped into a viscous behavior under volume-controled conditions, leading to the divergence of the effective normal and shear viscosities in inverse square of the distance to the critical packing fraction. The results are in excellent agreement with the experimental data of Boyer et al. (2011). The evolution of the force network in terms of connectivity and anisotropy as a function of the visco-inertial number, indicates that the increase of frictional strength is a direct consequence of structural anisotropy enhanced by both fluid viscosity and grain inertia. In view of application to a potential nuclear accident, we also study the fragmentation and flow of confined porous aggregates in a fluid under the action of local overpressures and pressure gradients as well as gravity-driven flow of immersed particles in an hourglass.