The most computationally efficient method is to replace your linear springs with non linear splines of force vs deflection, with zero force in the appropriate direction.
The 'correct' thing to do is to use contact to physical engage the parts. This is a world of trouble.
Another approach is to measure the length of teh spring and only report a force back if the length is greater or lesser than the rest length (depending on whether you want tension only or compression only). This is robust.
The solver code for the latter looks like this
VARIABLE/110271,
,FUNC=(DZ(110271,114975,114975)+ABS(DZ(110271,114975,114975)))/2.0
VFORCE/110271,I=114975,JFLOAT=1102711, RM=114975
, FX=0\FY=0\FZ=1.15*ABS(AKISPL(VARVAL(110271),0,110271))
But no human being can understand it.
Cheers
Greg Locock
New here? Try reading these, they might help FAQ731-376