An alternative smooth particle hydrodynamics formulation to simulate chemotaxis in porous media