kinetic energy storage function

From OSL Demo