Magnetic Particle Dynamics Combined with Protein Purification Modeled by Euler and Lagrange Approaches