calculating inelastic displacements and forces 4557799