Investigating flow patterns in a channel with complex obstacles using the lattice Boltzmann method