ball.energy

Syntax

f = ball.energy(s)

Get the ball total energy contribution. This is the sum over all balls of the energy with name s (see the model energy command). Available energies are: energy-body, energy-damp, and energy-kinetic.

Returns:f - ball total energy contribution
Arguments:s - name of the energy partition