galpy.potential.Potential.__add__

Potential.__add__(b)[source]

Add Force or Potential instances together to create a multi-component potential (e.g., pot= pot1+pot2+pot3)

Parameters:

b (Force or Potential instance)

Returns:

Represents the combined potential

Return type:

CompositePotential instance

Notes

  • 2019-01-27 - Written - Bovy (UofT)

  • 2020-04-22 - Added check that unit systems of combined potentials are compatible - Bovy (UofT)

  • 2024-11-24 - Modified to return CompositePotential instead of list - Bovy (UofT)