I've been trying to create a spring force that will act as the repulsive force between magnets.
I cannot seem to create a simple nonlinear spring. I used data points from the magnet force equation to create a spline, but the simulation fails as soon as I add an initial velocity to the part joined.
Is there some way to just input actual function that takes the force as a function of spring deformation? It seems like this should be a very simple task, but I cannot figure out the syntax or find a resource from MSC software to use as a guide.