tarch::la::Vector< Dimensions, double > springPotential(const tarch::la::Vector< Dimensions, double > &p1, const tarch::la::Vector< Dimensions, double > &p2, double h)
Assumes that there is no force in-between two particles p1 and p2 if they are h away from each other.