Thank you for your reply however my question is about sludge flow (non-newtonian fluid flow). And I which to know what is the advantage of using one CFD code over another?
FLUENT is a commercial software with research grade quality. It has good capabilities with good interface user friendly. Users can run simulations even if they are not experts in CFD.
OpenFoam is an open source, it is perfect for those who are good at coding (programming) and good understanding of numerical techniques.
I tried years ago (c. 1994) with STAR-CD, which struggled - but CFD programs have come on a long way. The biggest problem was that STAR-CD only understood Newtonian flow, so I had to report the Newtonian equivalent viscosity, which with my problem (I had a yield stress term) meant that the solver struggled in regions with low velocity.
The OpenFoam settling tank solver has a nonNewtonian model as standard, so you might want to look at that for ideas.