How to simulate tool deflection