Simulation of magnetic forces?

Is there any way to simulate the force of a magnet of an assembly & measure the actual holding force, Does anyone know of a reasonable solution or software to perform magnetic simulation studies? Please Advise

SolidworksSimulation