Optional potential: numberthe potential energy of the system, default is zero
Optional translational: numberthe translational energy of the system, default is zero
Optional rotational: numberthe rotational energy of the system, default is NaN
Optional workDone: numberthe amount of work done on the system, default is NaN
Optional initialEnergy: numberthe initial energy of the system, default is NaN
Generated using TypeDoc
Provides information about an EnergySystem, such as potential and kinetic energy. The potential and translational energy are always a valid number. The rotational energy, work done,and initial energy can be
NaNwhen they are not defined.Potential Energy
For simulations where gravity operates in the vertical direction, there are methods here to help calculate the potential energy of a MassObject. Potential energy has an arbitrary zero level. MassObject has a method setZeroEnergyLevel where you can set the zero level which is used by a ForceLaw like GravityLaw, see GravityLaw.getPotentialEnergy.