Modeling Particulate Flows In Conduits And Porous Media