Hamiltonian analysis of interacting fluids