Development of methodologies for the simulation of polydisperse multiphase flows using open-source code